Pinentry seems to always hang for me, when invoked by keychain[1] in my
.bash_profile.
[1] http://agriffis.n01se.net/keychain/
Keychain seems to be invoking pinentry indirectly by doing:
gpg --no-options --use-agent --no-tty --sign --local-user "$k" -o- >/dev/null 2>&1
where $k is the name of my gpg key.
It seems to be hanging while doing a read. If I kill -9 the process (a regular
SIGTERM doesn't work), then a new pinentry starts, and this time it actually
displays the dialog.
I am using gnupg-2.0.14, pinentry-0.8.0, and keychain-2.6.8.
A full backtrace of the hanging process is attached.