systemd --user children processes not stopped afer logout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
After each logout from KDE, I can find the `systemd --user` process when I log into a tty{2..6} console and its remaining 23 children still running :
$ ps -Af | grep -v grep | egrep -w "PPID|$(pgrep -u $USER systemd)"
UID PID PPID C STIME TTY TIME CMD
sebasti+ 64862 1 0 13:13 ? 00:00:00 /lib/systemd/
sebasti+ 64865 64862 0 13:13 ? 00:00:00 (sd-pam)
sebasti+ 64881 64862 0 13:13 ? 00:00:00 /usr/libexec/
sebasti+ 64884 64862 0 13:13 ? 00:00:01 /usr/bin/
sebasti+ 64901 64862 0 13:13 ? 00:00:00 /usr/libexec/gvfsd
sebasti+ 64906 64862 0 13:13 ? 00:00:00 /usr/libexec/
sebasti+ 64908 64862 0 13:13 ? 00:00:00 /usr/libexec/
sebasti+ 64956 64862 0 13:13 ? 00:00:00 /usr/libexec/
sebasti+ 64971 64862 0 13:13 ? 00:00:00 /usr/libexec/
sebasti+ 64975 64862 0 13:13 ? 00:00:00 /usr/libexec/
sebasti+ 64998 64862 0 13:13 ? 00:00:00 /usr/libexec/
sebasti+ 65004 64862 0 13:13 ? 00:00:00 /usr/libexec/
sebasti+ 65010 64862 0 13:13 ? 00:00:00 /usr/libexec/
sebasti+ 65020 64862 0 13:13 ? 00:00:00 /usr/lib/
sebasti+ 65339 64862 0 13:13 ? 00:00:01 /usr/libexec/
sebasti+ 65855 64862 0 13:14 ? 00:00:00 /usr/libexec/
sebasti+ 66233 64862 0 13:14 ? 00:00:00 /usr/bin/
sebasti+ 66247 64862 0 13:14 ? 00:00:00 /usr/lib/
sebasti+ 66341 64862 0 13:14 ? 00:00:00 /usr/libexec/
sebasti+ 66356 64862 0 13:14 ? 00:00:00 /usr/libexec/
sebasti+ 66463 64862 0 13:14 ? 00:00:00 /usr/lib/
sebasti+ 66624 64862 0 13:14 ? 00:00:00 /usr/lib/
sebasti+ 66793 64862 0 13:14 ? 00:00:00 /usr/libexec/
sebasti+ 69972 64862 0 13:20 ? 00:00:00 /usr/bin/pulseaudio --daemonize=no --log-target=
$ loginctl list-sessions
SESSION UID USER SEAT TTY
99 1001 sebastien seat0
79 126 sddm seat0
105 1001 sebastien seat0 tty2
3 sessions listed.
$ loginctl -n 15 session-status $(loginctl list-sessions | grep -v tty | grep -m1 $USER | awk '{print $1}')
99 - sebastien (1001)
Since: Sat 2021-08-07 15:52:39 CEST; 13min ago
Leader: 119723
Seat: seat0; vc1
Display: :0
Service: sddm; type x11; class user
Desktop: KDE
State: closing
Unit: session-99.scope
├─120287 /usr/bin/baloo_file
├─120342 /usr/libexec/
├─120349 /usr/bin/
├─120407 /usr/libexec/
├─120439 /usr/bin/
└─122590 /usr/libexec/
Aug 07 15:52:39 michel-K72Jr systemd[1]: Started Session 99 of user sebastien.
Aug 07 15:52:40 michel-K72Jr sddm-helper[
Aug 07 15:52:40 michel-K72Jr sddm-helper[
Aug 07 15:53:09 michel-K72Jr sddm[119792]: kwalletd5: Checking for pam module
Aug 07 15:53:09 michel-K72Jr sddm[119792]: kwalletd5: Got pam-login param
Aug 07 15:53:09 michel-K72Jr sddm[119792]: kwalletd5: Waiting for hash on 7-
Aug 07 15:53:09 michel-K72Jr sddm[119792]: kwalletd5: waitingForEnvir
Aug 07 15:53:09 michel-K72Jr sddm[119792]: kwalletd5: client connected
Aug 07 15:53:09 michel-K72Jr sddm[119792]: kwalletd5: client disconnected
Aug 07 15:53:09 michel-K72Jr sddm-helper[
Aug 07 15:53:09 michel-K72Jr sddm-helper[
Aug 07 15:53:09 michel-K72Jr sddm-helper[
Aug 07 15:53:09 michel-K72Jr sddm-helper[
Aug 07 15:53:09 michel-K72Jr sddm-helper[
Maybe this is related to sddm and its child processes :
$ loginctl show-session $(loginctl list-sessions | awk -v user=$USER '$0 ~ user".* $"{print$1;exit}')
Id=99
User=1001
Name=sebastien
Timestamp=Sat 2021-08-07 15:52:39 CEST
TimestampMonoto
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=sddm
Desktop=KDE
Scope=session-
Leader=119723
Audit=99
Type=x11
Class=user
Active=no
State=closing
IdleHint=no
IdleSinceHint=0
IdleSinceHintMo
LockedHint=no
$ ps -Af | grep -v grep | egrep -w "PPID|$(pgrep sddm)"
UID PID PPID C STIME TTY TIME CMD
root 2240 1 0 10:19 ? 00:00:00 /usr/bin/sddm
root 120872 2240 10 15:53 tty1 00:03:49 /usr/lib/xorg/Xorg -nolisten tcp -auth /var/run/
root 121865 2240 0 15:56 ? 00:00:00 /usr/lib/
sebasti+ 121890 121865 0 15:56 ? 00:00:00 /usr/bin/
$ ps -Af | grep -v grep | egrep -w "PPID|$(pgrep startplasma-x11)"
UID PID PPID C STIME TTY TIME CMD
sebasti+ 121890 121865 0 15:56 ? 00:00:00 /usr/bin/
sebasti+ 122249 121890 0 15:56 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/im-launch env LD_PRELOAD=
sebasti+ 122298 121890 0 15:56 ? 00:00:00 /usr/bin/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSign
Uname: Linux 5.4.0-80-generic x86_64
.tmp.unity_
ApportVersion: 2.20.11-
Architecture: amd64
BootLog:
CasperMD5CheckR
CompizPlugins: No value set for `/apps/
CompositorRunning: None
CurrentDesktop: KDE
Date: Sat Aug 7 13:40:23 2021
DistUpgraded: 2020-12-26 17:43:58,639 DEBUG Running PostInstallScript: './xorg_
DistroCodename: focal
DistroVariant: ubuntu
ExtraDebuggingI
GraphicsCard:
Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470] [1002:68e0] (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Park [Mobility Radeon HD 5430/5450/5470] [1043:1bf2]
InstallationDate: Installed on 2015-12-27 (2049 days ago)
InstallationMedia: Kubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
MachineType: ASUSTeK Computer Inc. K72Jr
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to focal on 2020-12-26 (223 days ago)
dmi.bios.date: 09/06/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: K72Jr.209
dmi.board.
dmi.board.name: K72Jr
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: K72Jr
dmi.product.
dmi.sys.vendor: ASUSTeK Computer Inc.
version.compiz: compiz 1:0.9.14.
version.libdrm2: libdrm2 2.4.105-3~20.04.1
version.
version.
version.
version.
version.
version.
version.
xserver.bootTime: Sat Aug 7 13:16:54 2021
xserver.configfile: default
xserver.errors:
Failed to open authorization file "/var/run/
RADEON(0): failed to set mode: Permission denied
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs: Output HDMI-0 LVDS VGA-0
xserver.version: 2:1.20.
xserver.
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
affects: | xorg (Ubuntu) → systemd (Ubuntu) |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |