Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDDM Crashes on loginctl terminate-user $USER #1908

Open
ArtsyMacaw opened this issue Apr 7, 2024 · 5 comments
Open

SDDM Crashes on loginctl terminate-user $USER #1908

ArtsyMacaw opened this issue Apr 7, 2024 · 5 comments

Comments

@ArtsyMacaw
Copy link

Currently whenever a users session is ended via loginctl terminate-user SDDM crashes to black screen and fails to respond
Logs from journalctl:
Apr 06 21:57:13 leviathan sddm[727]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
Apr 06 21:57:13 leviathan sddm[727]: Auth: sddm-helper (--socket /tmp/sddm-auth-a66c3ad0-1b7a-4dff-a3fc-10be7eb8c41a --id 9 --start /usr/bin/zsh -l -c sway --user haden) crashed (exit code 1)
Apr 06 21:57:13 leviathan sddm[727]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
Apr 06 21:57:13 leviathan sddm[727]: Auth: sddm-helper exited with 1
Currently running sddm 0.21.0-4 on Arch Linux

@Vogtinator
Copy link
Contributor

Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"

That is exactly what's supposed to happen with terminate-user. You shouldn't use it to log out.

That there's no greeter shown is independent of that. Anything useful in the logs? What's your config?

@ArtsyMacaw
Copy link
Author

ArtsyMacaw commented Apr 7, 2024

There's nothing else in the logs after it crashes, and this is running with the default config for Arch.
If this is expected behavior is there any reason not to close the issue?

@Vogtinator
Copy link
Contributor

If this is expected behavior is there any reason not to close the issue?

It's expected behavior that terminating the session prints Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed, but it's not expected that the greeter doesn't show.

If you kill just the zsh process instead of the whole session, does the greeter show up properly?

@ArtsyMacaw
Copy link
Author

Killing just the zsh process or even sddm itself has the greeter showing up properly. Also, it seems when the greeter does fail from using terminate-user systemd reports that sddm itself is still running.
I was able to reproduce this on an different machine running fedora 39, I attached logs from both machines.
fedora-39.log
arch-linux.log

@ArtsyMacaw
Copy link
Author

Poking around a bit more the Xorg process used to display the greeter is still running after the greeter crashes and manually killing it will cause sddm restart the greeter and display properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants