[Bug 680444] Re: dbus-daemon eats 100% cpu and is not responsive

Zach Welch zwelch at codesourcery.com
Thu Jul 21 16:48:12 UTC 2011


Contrary to the current status, this bug does not appear to have been
fixed in Natty. It is readily reproducible, though apparently non-
deterministic. Exiting some applications that use dbus will help
temporarily, but the symptoms invariably reappear when given enough
uptime.

Based on the strace log provided in the initial report (and my own
investigation), it looks like dbus leaks file descriptors in some
circumstances, leading to a livelock situation when calling accept.

I am running dbus-1.4.6ubuntu6, so the conclusion that this was fixed in
1.4.6ubuntu was incorrect. This bug needs to be reopened and reexamined.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dbus in Ubuntu.
https://bugs.launchpad.net/bugs/680444

Title:
  dbus-daemon eats 100% cpu and is not responsive

Status in “dbus” package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: dbus

  strace shows the following:

  sudo strace -p 1464
  Process 1464 attached - interrupt to quit
  clock_gettime(CLOCK_MONOTONIC, {349519, 662737789}) = 0
  poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=15, events=POLLIN}, {fd=17, events=POLLIN}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20, events=POLLIN}, {fd=14, events=POLLIN}, {fd=22, events=POLLIN}, {fd=21, events=POLLIN}, {fd=25, events=POLLIN}, {fd=24, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27, events=POLLIN}, {fd=29, events=POLLIN}, {fd=23, events=POLLIN}, {fd=31, events=POLLIN}, {fd=32, events=POLLIN}, {fd=33, events=POLLIN}, {fd=34, events=POLLIN}, {fd=35, events=POLLIN}, {fd=36, events=POLLIN}, {fd=39, events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=42, events=POLLIN}, ...], 1018, -1) = 1 ([{fd=3, revents=POLLIN}])
  clock_gettime(CLOCK_MONOTONIC, {349519, 664920388}) = 0
  accept4(3, 0xbfcd9aac, [16], SOCK_CLOEXEC) = -1 EMFILE (Too many open files)
  fcntl64(-1, F_GETFD)                    = -1 EBADF (Bad file descriptor)
  clock_gettime(CLOCK_MONOTONIC, {349519, 665068808}) = 0
  poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=15, events=POLLIN}, {fd=17, events=POLLIN}, {fd=16, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20, events=POLLIN}, {fd=14, events=POLLIN}, {fd=22, events=POLLIN}, {fd=21, events=POLLIN}, {fd=25, events=POLLIN}, {fd=24, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27, events=POLLIN}, {fd=29, events=POLLIN}, {fd=23, events=POLLIN}, {fd=31, events=POLLIN}, {fd=32, events=POLLIN}, {fd=33, events=POLLIN}, {fd=34, events=POLLIN}, {fd=35, events=POLLIN}, {fd=36, events=POLLIN}, {fd=39, events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=42, events=POLLIN}, ...], 1018, -1) = 1 ([{fd=3, revents=POLLIN}])
  clock_gettime(CLOCK_MONOTONIC, {349519, 667222733}) = 0
  accept4(3, 0xbfcd9aac, [16], SOCK_CLOEXEC) = -1 EMFILE (Too many open files)
  fcntl64(-1, F_GETFD)                    = -1 EBADF (Bad file descriptor)
  .................

  System info:
  Kubuntu 10.10
  ubuntu-bug does not work by the way because it tries to connect to dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/680444/+subscriptions




More information about the foundations-bugs mailing list