🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by NES Tue, 01 Dec 2026 09:10
Bug#1156001: cups: GTK print dialog freezes at 100% CPU with 2.4.2-3+deb12u10 (OK with u9); cupsd SIGSEGV also observed
#6976
Author: NES
Date: Tue, 01 Dec 2026 09:10
86 lines
5113 bytes
Package: libcups2
Version: 2.4.2-3+deb12u10
|Severity: important

|Dear Maintainer,

After running 2.4.2-3+deb12u10 on bookworm, every GTK3 application hangs 
when opening the print dialog (xreader, Firefox). The process spins at 
~98% CPU and never shows the dialog. Downgrading cups and libcups2 to 
2.4.2-3+deb12u9 fixes it immediately, so the regression is introduced by 
u10.

== Environment ==
- Debian 12 (bookworm) with security updates (Linux Mint "faye" 
repository also enabled)
- cups, cups-daemon, cups-client, cups-common, cups-core-drivers, 
cups-ipp-utils, cups-ppdc, cups-server-common, cups-bsd, libcups2: 
2.4.2-3+deb12u10
- cups-filters / cups-browsed: 1.28.17-3+deb12u2
- libgtk-3-0:amd64 3.24.38-2~deb12u3
- Printer: Brother DCP-L1642W on the network (IPP Everywhere queue, 
created with: lpadmin -p Brother_DCP_L1642W -E -v ipp://<ip>/ipp/print 
-m everywhere). The same freeze happened before with a cups-browsed 
implicitclass:// queue, so the queue type does not seem to matter.

== Steps to reproduce ==
1. Open any PDF in xreader (or press Ctrl+P in Firefox).
2. Start printing / open the system print dialog.

== Actual result ==
The application freezes at ~98% CPU. No dialog appears. It has to be 
killed with SIGKILL.

== Expected result ==
The GTK print dialog opens normally.

== What works ==
- lp -d Brother_DCP_L1642W file.pdf prints correctly.
- LibreOffice prints correctly.
- With cups/libcups2 downgraded to 2.4.2-3+deb12u9, xreader prints 
normally again.

== Analysis ==
A gdb backtrace of the frozen xreader main thread (state R, ~98% CPU) 
shows it looping in the GTK CUPS print backend:

#0 poll () from libc.so.6
#1 _httpWait () from libcups.so.2
#2 gtk_cups_request_read_write () from 
gtk-3.0/3.0.0/printbackends/libprintbackend-cups.so
#3 ?? () from libprintbackend-cups.so
#4 g_main_context_check () from libglib-2.0.so.0
...
#7 g_application_run () from libgio-2.0.so.0

With cupsd debug logging enabled, cupsd answers the GTK request 
immediately and correctly (Client 3: "2.0 CUPS-Get-Printers 1", 
"Returning IPP successful-ok", Content-Length: 932, then back to 
HTTP_STATE_WAITING). GTK never sends a further request, and the 
connection stays idle until the application is killed ("Closing for 
error 104 (Connection reset by peer)"). So the hang appears to be on the 
client side (libcups/GTK interaction) after a normal response.

This looks similar to the upstream regression in CUPS 2.4.15 
(OpenPrinting/cups issue #1429, Debian bug #1121895 "Can't print from 
GTK applications since CUPS 2.4.15-1", fixed in 2.4.16), so perhaps the 
u10 update backports the same change. It may also be related to #1084021 
("regression in 2.4.2-3+deb12u8: client hangs retrieving printer 
information"), but I have not verified either link.

== Possibly related: cupsd crashes ==
The same morning cupsd crashed several times with SIGSEGV (status=11), 
restarting 4 times, always at the same address (cupsd + 0x3cfd7), around 
a failed job ("Files have gone away"). Core dumps were collected by 
systemd-coredump, but no debug symbols are installed so the backtrace is 
unsymbolized. After I moved /var/cache/cups/job.cache aside and 
restarted cupsd, no further crash occurred. I cannot say whether this is 
related to the u10 update or to the GTK freeze, and I am mentioning it 
only in case it helps.

I can provide the full logs, and test patched packages or install debug 
symbols if useful.

Thank you,

Christophe Negrello
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads