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

John Charonko 680444 at bugs.launchpad.net
Thu Sep 15 13:51:36 UTC 2011


@mr. goose

Information about kpackagekitsmarticon is discussed in
http://bugs.kde.org/show_bug.cgi?id=261180, the linked upstream bug.

Incidentally, if killing kpackagekitsmarticon doesn't help, you might
want to try this command, suggested in the KDE bug report.  It will
report how many files are open on each process.

ls /proc/| awk '{if($1+0==0) print "  "; else system("echo `ls
/proc/"$1+0"/fd|wc -l` "$1" `cat /proc/"$1+0"/cmdline` ")}' | sort -nr |
head

When I run it, for example, I get (after a bunch of permission denied
messages):

598 1505 //bin/dbus-daemon--fork--print-pid5--print-address7--session
518 15435 /usr/lib/kde4/libexec/kpackagekitsmarticon
107 6094 /usr/lib/thunderbird-6.0.2/thunderbird-bin
89 1688 akonadiserver
78 11625 /usr/lib/firefox-6.0.2/firefox-bin
72 1690 /usr/sbin/mysqld--defaults-file=/home/xxxxxxx/.local/share/akonadi//mysql.conf--datadir=/home/jcharonk/.local/share/akonadi/db_data/--socket=/home/jcharonk/.local/share/akonadi/socket-xxxxxxx/mysql.socket
68 1647 kdeinit4: ksmserver [kdeinit]
65 1731 /usr/bin/krunner
51 1686 /usr/bin/akonadi_control
47 1728 /usr/bin/nepomukservicestubnepomukstorage

As you can see, dbus-daemon is already up to 598 files, and most of
these belong to kpackagekitsmarticon (518).  I'm well on my way to
needing to kill it again.  See if you can spot another program that's
behaving badly this way - maybe there's more than one culprit and the
fix suggested for KStatusNotifierItem in kdelibs needs to be adapted to
that program as well.

Or, if you don't have too many open files, it could be that you've found
a different problem entirely with dbus.

-- 
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