[Pkg-utopia-maintainers] Bug#879898: dbus: memory leak in dbus-daemon consumes over 5GB memory

Nicholas D Steeves nsteeves at gmail.com
Fri Oct 27 03:58:59 UTC 2017


Package: dbus
Version: 1.10.22-0+deb9u1
Severity: important

I hope to hear back from you soon, because Monday I will need to use
my laptop and I will have to kill the misbehaving dbus-daemon to
reclaim memory at that time.  In the meantime I will keep my laptop in
S3 in order to prevent dbus-daemon from growing to such a size as the
kernel's OOM killer kills it.

I'm running Stretch on a Thinkpad X220.  It was a fresh installation
of the KDE task using the netinstaller.  Like most laptop users, I
suspend or hibernate rather than shutting down, but dbus-daemon has
only been running for 7 days.  After installing -dbg packages for
everything gdb said was missing I was able to capture the attached
backtrace...however nothing seems to provide
sysdeps/unix/syscall-template.S

Here is the only section that jumps out to me:
  0x00007f87feb730d3 in __epoll_wait_nocancel () at ../sysdeps/unix/syscall-template.S:84
  84	../sysdeps/unix/syscall-template.S: No such file or directory.
  #0  0x00007f87feb730d3 in __epoll_wait_nocancel () at ../sysdeps/unix/syscall-template.S:84

I've also attached the relevant output from ps -aux and top.

-- System Information:
Debian Release: 9.1
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dbus depends on:
ii  adduser              3.115
ii  init-system-helpers  1.48
ii  libapparmor1         2.11.0-3
ii  libaudit1            1:2.6.7-2
ii  libc6                2.24-11+deb9u1
ii  libcap-ng0           0.7.7-3+b1
ii  libdbus-1-3          1.10.22-0+deb9u1
ii  libexpat1            2.2.0-2+deb9u1
ii  libselinux1          2.6-3+b3
ii  libsystemd0          232-25+deb9u1
ii  lsb-base             9.20161125

dbus recommends no packages.

Versions of packages dbus suggests:
ii  dbus-x11 [dbus-session-bus]  1.10.22-0+deb9u1

Versions of packages dbus is related to:
ii  dbus-x11      1.10.22-0+deb9u1
ii  systemd       232-25+deb9u1
ii  systemd-sysv  232-25+deb9u1

-- no debconf information

Sincerely,
Nicholas
-------------- next part --------------
sten       958  0.2 66.6 6682644 5371232 ?     Ss   Oct19  28:20 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 15 --session
-------------- next part --------------
PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
958 sten      20   0 6682644 5.123g    692 t   0.0 66.7  28:20.00 dbus-daemon
-------------- next part --------------
Attaching to process 958
Reading symbols from /usr/bin/dbus-daemon...Reading symbols from /usr/lib/debug/.build-id/5e/b9d5dbcdf4a19994e5a9dd24e0c266f5e69b55.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libdbus-1.so.3...Reading symbols from /usr/lib/debug/.build-id/89/b4008c84caf853cd403f295d44d76f7c8402fe.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libsystemd.so.0...Reading symbols from /usr/lib/debug/.build-id/c5/5580513bc9dd1d436aa03d17f84b659b9a0301.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libexpat.so.1...Reading symbols from /usr/lib/debug/.build-id/3a/48cca749065ff40698794c2bde4990ae524a88.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libselinux.so.1...Reading symbols from /usr/lib/debug/.build-id/5a/f6fc2e006d3e50bc6b643d4bb6fafe7919c238.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libaudit.so.1...Reading symbols from /usr/lib/debug/.build-id/07/09efec334492fb455a6238d52f4f45041b97cb.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libcap-ng.so.0...Reading symbols from /usr/lib/debug/.build-id/88/c372f986252efa8e0def53516935f35d8010c4.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libapparmor.so.1...Reading symbols from /usr/lib/debug/.build-id/71/943532f6d2a4702f9bbbc24e9655cd0b519f6c.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug/.build-id/96/8df33f83963b559243653d74d27d89605bed02.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/.build-id/79/450f6e36287865d093ea209b85a222209925ff.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...Reading symbols from /usr/lib/debug/.build-id/fe/41526a83999f2fe9d0f8aadcd61d03a92cbb70.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...Reading symbols from /usr/lib/debug/.build-id/d9/4951f95e154271ae7cf843cc9d6d67ea502f5d.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/liblz4.so.1...Reading symbols from /usr/lib/debug//usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libgcrypt.so.20...Reading symbols from /usr/lib/debug/.build-id/c5/9a6e026fe4978b2b99cfd643839b9ccd1c8a21.debug...done.
done.
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/6f/150f33b150d6a81e26a425dd47d713d00f2d29.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libpcre.so.3...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libpcre.so.3.13.3...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug/.build-id/6a/5d98612129b8186f21e800afdfaaa627082f46.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libgpg-error.so.0...Reading symbols from /usr/lib/debug/.build-id/8b/9d1f17d242a08fea23af32055037569a714209.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libnss_compat.so.2...Reading symbols from /usr/lib/debug/.build-id/58/ab128465250cefd3523f021a4c10dd176b0131.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libnsl.so.1...Reading symbols from /usr/lib/debug/.build-id/2f/a2f9284c08402001f2d382eefb6a4102a9c60c.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libnss_nis.so.2...Reading symbols from /usr/lib/debug/.build-id/2d/40f73059b9aba764e24344d67bbce2cb475acf.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libnss_files.so.2...Reading symbols from /usr/lib/debug/.build-id/6d/cc0dde95388c7243f1a1f8d3108354a1b3eb22.debug...done.
done.
0x00007f87feb730d3 in __epoll_wait_nocancel () at ../sysdeps/unix/syscall-template.S:84
84	../sysdeps/unix/syscall-template.S: No such file or directory.
#0  0x00007f87feb730d3 in __epoll_wait_nocancel () at ../sysdeps/unix/syscall-template.S:84
#1  0x000055fab3ab58b5 in socket_set_epoll_poll (set=<optimized out>, revents=0x7ffcae297cc0, 
    max_events=<optimized out>, timeout_ms=<optimized out>)
    at ../../../dbus/dbus-socket-set-epoll.c:300
#2  0x000055fab3ab187b in _dbus_socket_set_poll (timeout_ms=<optimized out>, max_events=64, 
    revents=0x7ffcae297cc0, self=<optimized out>) at ../../../dbus/dbus-socket-set.h:111
#3  _dbus_loop_iterate (loop=loop at entry=0x55fab3f0f4e0, block=block at entry=1)
    at ../../../dbus/dbus-mainloop.c:658
#4  0x000055fab3ab1d55 in _dbus_loop_run (loop=0x55fab3f0f4e0)
    at ../../../dbus/dbus-mainloop.c:883
#5  0x000055fab3a971f9 in main (argc=<optimized out>, argv=<optimized out>)
    at ../../../bus/main.c:684
Detaching from program: /usr/bin/dbus-daemon, process 958
quit


More information about the Pkg-utopia-maintainers mailing list