-
Notifications
You must be signed in to change notification settings - Fork 202
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
Occassional unlock without password entered #181
Comments
The stack traces would be a start. Core dumps are not portable. |
Based on the provided coredumps it is:
|
I'm running Sway on Debian Unstable on two laptops, and the Swaylock crash seems to only happen on the older laptop. |
Due to this bug |
That is a pity. Sway is the best (and only) proper, lightweight Wayland compositor. Turns out jwz was right back in '04.
I think it might be worth checking his essay on XScreensaver, and maybe having a
I would chip in with code if I knew more C. |
How about launching swaylock somewhat like this by default to automatically reenable on error?
It could be done from a small shell wrapper script. Edit: ... which needs to call itself recursively. See below. |
Sway is still present and I don't see anything threatening its inclusion. In fact, I suspect that with a bit of luck we might see 1.6.X back-ported in Bullseye. Only the |
Can you try running with ASan? The stack trace doesn't make it immediately obvious what's going on. |
@emersion So I need to enable the AddressSanitizer compiler option? How would I do that in the
Yea, but Here's my initial proposed fix, An attacker could still get a quick glance at the screen below while |
|
Another thing to check would be whether latest master still fails. The way commit a99afe6 changes the code in question might (or might not) fix the problem. |
I wrote a dumb launcher swaylockd for swaylock that ensures it's running no matter what – immediately restarts swaylock if terminated by a signal (e.g. crashed) and also blocks all signals (except SIGKILL and SIGSTOP, ofc). Moreover, it ensures that only one instance per user is running. EDIT: I use swaylock on Alpine Linux and haven’t encountered any crash of swaylock yet. |
For the reference: #196 (comment) and two subsequent comments. |
This doesn't give any useful info on the crash, sadly. |
Is there a debug interface of some kind or shall I |
I consider this to be a problem with the protocol swaylock is using. That protocol should ensure that if swaylock crashes, the screen stays locked, and swaylock is automatically restarted. |
There is plenty of discussion on the matter of a lockscreen protocol. Please see swaywm/wlroots#2706, swaywm/wlroots#3165 and swaywm/sway#6483. |
ext-session-lock-v1: new protocol implementation fixes the first link (merged in Second link moved to https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3165 and was closed and I think due to the commit above? Implement ext-session-lock-v1 implemented that protocol in I don't know if that means that this issue is fixed now, but a status update seems useful in any case. |
Yeah, this kind of issue (swaylock crash causing unlock) is mitigated by the new protocol. |
This might be related to one of the existing issues. From #987360:
Debian bug-report contains core-dumps.
Is there something in particular that can help with investigation of this bug?
The text was updated successfully, but these errors were encountered: