Subject: bug#65144: 29.1.50; epg-wait-for-status hangs when encrypting files

From: Eli Zaretskii <[email-masked]>
Date: Tue, 08 Aug 2023 15:20:35 +0300

tags 65144 notabug
thanks

> Date: Tue, 08 Aug 2023 10:50:49 +0100
> From:  Abdul-Lateef Haji-Ali via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> 
> Might be related to bug#17337.
> 
> I have an issue where saving gpg files hangs `emacs -Q` indefinitely.
> After some digging, I found out that it hangs in the while loop in
> `epg-wait-for-status`. The process buffer shows the output
> 
> [GNUPG:] KEY_CONSIDERED XXX 0
> 
> and nothing else is added and the process seems to not terminate.
> Decryption files in emacs works as expected as well as encrypting them when using gpg directly.
> 
> My GPG version is
> 
> > gpg2 --version
> gpg (GnuPG) 2.4.3

>From etc/PROBLEMS:

  *** Saving, via EasyPG, a file encrypted with GnuPG hangs

  This is known to happen with GnuPG v2.4.1.  The only known workaround
  is to downgrade to a version of GnuPG older than 2.4.1 (or, in the
  future, upgrade to a newer version which solves the problem, when such
  a fixed version becomes available).

IOW, this is not an Emacs bug, this is a misfeature in GnuPG 2.4.x,
hopefully to be fixed soon on their side.