gnome-keyring crashes when using ssh after having renamed ssh key files
Description
If you create ssh key files with ssh-keygen, use ssh to attempt to connect to a host, rename the ssh key files and then use ssh again, gnome-keyring will crash.
This crash is associated with the following Fedora Retrace crash report according to the Problem Reporting tool: https://retrace.fedoraproject.org/faf/reports/844754/
Occurring on Fedora 39.
GDB backtrace of gnome-keyring when crash occurs is attached: gnome-keyring-daemon-gdb-backtrace.txt
I also reported this in the Red Hat Bugzilla here: https://bugzilla.redhat.com/show_bug.cgi?id=2276110
Reproducible
Always
Steps to Reproduce
- Create new key with ssh-keygen
- Attempt to connect to a host using ssh client
- Rename public & private key files
- Repeat step 2
- gnome-keyring crashes
Example Repro Steps
- ssh-keygen -t ed25519 -f ~/.ssh/test12345
- ssh -v 192.168.1.123
- cd ~/.ssh
- mv test12345 test67890
- mv test12345.pub test67890.pub
- ssh -v 192.168.1.123
- gnome-keyring crash occurs
Actual Results
gnome-keyring crashes (as evidenced by crash reporing Notification appearing, confirmed by looking at list of crashes in Problem Reporting application)
Expected Results
gnome-keyring should not crash when renaming ssh key files