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

[BUG] [SECURITY] Cosmic greeter crash when displays disconnect and unlocks user's desktop without auth #151

Open
gmpinder opened this issue Oct 30, 2024 · 6 comments

Comments

@gmpinder
Copy link

version: cosmic-greeter-1.0.0~alpha.2^git20241014.7366808-1.fc40.x86_64
os: Bazzite 40 (FROM Fedora Kinoite)
display manager: SDDM

I've got my system setup with a KVM that disconnects my monitors from the PC when switching. I normally will lock my system (Super+Esc) before switching, but now when I switch back the greeter crashes and drops me into a fresh desktop session without making me login.

@Drakulix
Copy link
Member

That doesn't sound like a cosmic-greeter crash (which wouldn't leave you with an open session), but a compositor crash (which indeed the "locked" state wouldn't survive, we need to fix that). Do you have a log for that crash? (journalctl --user _COMM=cosmic-comp)

@gmpinder
Copy link
Author

Makes sense. Here's what I've got
comic-comp-journal.log

@ids1024
Copy link
Member

ids1024 commented Oct 30, 2024

Is this consistently reproducible? I don't seem to see this, though maybe I'm not testing the exact same situation.

It would be clearer to see what's going on in a debug build that produces a more complete backtrace.

But if https://github.com/pop-os/cosmic-comp/blob/eb64fdaf8fe4f5e6957a35e74004b183acc905c8/src/shell/mod.rs#L974 is failing, .active() is being called before .add_output() has added the output? Or after the output has been removed.

@gmpinder
Copy link
Author

It's very consistent for me, like every time I perform the action of locking, switching the KVM, and switching back. I have 2 monitors plugged into the KVM. Both are 2560x1440. One goes up to 144Hz and the other up to 60Hz.

@gmpinder
Copy link
Author

It would be clearer to see what's going on in a debug build that produces a more complete backtrace.

I'm running the COPR build of cosmic on a Fedora Atomic image. Is there an easy way for me to run a debug build?

@LavaHeron
Copy link

I found a very similar bug, maybe that helps. pop-os/cosmic-epoch#1214

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

No branches or pull requests

4 participants