[Bug 261180] dbus-daemon runaway at 100% CPU

Warren Jones wjones at fluke.com
Tue Feb 15 23:14:27 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=261180


Warren Jones <wjones at fluke.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wjones at fluke.com




--- Comment #4 from Warren Jones <wjones fluke com>  2011-02-16 00:14:25 ---
I've observed the same problem with KDE 4.5.95-3.1 (openSUSE 11.4 milestone
6).  I monitored dbus-daemon with strace, and found this sequence repeated over
and over:

------------------------ strace.out ------------------------
clock_gettime(CLOCK_MONOTONIC, {503730, 307255985}) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN},
{fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12,
events=POLLIN}, {fd=15, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=13, events=POLLIN}, {fd=17, events=POLLIN}, {fd=19,
events=POLLIN}, {fd=21, events=POLLIN}, {fd=18, events=POLLIN}, {fd=22,
events=POLLIN}, {fd=20, events=POLLIN}, {fd=24, events=POLLIN}, {fd=25,
events=POLLIN}, {fd=26, events=POLLIN}, {fd=27, events=POLLIN}, {fd=28,
events=POLLIN}, {fd=29, events=POLLIN}, {fd=30, events=POLLIN}, {fd=31,
events=POLLIN}, {fd=32, events=POLLIN}, {fd=33, events=POLLIN}, {fd=34,
events=POLLIN}, {fd=35, events=POLLIN}, {fd=37, events=POLLIN}, {fd=38,
events=POLLIN}, {fd=39, events=POLLIN}, ...], 1019, -1) = 1 ([{fd=3,
revents=POLLIN}])
clock_gettime(CLOCK_MONOTONIC, {503730, 310057000}) = 0
accept4(3, 0xbfaacfec, [16], SOCK_CLOEXEC) = -1 EMFILE (Too many open files)
fcntl64(-1, F_GETFD)                    = -1 EBADF (Bad file descriptor)
------------------------ strace.out ------------------------

Note the error "EMFILE (Too many open files)".  I found that dbus-daemon had
1024 files open:

    eg> ls /proc/$DBUS_PID/fd | wc -l
    1024

It looks like dbus-daemon has hit the limit for open files:

    eg> ulimit -n
    1024

This looks like a report of the same problem:

    https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/381063

This report includes a suggested work-around:  increasing the limit on open
files.  This seems like a questionable idea, since dbus doesn't normally come
anywhere close to the limit.

I looked for other applications that had a lot of open files open, and found
that "kpackagekitsmarticon" had 976.  This seems to be an applet that sits in
the system tray at tells you if software updates are available.  I killed the
applet, and found that dbus-daemon returned to normal.

I'm not sure if the problem is with dbus-daemon, kpackagekitsmarticon, or some
interaction between the two.  Perhaps other applications can open too many dbus
connections.  For the time being, my workaround is to uninstall kpackagekit.

Found another report that confirms a problem with kpackagekitsmarticon here:

    https://bugzilla.redhat.com/show_bug.cgi?id=667787

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list