[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#860270: libkf5kiocore5: leaks socket file descriptors to child processes



Package: libkf5kiocore5
Version: 5.28.0-2
Severity: normal

I have noticed lvm tools complaining about leaked file descriptors when
they are started from a shell in a kde konsole. One of the file
descriptors is to /run/user/1000/kded5ZT2405.2.slave-socket , which is
inherited from kded5 and likely opened by /usr/lib/libkio.so.5.14.26 (at
least I could not find any other lib with the string "slave-socket" in
it).

It should probably open the socket with the CLOEXEC flag. Or maybe kded5
should make sure to close it. In this case, please re-assign to kded5.

This issue may be related to #860269 in libkf5bluezqt6

$ ls -l /proc/$$/fd
total 0
lrwx------ 1 stf stf 64 Apr 13 21:01 0 -> /dev/pts/3
lrwx------ 1 stf stf 64 Apr 13 21:01 1 -> /dev/pts/3
lrwx------ 1 stf stf 64 Apr 13 21:01 2 -> /dev/pts/3
lrwx------ 1 stf stf 64 Apr 13 21:01 255 -> /dev/pts/3
lr-x------ 1 stf stf 64 Apr 13 21:01 31 -> /dev/rfkill
lrwx------ 1 stf stf 64 Apr 13 21:01 37 -> socket:[28435]

$ ss -neap |grep pid=$$,fd=37
u_str  ESTAB      0      0
/run/user/1000/kded5ZT2405.2.slave-socket 28435                 * 0
users:(("grep",pid=8639,fd=37),("ss",pid=8638,fd=37),("vi",pid=8325,fd=37),("sh",pid=8324,fd=37),("reportbug",pid=8252,fd=37),("bash",pid=7536,fd=37),("bash",pid=3353,fd=37),("bash",pid=3034,fd=37),("bash",pid=2928,fd=37),("konsole",pid=2925,fd=37))


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, i386

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

Versions of packages libkf5kiocore5 depends on:
ii  libacl1            2.2.52-3+b1
ii  libc6              2.24-10
ii  libkf5configcore5  5.28.0-2
ii  libkf5coreaddons5  5.28.0-2
ii  libkf5dbusaddons5  5.28.0-1
ii  libkf5i18n5        5.28.0-2
ii  libkf5service-bin  5.28.0-1
ii  libkf5service5     5.28.0-1
ii  libqt5core5a       5.7.1+dfsg-3+b1
ii  libqt5dbus5        5.7.1+dfsg-3+b1
ii  libqt5network5     5.7.1+dfsg-3+b1
ii  libqt5xml5         5.7.1+dfsg-3+b1
ii  libstdc++6         6.3.0-12

libkf5kiocore5 recommends no packages.

libkf5kiocore5 suggests no packages.

-- no debconf information


Reply to: