Daiki Ueno writes: >>> Gnus v5.13 >>> GNU Emacs 23.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.2) >>> I get this error sometimes, whenever I try to send any GPG-signed mail. >>> >>> Debugger entered--Lisp error: (error "Sign failed") >>> signal(error ("Sign failed")) >>> I've masked the mail message and binary byte code in above >>> stacktrace. As soon as I press C-c C-c, I'm prompted for my GPG key's >>> password and then mail gets sent, and I get this error. If I press C-c >>> C-c again in that mail buffer I get this message 'mail already sent.'. >>> >>> I originally noticed this issue in Emacs 23.0.50.x but before I'm able >>> to report in later versions it went away. And now since few days, it >>> started to show up again. > I remember I addressed this issue before: > http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2412 > Can you provide debugging information with epg-debug? Following are the contents of " *epg-debug*" buffer: #v+ /usr/bin/gpg2 --no-tty --status-fd 1 --yes --use-agent --command-fd 0 --armor --textmode --output /tmp/epg-output7286dfh --detach-sign [GNUPG:] USERID_HINT 1F2F8410762E5E74 Ashish Shukla (आशीष शुक्ल) [GNUPG:] NEED_PASSPHRASE 1F2F8410762E5E74 1F2F8410762E5E74 17 0 [GNUPG:] GOOD_PASSPHRASE [GNUPG:] BEGIN_SIGNING H2 [GNUPG:] SIG_CREATED D 17 2 01 1248014954 1E00467977E4F8EE2E4B56F21F2F8410762E5E74 /usr/bin/gpg2 --no-tty --status-fd 1 --yes --use-agent --command-fd 0 --armor --textmode --output /tmp/epg-output7286qpn --detach-sign [GNUPG:] USERID_HINT 1F2F8410762E5E74 Ashish Shukla (आशीष शुक्ल) [GNUPG:] NEED_PASSPHRASE 1F2F8410762E5E74 1F2F8410762E5E74 17 0 [GNUPG:] GOOD_PASSPHRASE [GNUPG:] BEGIN_SIGNING H2 [GNUPG:] SIG_CREATED D 17 2 01 1248014954 1E00467977E4F8EE2E4B56F21F2F8410762E5E74 /usr/bin/gpg2 --no-tty --status-fd 1 --yes --use-agent --command-fd 0 --armor --textmode --output /tmp/epg-output72863zt --detach-sign [GNUPG:] USERID_HINT 1F2F8410762E5E74 Ashish Shukla (आशीष शुक्ल) [GNUPG:] NEED_PASSPHRASE 1F2F8410762E5E74 1F2F8410762E5E74 17 0 [GNUPG:] GOOD_PASSPHRASE [GNUPG:] BEGIN_SIGNING H2 [GNUPG:] SIG_CREATED D 17 2 01 1248015009 1E00467977E4F8EE2E4B56F21F2F8410762E5E74 /usr/bin/gpg2 --no-tty --status-fd 1 --yes --use-agent --command-fd 0 --armor --textmode --output /tmp/epg-output7286E-z --detach-sign [GNUPG:] USERID_HINT 1F2F8410762E5E74 Ashish Shukla (आशीष शुक्ल) [GNUPG:] NEED_PASSPHRASE 1F2F8410762E5E74 1F2F8410762E5E74 17 0 [GNUPG:] GOOD_PASSPHRASE [GNUPG:] BEGIN_SIGNING H2 [GNUPG:] SIG_CREATED D 17 2 01 1248015009 1E00467977E4F8EE2E4B56F21F2F8410762E5E74 /usr/bin/gpg2 --no-tty --status-fd 1 --yes --use-agent --command-fd 0 --armor --textmode --output /tmp/epg-output72862HD --detach-sign [GNUPG:] USERID_HINT 1F2F8410762E5E74 Ashish Shukla (आशीष शुक्ल) [GNUPG:] NEED_PASSPHRASE 1F2F8410762E5E74 1F2F8410762E5E74 17 0 [GNUPG:] GOOD_PASSPHRASE [GNUPG:] BEGIN_SIGNING H2 [GNUPG:] SIG_CREATED D 17 2 01 1248015010 1E00467977E4F8EE2E4B56F21F2F8410762E5E74 #v- And I've recieved the similar error in the last mail I sent. > Regards, > -- > Daiki Ueno Thanks for looking into this matter. I remember having filing a similar bug with 23.0.60.x release but have recieved no replies. BtW, I'm using gpg2 (GnuPG 2.0.12) for gpg. Thanks -- Ashish SHUKLA