Hi, this has been happening to me for a couple of days now. Restarting gpg-agent does not help. Sometimes it hangs when doing signing locally (DISPLAY is normal, running from terminal). Right now it's happening when I try to use gpg on a remote machine accessed via SSH. Happens with mutt, and also with dpkg-buildpackage. When I "strace -f" on gpg-agent, I can see some communication coming in, and... AND... nothing.
Here is a dump, although it's probably not going to help much (redacted, anonymized, where <anon tags set). [pid 30141] read(13, "HAVEKEY <anonkey>"..., 1002) = 49 [pid 30141] access("<anon>.key", R_OK) = 0 [pid 30141] write(13, "OK", 2) = 2 [pid 30141] write(13, "\n", 1) = 1 [pid 30141] read(13, "HAVEKEY <anonkey>"..., 1002) = 90 [pid 30141] access("<anon>.key", R_OK) = 0 [pid 30141] write(13, "OK", 2) = 2 [pid 30141] write(13, "\n", 1) = 1 [pid 30141] read(13, "KEYINFO <anonkey>"..., 1002) = 49 [pid 30141] open("<anon>.key", O_RDONLY) = 14 [pid 30141] read(14, "(21:protected-private-key(3:rsa("..., 8192) = 2071 [pid 30141] lseek(14, 0, SEEK_SET) = 0 [pid 30141] fstat(14, {st_mode=S_IFREG|0600, st_size=2071, ...}) = 0 [pid 30141] read(14, "(21:protected-private-key(3:rsa("..., 8192) = 2071 [pid 30141] close(14) = 0 [pid 30141] write(13, "S KEYINFO <anonkey2>"..., 66) = 66 [pid 30141] write(13, "\n", 1) = 1 [pid 30141] write(13, "OK", 2) = 2 [pid 30141] write(13, "\n", 1) = 1 [pid 30141] read(13, "RESET\n", 1002) = 6 [pid 30141] write(13, "OK", 2) = 2 [pid 30141] write(13, "\n", 1) = 1 [pid 30141] read(13, "SIGKEY <anonkey>C"..., 1002) = 48 [pid 30141] write(13, "OK", 2) = 2 [pid 30141] write(13, "\n", 1) = 1 [pid 30141] read(13, "SETKEYDESC Sie+ben\303\266tigen+eine+P"..., 1002) = 200 [pid 30141] write(13, "OK", 2) = 2 [pid 30141] write(13, "\n", 1) = 1 [pid 30141] read(13, "SETHASH 8 <anonhash3>"..., 1002) = 75 [pid 30141] write(13, "OK", 2) = 2 [pid 30141] write(13, "\n", 1) = 1 [pid 30141] read(13, "PKSIGN\n", 1002) = 7 [pid 30141] open("<anon>.key", O_RDONLY) = 14 [pid 30141] read(14, "(21:protected-private-key(3:rsa("..., 8192) = 2071 [pid 30141] lseek(14, 0, SEEK_SET) = 0 [pid 30141] fstat(14, {st_mode=S_IFREG|0600, st_size=2071, ...}) = 0 [pid 30141] read(14, "(21:protected-private-key(3:rsa("..., 8192) = 2071 [pid 30141] close(14) = 0 [pid 30141] futex(0x55a27f3e9c60, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 2, {1477958452, 887754506}, ffffffff <unfinished ...> [pid 22394] <... pselect6 resumed> ) = 0 (Timeout) [pid 22394] pselect6(8, [3 4 5 6 7], NULL, NULL, {2, 1302}, {[], 8}) = 0 (Timeout) [pid 22394] pselect6(8, [3 4 5 6 7], NULL, NULL, {2, 1536}, {[], 8}^Cstrace: Process 22394 detached Regards, Eduard.