Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1023545: systemd --user and sd-pam processes keep running after logout (again)

696 views
Skip to first unread message

Patrick Häcker

unread,
Nov 6, 2022, 8:40:04 AM11/6/22
to
Package: systemd
Version: 252-2
Severity: normal

Dear Maintainer,

similar to #749268 there seems to be again the problem, that when logging
out, the systemd user process and sd-pam are not killed.

Take, e.g., this example:
# loginctl kill-session 34

# pgrep -a -u pat
11499 /lib/systemd/systemd --user
11500 (sd-pam)

# loginctl list-sessions
SESSION UID USER SEAT TTY
13 0 root seat0 tty2
21 0 root seat0 tty2
25 0 root seat0 tty2
33 0 root seat0 tty2
36 0 root seat0 tty2
37 121 sddm seat0

6 sessions listed.

So although there is no logind session left, there are still the two user
processes around.

I added
KillUserProcesses=yes
but that did not help (is this an additional bug?).

Do I miss anything in order to kill the systemd user process automatically?

Kind regards
Patrick


-- Package-specific info:

-- System Information:
Debian Release: bookworm/sid
APT prefers stable-security
APT policy: (900, 'stable-security'), (900, 'testing'), (800, 'stable'), (500, 'unstable-debug'), (400, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de:en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii libacl1 2.3.1-1
ii libaudit1 1:3.0.7-1.1+b1
ii libblkid1 2.38.1-1.1+b1
ii libc6 2.35-4
ii libcap2 1:2.44-1
ii libcryptsetup12 2:2.5.0-6
ii libfdisk1 2.38.1-1.1+b1
ii libgcrypt20 1.10.1-2
ii libkmod2 30+20220905-1
ii liblz4-1 1.9.4-1
ii liblzma5 5.2.7-0.1
ii libmount1 2.38.1-1.1+b1
ii libseccomp2 2.5.4-1+b1
ii libselinux1 3.4-1+b2
ii libssl3 3.0.7-1
ii libsystemd-shared 252-2
ii libsystemd0 252-2
ii libzstd1 1.5.2+dfsg-1
ii mount 2.38.1-1.1+b1

Versions of packages systemd recommends:
ii dbus [default-dbus-system-bus] 1.14.4-1
ii systemd-timesyncd [time-daemon] 252-2

Versions of packages systemd suggests:
ii libfido2-1 1.12.0-1
ii libtss2-esys-3.0.2-0 3.2.0-1+b1
ii libtss2-mu0 3.2.0-1+b1
pn libtss2-rc0 <none>
ii policykit-1 122-1
pn systemd-boot <none>
ii systemd-container 252-2
pn systemd-homed <none>
ii systemd-resolved 252-2
pn systemd-userdbd <none>

Versions of packages systemd is related to:
ii dbus-user-session 1.14.4-1
pn dracut <none>
ii initramfs-tools 0.142
ii libnss-systemd 252-2
ii libpam-systemd 252-2
ii udev 252-2

-- Configuration Files:
/etc/systemd/journald.conf changed:
[Journal]
SystemMaxUse=300M

/etc/systemd/logind.conf changed:
[Login]
KillUserProcesses=yes

/etc/systemd/system.conf changed:
[Manager]
DefaultTimeoutStartSec=20s
DefaultTimeoutStopSec=15s
DefaultDeviceTimeoutSec=20s


-- no debconf information

Michael Biebl

unread,
Dec 5, 2022, 4:50:05 PM12/5/22
to
It looks like
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023545
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024080
might be duplicates.

If you think this is a regression in 252 and you can provide a way how
this can be reproduced, my advice would be to file this upstream at

https://github.com/systemd/systemd/issues/

OpenPGP_signature
0 new messages