[Bug 1142492] New: display-manager is restarted like mad on crash
http://bugzilla.suse.com/show_bug.cgi?id=1142492 Bug ID: 1142492 Summary: display-manager is restarted like mad on crash Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: systemd-maintainers@suse.de Reporter: jslaby@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- My X server is crashing at the start repeatedly: -rw------- 1 root root 44982272 2019-07-23 12:51:54.579493938 +0200 core.0.24697.X -rw------- 1 root root 44982272 2019-07-23 12:51:56.927477919 +0200 core.0.24746.X -rw------- 1 root root 44982272 2019-07-23 12:51:59.167462637 +0200 core.0.24781.X -rw------- 1 root root 44990464 2019-07-23 12:52:01.411447326 +0200 core.0.24815.X -rw------- 1 root root 44982272 2019-07-23 12:52:03.611432316 +0200 core.0.24850.X -rw------- 1 root root 44982272 2019-07-23 12:52:05.859416979 +0200 core.0.24883.X -rw------- 1 root root 44990464 2019-07-23 12:52:08.107401641 +0200 core.0.24919.X -rw------- 1 root root 44978176 2019-07-23 12:52:10.495385349 +0200 core.0.24949.X -rw------- 1 root root 44990464 2019-07-23 12:52:12.771369821 +0200 core.0.24984.X -rw------- 1 root root 44978176 2019-07-23 12:52:15.031354402 +0200 core.0.25014.X -rw------- 1 root root 44990464 2019-07-23 12:52:17.391338300 +0200 core.0.25048.X And it is being restarted over and over so that I have to ssh to the machine and stop the DM service remotely. I thought it would be ratelimited? Or is this a bug in /usr/lib/X11/display-manager script of xdm? I am using sddm as display manager. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c1
Franck Bui
Or is this a bug in /usr/lib/X11/display-manager script of xdm?
I am using sddm as display manager.
sddm.service has: [Service] ... Restart=always so it's expected that systemd tries to restart it. Perhaps "always" is not the best choice and another value might be more appropriate (see systemd.service(5)). Now systemd also offers some protections against such restart infinite loop through the StartLimitIntervalSec= and StartLimitBurst= options (systemd.unit(5)) but in this specific case the default values for these options (10s / 5) are not appropriate as restarting sddm takes at least 2 seconds. So yes sddm.service should be improved to handle gracefully such cases, therefore reassigning to sddm maintainer. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c2
Fabian Vogt
So yes sddm.service should be improved to handle gracefully such cases, therefore reassigning to sddm maintainer.
I opened a PR upstream: https://github.com/sddm/sddm/pull/1184 However, in openSUSE sddm.service is not used by default, as we have display-manager.service. Which one is used here? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c3
Jiri Slaby
(In reply to Franck Bui from comment #1)
So yes sddm.service should be improved to handle gracefully such cases, therefore reassigning to sddm maintainer.
I opened a PR upstream: https://github.com/sddm/sddm/pull/1184
However, in openSUSE sddm.service is not used by default, as we have display-manager.service. Which one is used here?
● display-manager.service - X Display Manager Loaded: loaded (/usr/lib/systemd/system/display-manager.service; enabled; vendor preset: enabled) ● sddm.service - Simple Desktop Display Manager Loaded: loaded (/usr/lib/systemd/system/sddm.service; disabled; vendor preset: disabled) So the former. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c4
Fabian Vogt
(In reply to Fabian Vogt from comment #2)
(In reply to Franck Bui from comment #1)
So yes sddm.service should be improved to handle gracefully such cases, therefore reassigning to sddm maintainer.
I opened a PR upstream: https://github.com/sddm/sddm/pull/1184
However, in openSUSE sddm.service is not used by default, as we have display-manager.service. Which one is used here?
● display-manager.service - X Display Manager Loaded: loaded (/usr/lib/systemd/system/display-manager.service; enabled; vendor preset: enabled) ● sddm.service - Simple Desktop Display Manager Loaded: loaded (/usr/lib/systemd/system/sddm.service; disabled; vendor preset: disabled)
So the former.
Ok, reassigning to xdm maintainers. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c5
Stefan Dirsch
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c6
Stefan Dirsch
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c7
--- Comment #7 from Stefan Dirsch
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c8
Jiri Slaby
Jiry, could you give these changes a try? Just add to /usr/lib/systemd/system/display-manager.service:
Index: display-manager.service =================================================================== --- display-manager.service (revision cdc1a7980bd914226ee45cd6ba0ba422) +++ display-manager.service (working copy) @@ -6,6 +6,8 @@ Wants=remote-fs.target dbus.socket systemd-user-sessions.service systemd-logind.service After=remote-fs.target dbus.socket systemd-user-sessions.service systemd-logind.service getty@tty7.service plymouth-quit.service OnFailure=plymouth-quit.service +StartLimitIntervalSec=30 +StartLimitBurst=2
Added the lines, daemon-reloaded, display-manager restarted. It behaves still the same. Note in the attached log, that the PID of sddm is still the same, so it looks like sddm is trying to restart the X server. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c9
Stefan Dirsch
http://bugzilla.suse.com/show_bug.cgi?id=1142492
Stefan Dirsch
http://bugzilla.suse.com/show_bug.cgi?id=1142492
Stefan Dirsch
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c10
--- Comment #10 from Jiri Slaby
Jiry, as workaround you can use another displaymanager, which still supports this feature. xdm and possbily also still gdm. And maybe also others ...
No problem, I see this only with xf86-video-intel, which I am not using by default. Modesetting does not crash the X server so early :). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c11
--- Comment #11 from Stefan Dirsch
http://bugzilla.suse.com/show_bug.cgi?id=1142492
http://bugzilla.suse.com/show_bug.cgi?id=1142492#c12
--- Comment #12 from Jiri Slaby
Hmm. Which intel GPU are you using? xf86-video-intel may still be the right/recommended driver, if it's rather old.
It's skylake, so modesetting is preferred here. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1142492
Stefan Dirsch
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com