Essentially duplicating the bug found [on GitHub](https://github.com/Homebrew/homebrew-
versions/issues/1255), but it seems that gpg-agent is crashing with a failed assertion,
causing signing to fail.
For me to reproduce:
$ killall gpg-agent && gpg-agent --debug 1024 --debug-pinentry --daemon /bin/sh
Then in another window:
$ gpg2 --sign gpg: using "KEY" as default secret key for signing hello world gpg: signing failed: End of file £õ¿¿¡e?ûL73ûóëöììØPû_îìgpg: signing failed: End of file
The log output can be found [in this gist]
(https://gist.github.com/gfontenot/5a57cec77088bd51dae4fb32f86b514e). Of note to me was
the ending line:
Assertion failed: (stream->flags.writing), function es_flush, file estream.c, line 1873.
Note that the pinentry was displayed and completed, _then_ gpg-agent crashed.
You can see the configurations I have set up for gnupg 2.0 [in my dotfiles]
(https://github.com/gfontenot/dotfiles/tree/master/tag-pgp). I'm removing the gpg-agent
startup specific stuff for 2.1, but the rest is relatively unchanged (and generally
uninteresting).
Unfortunately, I need to go back to gnupg 2.0 in order to be able to continue to
work/send email, but I'll try to answer questions if I can.