| Summary: | Reboot hangs for 90 seconds after removing a user that was logged-in before | ||
|---|---|---|---|
| Product: | [ROSA-based products] ROSA Fresh | Reporter: | a.lahin |
| Component: | Packages from Main | Assignee: | ROSA Linux Bugs <bugs> |
| Status: | RESOLVED FIXED | QA Contact: | ROSA Linux Bugs <bugs> |
| Severity: | normal | ||
| Priority: | Normal | CC: | v.potapov |
| Version: | Fresh | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Platform: | --- | ROSA Vulnerability identifier: | |
| RPM Package: | systemd | ISO-related: | |
| Bad POT generating: | Upstream: | known | |
|
Description
a.lahin
2015-07-01 16:32:36 MSK
User has some processes running after exit: /lib/systemd/systemd --user (sd-pam) /bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation So userdel doesn't permit to remove such user: user2 is currently used by process 5519 (where 5519 is pid of the "/lib/systemd/systemd --user" process) When trying to kill the process (after user was deleted with GUI tool): июл 01 15:38:13 user-VirtualBox systemd[5519]: Starting Exit the Session... июл 01 15:38:13 user-VirtualBox systemd[12701]: Failed at step CHDIR spawning /bin/kill: No such file or directory июл 01 15:38:13 user-VirtualBox systemd[5519]: systemd-exit.service: main process exited, code=exited, status=200/CHDIR июл 01 15:38:13 user-VirtualBox systemd[5519]: Failed to start Exit the Session. июл 01 15:38:13 user-VirtualBox systemd[5519]: Dependency failed for Exit the Session. июл 01 15:38:13 user-VirtualBox systemd[5519]: Unit systemd-exit.service entered failed state. upstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1185278 The bug is produced by the following issues: 1. User leaves some processes after exit. 2. GUI Tool (System settings) allows to remove a user with the processes running. 3. systemd can't kill "/lib/systemd/systemd --user" process (due to missing $HOME?) If I recreate home directory for the deleted user, it's systemd process killed successfully: июл 01 15:47:43 user-VirtualBox systemd[1]: Received SIGCHLD from PID 5519 (systemd). июл 01 15:47:43 user-VirtualBox systemd[1]: Child 5519 (systemd) died (code=exited, status=0/SUCCESS) июл 01 15:47:43 user-VirtualBox systemd[1]: Child 5519 belongs to user@501.service июл 01 15:47:43 user-VirtualBox systemd[1]: user@501.service: main process exited, code=exited, status=0/SUCCESS июл 01 15:47:43 user-VirtualBox systemd[1]: About to execute: /bin/kill -TERM ${MAINPID} июл 01 15:47:43 user-VirtualBox systemd[1]: Forked /bin/kill as 14189 июл 01 15:47:43 user-VirtualBox systemd[1]: user@501.service changed running -> stop июл 01 15:47:43 user-VirtualBox systemd[14189]: Failed at step USER spawning /bin/kill: No such process июл 01 15:47:43 user-VirtualBox systemd[1]: Received SIGCHLD from PID 14189 ((kill)). After that the system rebooted without a delay. Not reproduced anymore with systemd v219. (user2's processes terminated when "user" login second time) It's no QA, please, add message of fixing the bug to advisory http://bugs.rosalinux.ru/show_bug.cgi?id=5944 |