Breakpoint 2, start_canary () at rtkit-daemon.c:2300 2300 if (start_canary() < 0) (gdb) n 1670 if ((canary_fd = eventfd(0, EFD_NONBLOCK|EFD_CLOEXEC)) < 0 || (gdb) 1677 if ((r = -pthread_create(&canary_thread_id, NULL, canary_thread, NULL)) < 0 || (gdb)
Breakpoint 1, __pthread_create_2_1 (newthread=0x555555565178 <canary_thread_id>, attr=0x0, start_routine=0x55555555abd0 <canary_thread>, arg=0x0) at pthread_create.c:625 625 pthread_create.c: No such file or directory. (gdb) fin Run till exit from #0 __pthread_create_2_1 (newthread=0x555555565178 <canary_thread_id>, attr=0x0, start_routine=0x55555555abd0 <canary_thread>, arg=0x0) at pthread_create.c:625 [New Thread 0x7ffff7aa3700 (LWP 1795548)] rtkit-daemon[1795542]: Canary thread running. 0x00005555555584bf in start_canary () at rtkit-daemon.c:1677 1677 if ((r = -pthread_create(&canary_thread_id, NULL, canary_thread, NULL)) < 0 || Value returned is $1 = 0 (gdb) n Thread 1 "rtkit-daemon" hit Breakpoint 1, __pthread_create_2_1 (newthread=0x555555565170 <watchdog_thread_id>, attr=0x0, start_routine=0x55555555a800 <watchdog_thread>, arg=0x0) at pthread_create.c:625 625 pthread_create.c: No such file or directory. (gdb) fin Run till exit from #0 __pthread_create_2_1 (newthread=0x555555565170 <watchdog_thread_id>, attr=0x0, start_routine=0x55555555a800 <watchdog_thread>, arg=0x0) at pthread_create.c:625 0x00005555555584de in start_canary () at rtkit-daemon.c:1677 1677 if ((r = -pthread_create(&canary_thread_id, NULL, canary_thread, NULL)) < 0 || Value returned is $2 = 11 It doesn't even reach watchdog_thread() it fails to create the thread before that. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to rtkit in Ubuntu. https://bugs.launchpad.net/bugs/1871543 Title: rtkit fails to start in focal "pthread_create failed: Resource temporarily unavailable" Status in rtkit package in Ubuntu: New Bug description: I was debugging something else and found rtkit broken on my system. Apr 08 06:09:22 Keschdeichel rtkit-daemon[1726502]: Successfully called chroot. Apr 08 06:09:22 Keschdeichel rtkit-daemon[1726502]: Successfully dropped privileges. Apr 08 06:09:22 Keschdeichel rtkit-daemon[1726502]: Successfully limited resources. Apr 08 06:09:22 Keschdeichel rtkit-daemon[1726502]: pthread_create failed: Resource temporarily unavailable Apr 08 06:09:22 Keschdeichel rtkit-daemon[1726502]: Canary thread running. Apr 08 06:09:22 Keschdeichel rtkit-daemon[1726502]: Exiting canary thread. Apr 08 06:09:22 Keschdeichel rtkit-daemon[1726502]: Demoting known real-time threads. Apr 08 06:09:22 Keschdeichel rtkit-daemon[1726502]: Demoted 0 threads That state is reproducible through restarts. I haven't looked any further yet. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: rtkit 0.12-4 ProcVersionSignature: Ubuntu 5.3.0-45.37~18.04.1-generic 5.3.18 Uname: Linux 5.3.0-45-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: 2.20.11-0ubuntu24 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed Apr 8 07:59:58 2020 InstallationDate: Installed on 2018-10-12 (543 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) SourcePackage: rtkit UpgradeStatus: Upgraded to focal on 2020-04-03 (4 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rtkit/+bug/1871543/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp