#850946 gpg-agent: does not terminate pinentry on Ctrl-C (SIGINT)

Package:
gpg-agent
Source:
gnupg2
Description:
GNU privacy guard - cryptographic agent
Submitter:
Vincent Lefevre
Date:
2021-05-02 17:00:02 UTC
Severity:
important
Tags:
#850946#5
Date:
2017-01-11 14:05:50 UTC
From:
To:
When I use

pinentry-program /usr/bin/pinentry-curses

in ~/.gnupg/gpg-agent.conf and I do:

$ gpg -d file.gpg

I get:

            ┌──────────────────────────────────────────────────────┐
            │ Enter passphrase                                     │
            │                                                      │
            │                                                      │
            │ Passphrase: ________________________________________ │
            │                                                      │
            │       <OK>                              <Cancel>     │
            └──────────────────────────────────────────────────────┘

Then if I type Ctrl-C, I get back to the shell, but pinentry-curses
is still running and grab keys, making the terminal and the shell
unusable: some keys go to the shell (I've tried with both bash and
zsh), other keys go to pinentry-curses, randomly. If I quit the
terminal, then pinentry-curses takes 100% CPU time until I manually
kill it.

#850946#16
Date:
2019-12-05 18:05:45 UTC
From:
To:
Control: reassign -1 gpg-agent 2.2.17-3
Control: retitle -1 gpg-agent: does not terminate pinentry on Ctrl-C (SIGINT)

According to the upstream bug, the issue is in gpg-agent (and fixed
there upstream, not yet in Debian). Thus reassigning the bug.

#850946#31
Date:
2021-05-02 16:57:47 UTC
From:
To:
The bug is still there.

Fixed upstream in 2019, but unfortunately, only for GnuPG 2.3.