gpg in windows hanging rarely

Ray Satiro raysatiro at yahoo.com
Sun Nov 26 07:26:49 CET 2017


I'm using gpg and I notice rarely I will run a command and it will just
hang. What could be the reasons for that? The two commands I've noticed
it happening are --import and --delete-keys. I've noticed it in my
regular key database and was able to reproduce it once when I set
GNUPGHOME to an empty directory to make a new database (unfortunately I
did not have the foresight to run --debug-all at that time).

gpg (GnuPG) 2.2.1
libgcrypt 1.8.1

In an attempt to coax out the hang I imported in a loop a few thousand
times, but it didn't hang.

cd foo
set GNUPGHOME=.

then I run a batch file ..\a.bat that does the loop:

:restart
gpg --debug-all --import c:\fedora.gpg
rm -rf *
goto restart

One thing I did notice was I ended up with a number of gpg-agent
processes that did not immediately terminate. After a minute they did
though. I also notice there's 4 gpg-agent processes still running from
earlier in the day.





More information about the Gnupg-users mailing list