Bug 458807 - A stop job is running for Simple Desktop Display Manager
Summary: A stop job is running for Simple Desktop Display Manager
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.25.5
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL: https://github.com/sddm/sddm/issues/1513
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-06 19:33 UTC by zzrakic
Modified: 2022-09-06 19:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zzrakic 2022-09-06 19:33:56 UTC
+++ This bug was initially created as a clone of Bug #449630 +++


LOG
```
Sep 06 21:06:04 arch-xps15 kernel: audit: type=1131 audit(1662491164.030:174): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=shutdown-diagnose comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 06 21:07:27 arch-xps15 systemd[1]: sddm.service: State 'stop-sigterm' timed out. Killing.
Sep 06 21:07:27 arch-xps15 systemd[1]: sddm.service: Killing process 1078 (sddm) with signal SIGKILL.
Sep 06 21:07:27 arch-xps15 systemd[1]: sddm.service: Killing process 7008 (Xorg) with signal SIGKILL.
Sep 06 21:07:27 arch-xps15 systemd[1]: sddm.service: Main process exited, code=killed, status=9/KILL
Sep 06 21:07:27 arch-xps15 systemd[1]: sddm.service: Failed with result 'timeout'.
Sep 06 21:07:27 arch-xps15 systemd[1]: Stopped Simple Desktop Display Manager.
Sep 06 21:07:27 arch-xps15 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=sddm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
```


STEPS TO REPRODUCE
1. Reboot/Power off

OBSERVED RESULT
A stop job is running for Simple Desktop Display Manager hangs during the shutdown and it is forcefully killed after 1.5 minutes.

EXPECTED RESULT
SDDM should be stopped immediately. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
SUMMARY
Randomly, if I power off or reboot, the process of shutdown forces to hang because of SDDM, which blocks the shutdown and waits 1.30 min to actually kill SDDM process and continue shutdown. It's pretty annoying. I'm attaching two logs, one is the full shutdown journalctl log, the second is only sddm journalctl relevant part.


STEPS TO REPRODUCE
1. Reboot/Power off

OBSERVED RESULT
A stop job is running for Simple Desktop Display Manager. And the shutdown is forced to temporarily stops until it kills the SDDM process.

EXPECTED RESULT
It shouldn't happen.


SOFTWARE/OS VERSIONS
ArchLinux
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-09-06 19:36:47 UTC
At this point it's an SDDM issue which is already fixed: https://github.com/sddm/sddm/issues/1513

A workaround is having your distro adjust its systemd shutdown policy to kill unresponsive processes after 5 seconds, not the default 120 seconds, which is rather excessive. Or you can make this modification yourself locally.