[Bug 2049315] Re: cups-browsed running non-stop on two cores
So you got the 200% on cupsd now, not on cups-browsed? Seems that cupsd can run into a similar bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2049315 Title: cups-browsed running non-stop on two cores To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2049315] Re: cups-browsed running non-stop on two cores
>> The instructions are for applying when cups-browsed is running and stuck, not after killing it. I did not kill any process before attaching gdb. And top shows 200 % cpu usage by cupsd. This is what still needs to be solved. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2049315 Title: cups-browsed running non-stop on two cores To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2049315] Re: cups-browsed running non-stop on two cores
These processes - $ ps aux | grep cups-browsed | grep -v grep root 2912 0.0 0.0 2892 1708 ? Ss 10:13 0:00 /bin/sh /snap/cups/1047/scripts/run-cups-browsed root 3407 0.0 0.0 2892 892 ? S 10:13 0:00 /bin/sh /snap/cups/1047/scripts/run-cups-browsed - come from the CUPS Snap. They are from a wrapper script to start cups-browsed, but in your case the CUPS Snap does not start cups-browsed, as you have a classically installed CUPS and the CUPS Snap is only running as proxy for snapped applications. There is no ยจ../cups-browsed" process, so cups-browsed is currently not running for you. You have attached gdb to cupsd. The instructions I have posted are for applying when cups-browsed is running and stuck, not after killing it. They only make sense if there are actually 1 or 2 cups-browsed processes hanging in a 100%-CPU busy loop. For your patch on CUPS, which Michael has actually accepted, I am not absolutely sure whether it will solve the problem. If you do not add the "return(NULL);" line, the flow will go into the "return(NULL);" right after the "if () {} else if {}" and so we have no different effect. Or is this not the case? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2049315 Title: cups-browsed running non-stop on two cores To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2049315] Re: cups-browsed running non-stop on two cores
@Till There are two processes running: $ ps aux | grep cups-browsed | grep -v grep root2912 0.0 0.0 2892 1708 ?Ss 10:13 0:00 /bin/sh /snap/cups/1047/scripts/run-cups-browsed root3407 0.0 0.0 2892 892 ?S10:13 0:00 /bin/sh /snap/cups/1047/scripts/run-cups-browsed None of these relates to what top shows as culprit: 2898 root 20 0 195916 16320 11736 R 197.0 0.1 139:30.91 cupsd $ ps -aux | grep 2898 root2898 134 0.1 195916 16320 ?Rsl 10:13 141:15 /usr/sbin/cupsd -l $ sudo gbd -p 2898 (gdb) t a a bt (gdb) t a a bt Thread 2 (Thread 0x729b3cc006c0 (LWP 5305) "cupsd"): #0 0x729b3f6a3439 in __pthread_rwlock_wrlock_full64 (abstime=0x0, clockid=0, rwlock=0x64af2f2b0270) at ./nptl/pthread_rwlock_common.c:821 #1 ___pthread_rwlock_wrlock (rwlock=0x64af2f2b0270) at ./nptl/pthread_rwlock_wrlock.c:26 #2 0x64af2d5231a1 in create_local_bg_thread (con=0x64af2f3a1d70) at /build/cups-0ETlfZ/cups-2.4.7/scheduler/ipp.c:5333 #3 0x729b3f69ca94 in start_thread (arg=) at ./nptl/pthread_create.c:447 #4 0x729b3f729c3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 Thread 1 (Thread 0x729b3e5b1b40 (LWP 2898) "cupsd"): #0 0x729b3f71c5ad in __GI___libc_write (nbytes=63, buf=0x64af2f1b07c8, fd=6) at ../sysdeps/unix/sysv/linux/write.c:26 #1 __GI___libc_write (fd=6, buf=0x64af2f1b07c8, nbytes=63) at ../sysdeps/unix/sysv/linux/write.c:24 #2 0x729b3f95cf66 in ??? () at /lib/x86_64-linux-gnu/libcups.so.2 #3 0x729b3f95d3ea in cupsFileFlush () at /lib/x86_64-linux-gnu/libcups.so.2 #4 0x64af2d5399f5 in cupsdWriteErrorLog (message=0x64af2f1ae7b0 "[Client 26] Closing connection.", level=8) at /build/cups-0ETlfZ/cups-2.4.7/scheduler/log.c:1276 #5 cupsdWriteErrorLog (level=level@entry=8, message=0x64af2f1ae7b0 "[Client 26] Closing connection.") at /build/cups-0ETlfZ/cups-2.4.7/scheduler/log.c:1220 #6 0x64af2d539b72 in cupsdLogClient (con=, level=8, message=) at /build/cups-0ETlfZ/cups-2.4.7/scheduler/log.c:540 #7 0x64af2d50d741 in cupsdCloseClient (con=con@entry=0x64af2f3a1d70) at /build/cups-0ETlfZ/cups-2.4.7/scheduler/client.c:405 #8 0x64af2d50f071 in cupsdReadClient (con=0x64af2f3a1d70) at /build/cups-0ETlfZ/cups-2.4.7/scheduler/client.c:618 #9 0x64af2d508469 in cupsdDoSelect (timeout=) at /build/cups-0ETlfZ/cups-2.4.7/scheduler/select.c:477 #10 main (argc=, argv=) at /build/cups-0ETlfZ/cups-2.4.7/scheduler/main.c:855 Thread 1 (process 2912 "run-cups-browse"): #0 0x75225bf4e7dc in sigsuspend () from target:/lib/x86_64-linux-gnu/libc.so.6 #1 0x5d1641298ee8 in ?? () #2 0x5d164129911a in ?? () #3 0x5d164129e58a in ?? () #4 0x5d16412a3826 in ?? () #5 0x5d16412a650f in ?? () #6 0x5d164129fc00 in ?? () #7 0x5d16412a4b28 in ?? () #8 0x5d1641297d53 in ?? () #9 0x75225bf35d90 in ?? () from target:/lib/x86_64-linux-gnu/libc.so.6 #10 0x75225bf35e40 in __libc_start_main () from target:/lib/x86_64-linux-gnu/libc.so.6 #11 0x5d1641297f15 in ?? () Thread 1 (process 3407 "run-cups-browse"): #0 0x75225bff63ea in wait4 () from target:/lib/x86_64-linux-gnu/libc.so.6 #1 0x5d1641298ea4 in ?? () #2 0x5d164129911a in ?? () #3 0x5d16412a63c0 in ?? () #4 0x5d164129fc00 in ?? () #5 0x5d16412a0070 in ?? () #6 0x5d164129fc00 in ?? () #7 0x5d16412a48ad in ?? () #8 0x5d164129fc00 in ?? () #9 0x5d16412a48ad in ?? () #10 0x5d164129fc00 in ?? () #11 0x5d164129fc3a in ?? () #12 0x5d164129fc00 in ?? () #13 0x5d16412a4b28 in ?? () #14 0x5d1641297d53 in ?? () #15 0x75225bf35d90 in ?? () from target:/lib/x86_64-linux-gnu/libc.so.6 #16 0x75225bf35e40 in __libc_start_main () from target:/lib/x86_64-linux-gnu/libc.so.6 #17 0x5d1641297f15 in ?? () -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2049315 Title: cups-browsed running non-stop on two cores To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2049315] Re: cups-browsed running non-stop on two cores
>> Do you know how to quickly trigger the bug? Till, unfortunately I would not know how to trigger it on purpose. Concerning SRU of any fix, I think it would be enough to verify that printing still works. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2049315 Title: cups-browsed running non-stop on two cores To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2049315] Re: cups-browsed running non-stop on two cores
CUPS 2.4.8 got released and the fix https://github.com/OpenPrinting/cups/issues/879 is included. Heinrich, thanks again for the investigations and bug report. Heinrich, best would be to do an SRU of CUPS, applying the patch to Ubuntu's 2.4.7 would be easy, but how does one verify this fix? Do you know how to quickly trigger the bug? I had it only once in more than a year. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2049315 Title: cups-browsed running non-stop on two cores To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2049315] Re: cups-browsed running non-stop on two cores
Thanks everyone for posting logs here. I would like to have another thing from everyone who runs into the problem. 1. When you observe the problem, DO NOT kill cups-browsed. 2. Save the debug log and attach it to this bug report. 3. Determine the process ID (PID) of cup-browsed: ps aux | grep cups-browsed | grep -v grep cups-browsed 846190 0.0 0.0 112932 5760 ?Ssl 00:00 0:00 /usr/sbin/cups-browsed The first number (second word) in the line is the PID 4. Install the debug symbols package of cups-browsed. Its name is "cups- browsed-dbgsym". Follow the instructions on https://ubuntu.com/server/docs/debug-symbol-packages 5. Install the debugger gdb if needed: sudo apt install gdb 6. Attach the debugger gdb to cup-browsed: sudo gdb attach PID or sudo -u cups-browsed attach PID Replace PID by the PID you determined in (3) On the prompt of the debugger enter the command t a a bt You get some output. If it ends with --Type for more, q to quit, c to continue without paging-- press Enter, until you get back to the prompt: (gdb) DO NOT press Enter when you are at the prompt. Now copy the complete output of gdb into an editor, save the file and attach it to this bug report. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2049315 Title: cups-browsed running non-stop on two cores To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2049315] Re: cups-browsed running non-stop on two cores
The problem occurred again. I did have the debug mode active for cups-browsed, and here is the resulting log file. ** Attachment added: "cups-browsed_log" https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315/+attachment/5776180/+files/cups-browsed_log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2049315 Title: cups-browsed running non-stop on two cores To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs