From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.bugs Subject: bug#2412: spurious "Sign failed" errors Date: Sun, 03 May 2009 12:33:30 +0200 Message-ID: <87eiv6pjb9.fsf@turtle.gmx.de> References: <87fxg9xlxq.fsf@cyd.mit.edu> <87r5zsbf65.fsf@turtle.gmx.de> <87ab5uspv5.fsf@broken.deisui.org> Reply-To: Sven Joachim , 2412@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241348014 11685 80.91.229.12 (3 May 2009 10:53:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 May 2009 10:53:34 +0000 (UTC) Cc: Chong Yidong , 2412@emacsbugs.donarmstrong.com To: Daiki Ueno Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 03 12:53:25 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M0ZK1-0006R9-6X for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 May 2009 12:53:25 +0200 Original-Received: from localhost ([127.0.0.1]:36755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0ZJz-0004Fe-R0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 May 2009 06:53:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0ZIi-0003Ld-11 for bug-gnu-emacs@gnu.org; Sun, 03 May 2009 06:52:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0ZIc-0003Dq-7Q for bug-gnu-emacs@gnu.org; Sun, 03 May 2009 06:52:02 -0400 Original-Received: from [199.232.76.173] (port=56419 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0ZIb-0003DM-M8 for bug-gnu-emacs@gnu.org; Sun, 03 May 2009 06:51:57 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36658) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M0ZIb-0002dq-31 for bug-gnu-emacs@gnu.org; Sun, 03 May 2009 06:51:57 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n43ApqAF014477; Sun, 3 May 2009 03:51:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n43Ae8TL010623; Sun, 3 May 2009 03:40:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Sven Joachim Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 03 May 2009 10:40:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2412 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2412-submit@emacsbugs.donarmstrong.com id=B2412.12413468198935 (code B ref 2412); Sun, 03 May 2009 10:40:08 +0000 Original-Received: (at 2412) by emacsbugs.donarmstrong.com; 3 May 2009 10:33:39 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n43AXY2S008911 for <2412@emacsbugs.donarmstrong.com>; Sun, 3 May 2009 03:33:36 -0700 Original-Received: (qmail invoked by alias); 03 May 2009 10:33:28 -0000 Original-Received: from p5486780B.dip.t-dialin.net (EHLO turtle.gmx.de) [84.134.120.11] by mail.gmx.net (mp015) with SMTP; 03 May 2009 12:33:28 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1+8phNcN5G8Og0iBXN3K5SShupLzBGeJoQZYTOWQt xHbrBkapF37qvV Original-Received: by turtle.gmx.de (Postfix, from userid 1000) id A0E8E354AF; Sun, 3 May 2009 12:33:30 +0200 (CEST) In-Reply-To: <87ab5uspv5.fsf@broken.deisui.org> (Daiki Ueno's message of "Sun, 03 May 2009 14:43:42 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 03 May 2009 06:52:02 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27644 Archived-At: On 2009-05-03 07:43 +0200, Daiki Ueno wrote: > Sven Joachim writes: > >>>> could you please try (setq epg-debug t) and show me the contents of >>>> " *epg-debug*" buffer next time you see the error? > >> Looks innocent enough to me: > >> | [GNUPG:] SIG_CREATED D 17 2 01 1239906974 9AACBC0C69283380715D3788ECB679C787E9AABE >> | [GNUPG:] SIG_CREATED D 17 2 01 1239906984 9AACBC0C69283380715D3788ECB679C787E9AABE > > Thanks. It looks innocent for me too, but now I can suspect a timing > problem. Could you please try the patch attached below? > > > diff --git a/lisp/epg.el b/lisp/epg.el > index e96258f..3c80ef9 100644 > --- a/lisp/epg.el > +++ b/lisp/epg.el > @@ -1175,7 +1175,8 @@ This function is for internal use only." > (defun epg-wait-for-completion (context) > "Wait until the `epg-gpg-program' process completes." > (while (eq (process-status (epg-context-process context)) 'run) > - (accept-process-output (epg-context-process context) 1))) > + (accept-process-output (epg-context-process context) 1)) > + (sleep-for 0.1)) > > (defun epg-reset (context) > "Reset the CONTEXT." That seems to do the trick. At least, I had no problem in ~15 attempts to preview/send signed messages, whereas without your patch the "Sign failed" error would happen about every second time. Cheers, Sven