Endless loop in /usr/lib/udev/udev-configure-printer
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- c
- Área
- operating-systems
Línea de trabajo
Comienza con udev/udev-configure-printer.c y el paquete de código fuente system-config-printer-1.4.8-2.el7.3; compara ese código fuente con el código actual del repositorio. Reproduce el ciclo connect/close usando el strace proporcionado e inspecciona el comportamiento alrededor de un reinicio de CUPS. Se considera terminado cuando se haya identificado una causa reproducible y validado un cambio que evite que el cliente entre en un bucle.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This happend today:
- cups server did not print anymore
- a client is looping in connect->fd->close->connect
Cause is unknown. Maybe the cups server hit a rate limit because it prints:
Flooding server log:
Dec 11 04:37:32 cupsserver kernel: STATE_INVALID_DROP: IN=ens32 OUT= MAC=xx SRC=<clientip> DST=<cupsserver> LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=51545 DF PROTO=TCP SPT=43770 DPT=631 WINDOW=0 RES=0x00 RST URGP=0
The client is in an endless loop, this flooded the server, which prints the above message until the HD ist full, then
cups does not print anymore.
The endless loop of the client straced, from connect->close->to connect again.
connect(5, {sa_family=AF_INET, sin_port=htons(631),sin_addr=inet_addr("cupsserver")}, 16) = -1 EINPROGRESS (Operation now in progress)
fcntl(5, F_SETFL, O_RDWR) = 0
poll([{fd=5, events=POLLIN|POLLOUT}], 1, 250) = 1 ([{fd=5, revents=POLLOUT}])
getpeername(5, {sa_family=AF_INET, sin_port=htons(631),sin_addr=inet_addr(10.x.y.z)}, [256->16]) = 0
uname({sysname="Linux", nodename="client.linux", ...}) = 0
sendto(5, "OPTIONS * HTTP/1.1\r\nConnection: Upgrade\r\nHost: cupsserver.domain.de:631\r\nUpgrade: TLS/1.1,TLS/1.0\r\nUser-Agent: CUPS/1.6.3 (Linux 3.10.0-1160.80.1.el7.x86_64; x86_64) IPP/2.0\r\n\r\n", 173, 0, NULL, 0) =
poll([{fd=5, events=POLLIN}], 1, 60000) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "HTTP/1.1 101 Switching Protocols\r\nDate: Mon, 12 Dec 2022 09:19:10 GMT\r\nServer: CUPS/1.6 IPP/2.1\r\nConnection: Keep-Alive\r\nKeep-Alive: timeout=30\r\nContent-Language: en_US\r\nConnection: Upgrade\r\
sendto(5, "\26\3\1\1\20\1\0\1\f\...)"
recvfrom(5, "\26\3\3\0:\2\0", 7, 0, NULL, NULL) = 7
recvfrom(5, "\0006\3\3\3034\210\241\33f\302\367Q\2217\307iT\32\220n\325\\17\0\1\1", 56, 0, NULL, NULL) = 56
recvfrom(5, "\26\3\3\26\326", 5, 0, NULL, NULL) = 5
recvfrom(5, "\v\0\26\322\0\26\317\010\f\6Bayern1\0210\17\6\3U\4\7\f\10M...)
recvfrom(5, "\26\3\3\0\4", 5, 0, NULL, NULL) = 5
recvfrom(5, "\16\0\0\0", 4, 0, NULL, NULL) = 4
sendto(5, "\26\3\3\1\6\2...)"
recvfrom(5, "\26\3\3\0\252", 5, 0, NULL, NULL) = 5
recvfrom(5, "\4\0\0\246\0\0\1,\0\...")
recvfrom(5, "\24\3\3\0\1", 5, 0, NULL, NULL) = 5
recvfrom(5, "\1", 1, 0, NULL, NULL) = 1
recvfrom(5, "\26\3\3\0(", 5, 0, NULL, NULL) = 5
recvfrom(5, "\230/\230\351\257\7\201h\237\347A\v\12e\27\376", 40, 0, NULL, NULL) = 40
poll([{fd=5, events=POLLIN}], 1, 60000) = 1 ([{fd=5, revents=POLLIN}])
recvfrom(5, "\27\3\3\0\306", 5, 0, NULL, NULL) = 5
recvfrom(5, "\230/\23...")
sendto(5, "...)
close(5) = 0
socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 5
setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(5, SOL_SOCKET, SO_REUSEPORT, [1], 4) = 0
setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
fcntl(5, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(5, {sa_family=AF_INET, sin_port=htons(631),sin_addr=inet_addr("cupsserver")}, 16) = -1 EINPROGRESS (Operation now in progress)
When looking at the source code:
https://github.com/OpenPrinting/system-config-printer/blob/master/udev/udev-configure-printer.c
I dont see this loop, the pid is always the same, so its whithin this process.
The compiled version is from:
system-config-printer-1.4.8-2.el7.3.src.rpm
Which is rather old based on system-config-printer-1.4.1.tar.xz.
Restarting cups exited the client binary, no problem anymore.
The reason for the endless looping client is unknown.
- Lenguaje dominante
- Python
- Estrellas
- 209
- Forks
- 111
- Merge medio
- 2 d 3 h
- PR fusionados (30 d)
- 8
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenPrinting/system-config-printer
-
Job viewer shows "Printer error" for cups-waiting-for-job-completedPosiblemente ocupada @RonitMehta08 la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
OpenPrinting/system-config-printer#494 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 44/100
OpenPrinting/system-config-printer#499 ·
Los mantenedores suelen responder en 2 días
-
[Release Tracking] system-config-printer 1.5.19 milestonePosiblemente ocupada @alexpevzner la tomó hace 16 días. Abierto
OpenPrinting/system-config-printer#492 · 1 comentario · 2 asignados ·
Los mantenedores suelen responder en 2 días
-
ScannerAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
OpenPrinting/system-config-printer#407 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Doesn't run with PYTHONSAFEPATH enabledPosiblemente ocupada @xovishnukosuri la tomó hace 250 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
OpenPrinting/system-config-printer#387 ·
Los mantenedores suelen responder en 2 días
Todos los issues de OpenPrinting/system-config-printer
Issues similares
-
scverse link in README is brokenAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 61/100
scverse/infercnvpy#238 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
skrub-data/skrub#2442 ·
Los mantenedores suelen responder en 1 día
-
due_at is one hour late on the autumn DST change day (real-time delta added to a zoneinfo datetime)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
open-feature/python-sdk-contrib#482 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
warlock20/StartWithA#443 ·
Los mantenedores suelen responder en 1 día