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

Crash on lockscreen when using Pageant #10828

Open
Mat2095 opened this issue May 29, 2024 · 3 comments
Open

Crash on lockscreen when using Pageant #10828

Mat2095 opened this issue May 29, 2024 · 3 comments

Comments

@Mat2095
Copy link

Mat2095 commented May 29, 2024

Overview

KeePassXC crashes on Windows after waking up from sleep, on the lockscreen, when using Pageant

Steps to Reproduce

  1. Run KeePassXC and unlock database, have Pageant configured
  2. Send PC to sleep
  3. Wake PC up

Expected Behavior

Nothing, KeePassXC should continue running

Actual Behavior

KeePassXC crashes often in this situation. If it crashes, it might show a message like this, or it might crash silently:

Screenshot 2024-05-29 201138

Context

It doesn't crash if the database is locked before sleeping.
I'm using SSH-Agent with both OpenSSH and Pageant (I have some keys that I add to them upon unlocking the database). I found that disabling Pageant (and using either OpenSSH only or none) always prevents the crash. When having Pageant enabled (either with OpenSSH or alone), it "often" (maybe 50-90 percent) crashes.
I'm using Pageant Release 0.81.
As mentioned before, the crash is not completely reliable, so I can't be completely certain that Pageant/Pageant-Integration causes the issue.

Debug-info

KeePassXC - Version 2.7.8
Revision: f6757d3

Qt 5.15.11
Diagnosemodus ist deaktiviert.

Betriebssystem: Windows 11 Version 2009
CPU-Architektur: x86_64
Kernel: winnt 10.0.22631

Aktivierte Erweiterungen:

  • Auto-Type
  • Browser-Integration
  • Passkeys
  • SSH-Agent
  • KeeShare
  • YubiKey
  • Schnelle Entsperrung

Kryptographische Bibliotheken:

  • Botan 3.1.1

Operating System: Windows

@Mat2095 Mat2095 added the bug label May 29, 2024
@droidmonkey
Copy link
Member

droidmonkey commented May 31, 2024

Unfortunately I cannot replicate this at all. Can you provide any additional details or steps?

I did the following:

  1. Have Pageant running and OpenSSH running
  2. Set an SSH Agent entry to load a key on unlock and remove it on lock
  3. Locked database
  4. Unlock database, confirm key in pageant and openssh agent
  5. Put computer to sleep (and also tried hibernate)
  6. Wake
  7. Database is locked and key is not in pageant nor openssh agent, no crash

I did this 20 times

@Mat2095
Copy link
Author

Mat2095 commented May 31, 2024

Thanks for looking into this.
So it seems there is something else required for the crash to occur, that I am unaware of. I'll try to find it, maybe I can reproduce it on another machine.

@Mat2095
Copy link
Author

Mat2095 commented Jun 6, 2024

Just a quick update, I haven't managed to find what causes the issues yet. On my second machine I couldn't make it crash.
But I found out two things:

  • in cases where KeePassXC does NOT crash, the keys are still present in Pageant, so they were not removed
  • both locking and hibernating does not cause any issues; not crashes and keys always get removed there
    I'll continue looking for the cause.

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