Complete freeze upon "Save auth info to file"
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### I confirm that...
- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.
- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.
- [X] The issue can be reproduced on the **latest** available commit of Doom.
- [X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. *(Doom does not support development builds like 29+ or any version ending in .50 or .9x)*
### Expected behavior
To facilitate using TRAMP, Emacs can save a password into a keyfile that only has got to be unlocked once per session. I'm using it to access files in my root directory.
If the keyfile does not exist yet, Emacs asks `Save auth info to file...`. Pressing `y` leads to Emacs asking for a password to encrypt the keyfile twice and eventually saving the keyfile successfully.

### Current behavior
It all worked fine for me before i ran doom upgrade recently. The last working configuration for me was from beginning/mid August. Since then, Emacs freezes completely when i press `y` to save the auth info to file.
As it freezes completely, it is hard for me to backtrace. I did my best and came up with the following:
This is Emacs asking me if i want to save auth info. I don't know if the `start:iloader: Finished!` debug output is related or just conincidental:

This is the debug output of Emacs freezing after me entering `y` to save auth info to file:

As Emacs freezes up completely, i cannot access anything else and only see this frozen message.
Running emacs --debug-init doesn't show an error message in the terminal when Emacs freezes, so this is of no help.
I deleted `~/.emacs.d` and reinstalled doom emacs but the issue persists. I ran doom upgrade frequently during the last couple of days but the issue didn't resolve itself.
### Steps to reproduce
1. Open Emacs
2. Open a bookmark that opens a file that needs the root password
3. Enter the root password
4. Emacs asks you whether to save this password to a file. Press `y`.
5. Emacs freezes completely.
### System Information
https://pastebin.com/jmCuV2kS
Contributor guide
Assessment
This issue has not been assessed yet.