From unknown Sun Jun 15 08:42:59 2025 X-Loop: don@donarmstrong.com Subject: bug#465: pgg-gpg.el - pgg-gpg-process-region timing problem Reply-To: "ken manheimer" , 465@debbugs.gnu.org Resent-From: "ken manheimer" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 22 Jun 2008 17:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 465 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121415624625255 (code B ref -1); Sun, 22 Jun 2008 17:45:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Jun 2008 17:37:26 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5MHbHNR025248 for ; Sun, 22 Jun 2008 10:37:18 -0700 Received: from mx10.gnu.org ([199.232.76.166]:45110) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KATV2-0004Pr-PB for emacs-pretest-bug@gnu.org; Sun, 22 Jun 2008 13:37:12 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KATV4-0006Od-BR for emacs-pretest-bug@gnu.org; Sun, 22 Jun 2008 13:37:16 -0400 Received: from py-out-1112.google.com ([64.233.166.179]:26199) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KATV4-0006Nr-0S for emacs-pretest-bug@gnu.org; Sun, 22 Jun 2008 13:37:14 -0400 Received: by py-out-1112.google.com with SMTP id p76so784159pyb.1 for ; Sun, 22 Jun 2008 10:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=ajiJriZKShHP8Lw8W4ZtgtxYUpANW1oMNrWt/RJS9QM=; b=w4rTvDeRrT7V+ZOjy+4uQFrx9SgwYnzXlVCunOTH0Nb/LRKFrcyKF8PZVnGRSYGDGd RHapCpYdkGJSOSUVR8zNPjwLebhHGkyGeFfWx8h2OoydxPtsAKWhnAnSiUXDp6H3XkBD z1J5C392zAL2X47YxUdrCtjPQUXAHhJtNypGY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=WyheP+zr83aTce30yJ4psH11iGtikwY0/yPlA+PkHupg3PZZTsiar1CnaNMUnglkVR xMUiHxnUhmfMqjaHiveXqUFKDUZzCnDZwGqzdDiwL0hbEVQWRAAGRx4tNFZVg8CwEzUa qFrZ/7HT7dwPLWKomBMFrs8mU208bLbxZ5urE= Received: by 10.141.164.13 with SMTP id r13mr11241814rvo.53.1214156231739; Sun, 22 Jun 2008 10:37:11 -0700 (PDT) Received: by 10.114.201.14 with HTTP; Sun, 22 Jun 2008 10:37:11 -0700 (PDT) Message-ID: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> Date: Sun, 22 Jun 2008 13:37:11 -0400 From: "ken manheimer" To: emacs-devel , emacs-pretest-bug@gnu.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13397_3728181.1214156231734" X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) ------=_Part_13397_3728181.1214156231734 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline allout encryption, which depends on pgg.el &c, has been failing due to a weird timing problem i've narrowed down to the pgg-gpg-process-region function. this is in emacs 23.0.60 built from a CVS HEAD checkout of an hour or so ago, and some earlier 23.0.60 versions. i've reproduced the problem using emacs -q and regularly launched emacs, etc. the problem is that pgg-gpg-process-region often returns a nil status despite successful decryption, unless a delay (eg, (sleep-for .3) is inserted between process start and later interaction with the process. with the delay, the status is something like 207 or 208, while without it the status is nil - yet, on examination the content is sucessfully decrypted. the size of the delay needs to be increased when the machine is heavily loaded, and can be reduced (on my thinkpad t43 2 GHz laptop, 3Gb ram, running kubuntu 8.0.4 +) to no lower than (sleep-for .2). rarely, the proper status is returned without the delay, depending on the machine load and other things i can't identify. considering the real-time sensitivity of the problem, your mileage will almost certainly vary! i originally thought the problem might be in gpg, but now figure it resides either in the emacs process mechanism, pgg's use of that, or somewhere in the combination of emacs and pgg. i've created a simple .el script, pggprob.el, with minimal code and data to produce the problem, and a patch, pggprob-patch.txt, with a single-line modification to pgg-gpg-process-region to work around the problem. both are attached. since the workaround is merely a timing delay, it's clearly not a fix! i'm hoping this is enough to enable others to reproduce the problem, and investigate... -- ken http://myriadicity.net If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /home/klm/src/emacs-HEAD/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-06-22 on twist Windowing system distributor `The X.Org Foundation', version 11.0.10400090 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f l i b / e m a a l l s c r p g g p M-x e v a l - c u r M-. C-g M-> C-x C-e M-x e m a c s r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Source file `/home/klm/src/emacs-HEAD/lisp/pgg-gpg.el' newer than byte-compiled file Quit Mark set nil ------=_Part_13397_3728181.1214156231734 Content-Type: application/octet-stream; name=pggprob.el Content-Transfer-Encoding: base64 X-Attachment-Id: f_fhrwgxd60 Content-Disposition: attachment; filename=pggprob.el OzsgZGVtb25zdHJhdGUgdGltaW5nIHByb2JsZW0gaW4gcGdnLWdwZy1wcm9jZXNzLXJlZ2lvbgoK KHNldHEgcGFzc3BocmFzZSAiYSIKICAgICAgdmVyaWZpZXIgIi0tLS0tQkVHSU4gUEdQIE1FU1NB R0UtLS0tLQpWZXJzaW9uOiBHbnVQRyB2MS40LjYgKEdOVS9MaW51eCkKCmpBMEVBd01DbzcyZk5H QjFyTnhneVN2K3J4ZGtQdjQ2blZ4UTVmZzR5VDc4bGRnVmNEc2VEN01yZTRGaGppZm4KVlRBMS9Q ZG1ldFZmRmI5Kwo9TVhGNgotLS0tLUVORCBQR1AgTUVTU0FHRS0tLS0tIgogICAgICBjb3VudCAw KQoKKGRlZnVuIGRlY3J5cHQgKHBhc3NwaHJhc2UgdGV4dCkKICAod2l0aC1jdXJyZW50LWJ1ZmZl ciAoZ2V0LWJ1ZmZlci1jcmVhdGUgIipwZ2ctdGVzdCoiKQogICAgKGVyYXNlLWJ1ZmZlcikKICAg IChpbnNlcnQgdGV4dCkKICAgIChwZ2ctZGVjcnlwdCBuaWwgbmlsIHBhc3NwaHJhc2UpKSkKCjs7 IHRoZSBmb2xsb3dpbmcgeWllbGRzIG5pbCB3L291dCB0aGUgcGF0Y2hlZCBkZWxheSwgMjA4IHdp dGggaXQuCjs7IGV4YW1pbmF0aW9uIG9mIHRoZSBhY3R1YWwgcmVzdWx0cyBidWZmZXIgc2hvd3Mg dGhhdCB0aGUgdmVyaWZpZXIgaXMKOzsgc3VjY2Vzc2Z1bGx5IGRlY3J5cHRlZCBpbiBib3RoIGNh c2VzLCBob3dldmVyLgooZGVjcnlwdCBwYXNzcGhyYXNlIHZlcmlmaWVyKQo= ------=_Part_13397_3728181.1214156231734 Content-Type: text/plain; name=pgg-patch.txt Content-Transfer-Encoding: base64 X-Attachment-Id: f_fhrwusef2 Content-Disposition: attachment; filename=pgg-patch.txt LS0tIHBnZy1ncGcuZWwufjEuMjcufgkyMDA4LTA1LTA2IDAzOjU3OjQ2LjAwMDAwMDAwMCAtMDQw MAorKysgcGdnLWdwZy5lbAkyMDA4LTA2LTIyIDEzOjI0OjE0LjAwMDAwMDAwMCAtMDQwMApAQCAt ODYsNiArODYsNyBAQAogCSAgICAoc2V0cSBwcm9jZXNzCiAJCSAgKGFwcGx5ICMnc3RhcnQtcHJv Y2VzcyAiKkdudVBHKiIgZXJyb3JzLWJ1ZmZlcgogCQkJIHByb2dyYW0gYXJncykpKQorICAgICAg ICAgIChzbGVlcC1mb3IgLjMpICAgICAgICAgICAgICAgIDsga2xtOiB0aW1pbmcgZGVsYXkKIAkg IChzZXQtcHJvY2Vzcy1zZW50aW5lbCBwcm9jZXNzICMnaWdub3JlKQogCSAgKHdoZW4gcGFzc3Bo cmFzZQogCSAgICAoc2V0cSBwYXNzcGhyYXNlLXdpdGgtbmV3bGluZSAoY29uY2F0IHBhc3NwaHJh c2UgIlxuIikpCg== ------=_Part_13397_3728181.1214156231734-- From unknown Sun Jun 15 08:42:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "ken manheimer" Subject: bug#465 closed by Chong Yidong (Re: pgg-gpg.el - pgg-gpg-process-region timing problem) Message-ID: References: <873aln2q1d.fsf@stupidchicken.com> <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> X-Emacs-PR-Message: they-closed 465 X-Emacs-PR-Package: emacs Reply-To: 465@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217704505-31730-1" This is a multi-part message in MIME format... ------------=_1217704505-31730-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #465: pgg-gpg.el - pgg-gpg-process-region timing problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D465 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217704505-31730-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Aug 2 12:08:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 465-done) by emacsbugs.donarmstrong.com; 2 Aug 2008 19:08:23 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72J8K08030048 for <465-done@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 12:08:21 -0700 Received: by cyd (Postfix, from userid 1000) id C100F57E337; Sat, 2 Aug 2008 15:08:30 -0400 (EDT) From: Chong Yidong To: 465-done@debbugs.gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 15:08:30 -0400 Message-ID: <873aln2q1d.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix for this (verified by Ken Manheimer via private email). This fix is in pgg-gpg.el, which I think was calling accept-process-output in a slightly incorrect way. ------------=_1217704505-31730-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From ken.manheimer@gmail.com Sun Jun 22 10:37:26 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Jun 2008 17:37:26 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5MHbHNR025248 for ; Sun, 22 Jun 2008 10:37:18 -0700 Received: from mx10.gnu.org ([199.232.76.166]:45110) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KATV2-0004Pr-PB for emacs-pretest-bug@gnu.org; Sun, 22 Jun 2008 13:37:12 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KATV4-0006Od-BR for emacs-pretest-bug@gnu.org; Sun, 22 Jun 2008 13:37:16 -0400 Received: from py-out-1112.google.com ([64.233.166.179]:26199) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KATV4-0006Nr-0S for emacs-pretest-bug@gnu.org; Sun, 22 Jun 2008 13:37:14 -0400 Received: by py-out-1112.google.com with SMTP id p76so784159pyb.1 for ; Sun, 22 Jun 2008 10:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=ajiJriZKShHP8Lw8W4ZtgtxYUpANW1oMNrWt/RJS9QM=; b=w4rTvDeRrT7V+ZOjy+4uQFrx9SgwYnzXlVCunOTH0Nb/LRKFrcyKF8PZVnGRSYGDGd RHapCpYdkGJSOSUVR8zNPjwLebhHGkyGeFfWx8h2OoydxPtsAKWhnAnSiUXDp6H3XkBD z1J5C392zAL2X47YxUdrCtjPQUXAHhJtNypGY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=WyheP+zr83aTce30yJ4psH11iGtikwY0/yPlA+PkHupg3PZZTsiar1CnaNMUnglkVR xMUiHxnUhmfMqjaHiveXqUFKDUZzCnDZwGqzdDiwL0hbEVQWRAAGRx4tNFZVg8CwEzUa qFrZ/7HT7dwPLWKomBMFrs8mU208bLbxZ5urE= Received: by 10.141.164.13 with SMTP id r13mr11241814rvo.53.1214156231739; Sun, 22 Jun 2008 10:37:11 -0700 (PDT) Received: by 10.114.201.14 with HTTP; Sun, 22 Jun 2008 10:37:11 -0700 (PDT) Message-ID: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> Date: Sun, 22 Jun 2008 13:37:11 -0400 From: "ken manheimer" To: emacs-devel , emacs-pretest-bug@gnu.org Subject: pgg-gpg.el - pgg-gpg-process-region timing problem MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13397_3728181.1214156231734" X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) ------=_Part_13397_3728181.1214156231734 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline allout encryption, which depends on pgg.el &c, has been failing due to a weird timing problem i've narrowed down to the pgg-gpg-process-region function. this is in emacs 23.0.60 built from a CVS HEAD checkout of an hour or so ago, and some earlier 23.0.60 versions. i've reproduced the problem using emacs -q and regularly launched emacs, etc. the problem is that pgg-gpg-process-region often returns a nil status despite successful decryption, unless a delay (eg, (sleep-for .3) is inserted between process start and later interaction with the process. with the delay, the status is something like 207 or 208, while without it the status is nil - yet, on examination the content is sucessfully decrypted. the size of the delay needs to be increased when the machine is heavily loaded, and can be reduced (on my thinkpad t43 2 GHz laptop, 3Gb ram, running kubuntu 8.0.4 +) to no lower than (sleep-for .2). rarely, the proper status is returned without the delay, depending on the machine load and other things i can't identify. considering the real-time sensitivity of the problem, your mileage will almost certainly vary! i originally thought the problem might be in gpg, but now figure it resides either in the emacs process mechanism, pgg's use of that, or somewhere in the combination of emacs and pgg. i've created a simple .el script, pggprob.el, with minimal code and data to produce the problem, and a patch, pggprob-patch.txt, with a single-line modification to pgg-gpg-process-region to work around the problem. both are attached. since the workaround is merely a timing delay, it's clearly not a fix! i'm hoping this is enough to enable others to reproduce the problem, and investigate... -- ken http://myriadicity.net If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /home/klm/src/emacs-HEAD/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-06-22 on twist Windowing system distributor `The X.Org Foundation', version 11.0.10400090 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f l i b / e m a a l l s c r p g g p M-x e v a l - c u r M-. C-g M-> C-x C-e M-x e m a c s r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Source file `/home/klm/src/emacs-HEAD/lisp/pgg-gpg.el' newer than byte-compiled file Quit Mark set nil ------=_Part_13397_3728181.1214156231734 Content-Type: application/octet-stream; name=pggprob.el Content-Transfer-Encoding: base64 X-Attachment-Id: f_fhrwgxd60 Content-Disposition: attachment; filename=pggprob.el OzsgZGVtb25zdHJhdGUgdGltaW5nIHByb2JsZW0gaW4gcGdnLWdwZy1wcm9jZXNzLXJlZ2lvbgoK KHNldHEgcGFzc3BocmFzZSAiYSIKICAgICAgdmVyaWZpZXIgIi0tLS0tQkVHSU4gUEdQIE1FU1NB R0UtLS0tLQpWZXJzaW9uOiBHbnVQRyB2MS40LjYgKEdOVS9MaW51eCkKCmpBMEVBd01DbzcyZk5H QjFyTnhneVN2K3J4ZGtQdjQ2blZ4UTVmZzR5VDc4bGRnVmNEc2VEN01yZTRGaGppZm4KVlRBMS9Q ZG1ldFZmRmI5Kwo9TVhGNgotLS0tLUVORCBQR1AgTUVTU0FHRS0tLS0tIgogICAgICBjb3VudCAw KQoKKGRlZnVuIGRlY3J5cHQgKHBhc3NwaHJhc2UgdGV4dCkKICAod2l0aC1jdXJyZW50LWJ1ZmZl ciAoZ2V0LWJ1ZmZlci1jcmVhdGUgIipwZ2ctdGVzdCoiKQogICAgKGVyYXNlLWJ1ZmZlcikKICAg IChpbnNlcnQgdGV4dCkKICAgIChwZ2ctZGVjcnlwdCBuaWwgbmlsIHBhc3NwaHJhc2UpKSkKCjs7 IHRoZSBmb2xsb3dpbmcgeWllbGRzIG5pbCB3L291dCB0aGUgcGF0Y2hlZCBkZWxheSwgMjA4IHdp dGggaXQuCjs7IGV4YW1pbmF0aW9uIG9mIHRoZSBhY3R1YWwgcmVzdWx0cyBidWZmZXIgc2hvd3Mg dGhhdCB0aGUgdmVyaWZpZXIgaXMKOzsgc3VjY2Vzc2Z1bGx5IGRlY3J5cHRlZCBpbiBib3RoIGNh c2VzLCBob3dldmVyLgooZGVjcnlwdCBwYXNzcGhyYXNlIHZlcmlmaWVyKQo= ------=_Part_13397_3728181.1214156231734 Content-Type: text/plain; name=pgg-patch.txt Content-Transfer-Encoding: base64 X-Attachment-Id: f_fhrwusef2 Content-Disposition: attachment; filename=pgg-patch.txt LS0tIHBnZy1ncGcuZWwufjEuMjcufgkyMDA4LTA1LTA2IDAzOjU3OjQ2LjAwMDAwMDAwMCAtMDQw MAorKysgcGdnLWdwZy5lbAkyMDA4LTA2LTIyIDEzOjI0OjE0LjAwMDAwMDAwMCAtMDQwMApAQCAt ODYsNiArODYsNyBAQAogCSAgICAoc2V0cSBwcm9jZXNzCiAJCSAgKGFwcGx5ICMnc3RhcnQtcHJv Y2VzcyAiKkdudVBHKiIgZXJyb3JzLWJ1ZmZlcgogCQkJIHByb2dyYW0gYXJncykpKQorICAgICAg ICAgIChzbGVlcC1mb3IgLjMpICAgICAgICAgICAgICAgIDsga2xtOiB0aW1pbmcgZGVsYXkKIAkg IChzZXQtcHJvY2Vzcy1zZW50aW5lbCBwcm9jZXNzICMnaWdub3JlKQogCSAgKHdoZW4gcGFzc3Bo cmFzZQogCSAgICAoc2V0cSBwYXNzcGhyYXNlLXdpdGgtbmV3bGluZSAoY29uY2F0IHBhc3NwaHJh c2UgIlxuIikpCg== ------=_Part_13397_3728181.1214156231734-- ------------=_1217704505-31730-1-- From unknown Sun Jun 15 08:42:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Thien-Thi Nguyen Subject: bug#469 closed by Chong Yidong (Re: pgg-gpg.el - pgg-gpg-process-region timing problem) Message-ID: References: <873aln2q1d.fsf@stupidchicken.com> <87r6ao8rty.fsf@ambire.localdomain> X-Emacs-PR-Message: they-closed 469 X-Emacs-PR-Package: emacs Reply-To: 469@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217704506-31730-3" This is a multi-part message in MIME format... ------------=_1217704506-31730-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #465: pgg-gpg.el - pgg-gpg-process-region timing problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D465 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217704506-31730-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Aug 2 12:08:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 465-done) by emacsbugs.donarmstrong.com; 2 Aug 2008 19:08:23 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72J8K08030048 for <465-done@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 12:08:21 -0700 Received: by cyd (Postfix, from userid 1000) id C100F57E337; Sat, 2 Aug 2008 15:08:30 -0400 (EDT) From: Chong Yidong To: 465-done@debbugs.gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 15:08:30 -0400 Message-ID: <873aln2q1d.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix for this (verified by Ken Manheimer via private email). This fix is in pgg-gpg.el, which I think was calling accept-process-output in a slightly incorrect way. ------------=_1217704506-31730-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From ttn@gnuvola.org Mon Jun 23 01:46:06 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=BAYES_00,GMAIL, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jun 2008 08:46:07 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5N8k220021867 for ; Mon, 23 Jun 2008 01:46:04 -0700 Received: from mail.gnu.org ([199.232.76.166]:40256 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KAhgT-0000Lz-JU for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 04:45:57 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KAhgT-0004zt-ND for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 04:46:00 -0400 Received: from [151.61.141.75] (port=33978 helo=ambire.localdomain) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KAhgS-0004yL-Hy; Mon, 23 Jun 2008 04:45:57 -0400 Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1KAhdh-0001aU-4g; Mon, 23 Jun 2008 10:43:05 +0200 From: Thien-Thi Nguyen To: "ken manheimer" Cc: wilde@sha-bang.de, emacs-pretest-bug@gnu.org, ueno@unixuser.org, emacs-devel Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem References: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> <87zlpc8t00.fsf@ambire.localdomain> Date: Mon, 23 Jun 2008 10:43:05 +0200 In-Reply-To: <87zlpc8t00.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Mon, 23 Jun 2008 10:17:51 +0200") Message-ID: <87r6ao8rty.fsf@ambire.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-Greylist: delayed 1512 seconds by postgrey-1.27 at monty-python; Mon, 23 Jun 2008 04:45:54 EDT ChangeLog entry: Use process sentinel to monitor gpg subprocess status. * pgg-gpg.el (pgg-gpg-process-region): Fix omission bug: Use process sentinel to update process status and exit-status. Reported by ken manheimer . patch: *** pgg-gpg.el 6 May 2008 07:57:46 -0000 1.27 --- pgg-gpg.el 23 Jun 2008 08:40:50 -0000 *************** *** 70,111 **** ,@pgg-gpg-extra-args ,@args)) (output-buffer pgg-output-buffer) (errors-buffer pgg-errors-buffer) ! (orig-mode (default-file-modes)) ! (process-connection-type nil) ! (inhibit-redisplay t) ! process status exit-status ! passphrase-with-newline ! encoded-passphrase-with-new-line) (with-current-buffer (get-buffer-create errors-buffer) (buffer-disable-undo) (erase-buffer)) (unwind-protect ! (progn (set-default-file-modes 448) ! (let ((coding-system-for-write 'binary)) ! (setq process ! (apply #'start-process "*GnuPG*" errors-buffer ! program args))) ! (set-process-sentinel process #'ignore) (when passphrase ! (setq passphrase-with-newline (concat passphrase "\n")) ! (if pgg-passphrase-coding-system ! (progn ! (setq encoded-passphrase-with-new-line (encode-coding-string ! passphrase-with-newline ! (coding-system-change-eol-conversion ! pgg-passphrase-coding-system 'unix))) ! (pgg-clear-string passphrase-with-newline)) ! (setq encoded-passphrase-with-new-line passphrase-with-newline ! passphrase-with-newline nil)) ! (process-send-string process encoded-passphrase-with-new-line)) (process-send-region process start end) (process-send-eof process) ! (while (eq 'run (process-status process)) (accept-process-output process 5)) - (setq status (process-status process) - exit-status (process-exit-status process)) (delete-process process) (with-current-buffer (get-buffer-create output-buffer) (buffer-disable-undo) --- 70,104 ---- ,@pgg-gpg-extra-args ,@args)) (output-buffer pgg-output-buffer) (errors-buffer pgg-errors-buffer) ! (inhibit-redisplay t)) (with-current-buffer (get-buffer-create errors-buffer) (buffer-disable-undo) (erase-buffer)) (unwind-protect ! (let* ((coding-system-for-write 'binary) ! (process (let ((orig (default-file-modes))) (set-default-file-modes 448) ! (prog1 (apply #'start-process "*GnuPG*" ! errors-buffer program args) ! (set-default-file-modes orig)))) ! (status (process-status process)) ! exit-status) ! (set-process-sentinel ! process (lambda (process reason) ! (setq status (process-status process) ! exit-status (process-exit-status process)))) (when passphrase ! (process-send-string ! process (if pgg-passphrase-coding-system (encode-coding-string ! passphrase ! pgg-passphrase-coding-system) ! passphrase)) ! (process-send-string process "\n")) (process-send-region process start end) (process-send-eof process) ! (while (eq 'run status) (accept-process-output process 5)) (delete-process process) (with-current-buffer (get-buffer-create output-buffer) (buffer-disable-undo) *************** *** 120,134 **** (error "%s exited abnormally: '%s'" program exit-status)) (if (= 127 exit-status) (error "%s could not be found" program)))) - (if passphrase-with-newline - (pgg-clear-string passphrase-with-newline)) - (if encoded-passphrase-with-new-line - (pgg-clear-string encoded-passphrase-with-new-line)) - (if (and process (eq 'run (process-status process))) - (interrupt-process process)) (if (file-exists-p output-file-name) ! (delete-file output-file-name)) ! (set-default-file-modes orig-mode)))) (defun pgg-gpg-possibly-cache-passphrase (passphrase &optional key notruncate) (if (and passphrase --- 113,120 ---- (error "%s exited abnormally: '%s'" program exit-status)) (if (= 127 exit-status) (error "%s could not be found" program)))) (if (file-exists-p output-file-name) ! (delete-file output-file-name))))) (defun pgg-gpg-possibly-cache-passphrase (passphrase &optional key notruncate) (if (and passphrase ------------=_1217704506-31730-3-- From unknown Sun Jun 15 08:42:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Thien-Thi Nguyen Subject: bug#470 closed by Chong Yidong (Re: pgg-gpg.el - pgg-gpg-process-region timing problem) Message-ID: References: <873aln2q1d.fsf@stupidchicken.com> <87zlpc8t00.fsf@ambire.localdomain> X-Emacs-PR-Message: they-closed 470 X-Emacs-PR-Package: emacs Reply-To: 470@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217704507-31730-5" This is a multi-part message in MIME format... ------------=_1217704507-31730-5 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #465: pgg-gpg.el - pgg-gpg-process-region timing problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D465 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217704507-31730-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Aug 2 12:08:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 465-done) by emacsbugs.donarmstrong.com; 2 Aug 2008 19:08:23 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72J8K08030048 for <465-done@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 12:08:21 -0700 Received: by cyd (Postfix, from userid 1000) id C100F57E337; Sat, 2 Aug 2008 15:08:30 -0400 (EDT) From: Chong Yidong To: 465-done@debbugs.gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 15:08:30 -0400 Message-ID: <873aln2q1d.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix for this (verified by Ken Manheimer via private email). This fix is in pgg-gpg.el, which I think was calling accept-process-output in a slightly incorrect way. ------------=_1217704507-31730-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From ttn@gnuvola.org Mon Jun 23 01:46:46 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=BAYES_00,GMAIL, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jun 2008 08:46:46 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5N8kh2h021874 for ; Mon, 23 Jun 2008 01:46:45 -0700 Received: from mail.gnu.org ([199.232.76.166]:40443 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KAhh8-0001RB-JS for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 04:46:38 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KAhhA-0005Jf-1r for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 04:46:43 -0400 Received: from [151.61.141.75] (port=60991 helo=ambire.localdomain) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KAhh8-0005IN-T3 for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 04:46:39 -0400 Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1KAhFH-0001Za-22; Mon, 23 Jun 2008 10:17:51 +0200 From: Thien-Thi Nguyen To: "ken manheimer" Cc: ueno@unixuser.org, wilde@sha-bang.de Cc: emacs-devel , emacs-pretest-bug@gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem References: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> Date: Mon, 23 Jun 2008 10:17:51 +0200 In-Reply-To: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> (ken manheimer's message of "Sun, 22 Jun 2008 13:37:11 -0400") Message-ID: <87zlpc8t00.fsf@ambire.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. () "ken manheimer" () Sun, 22 Jun 2008 13:37:11 -0400 pggprob-patch.txt, with a single-line modification to pgg-gpg-process-region to work around the problem. both are attached. since the workaround is merely a timing delay, it's clearly not a fix! Please find below an UNTESTED patch that addresses the problem in two ways: - use a downward funarg sentinel for complete monitoring - reduce unnecessary data motion Does it give good results? (Authors added to cc.) thi ------------=_1217704507-31730-5-- From unknown Sun Jun 15 08:42:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Thien-Thi Nguyen Subject: bug#471 closed by Chong Yidong (Re: pgg-gpg.el - pgg-gpg-process-region timing problem) Message-ID: References: <873aln2q1d.fsf@stupidchicken.com> <873an4b898.fsf@ambire.localdomain> X-Emacs-PR-Message: they-closed 471 X-Emacs-PR-Package: emacs Reply-To: 471@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217704507-31730-7" This is a multi-part message in MIME format... ------------=_1217704507-31730-7 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #465: pgg-gpg.el - pgg-gpg-process-region timing problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D465 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217704507-31730-7 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Aug 2 12:08:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 465-done) by emacsbugs.donarmstrong.com; 2 Aug 2008 19:08:23 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72J8K08030048 for <465-done@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 12:08:21 -0700 Received: by cyd (Postfix, from userid 1000) id C100F57E337; Sat, 2 Aug 2008 15:08:30 -0400 (EDT) From: Chong Yidong To: 465-done@debbugs.gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 15:08:30 -0400 Message-ID: <873aln2q1d.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix for this (verified by Ken Manheimer via private email). This fix is in pgg-gpg.el, which I think was calling accept-process-output in a slightly incorrect way. ------------=_1217704507-31730-7 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From ttn@gnuvola.org Mon Jun 23 06:20:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jun 2008 13:20:48 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5NDKfZQ025252 for ; Mon, 23 Jun 2008 06:20:42 -0700 Received: from mx10.gnu.org ([199.232.76.166]:50368) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KAlyD-0002sf-S0 for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 09:20:34 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KAlyF-00055G-0v for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 09:20:38 -0400 Received: from [151.61.141.75] (port=46002 helo=ambire.localdomain) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KAlyD-00052G-Mb; Mon, 23 Jun 2008 09:20:34 -0400 Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1KAlvP-00024h-GV; Mon, 23 Jun 2008 15:17:39 +0200 From: Thien-Thi Nguyen To: "ken manheimer" Cc: wilde@sha-bang.de, emacs-pretest-bug@gnu.org, ueno@unixuser.org, emacs-devel Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem References: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> <87zlpc8t00.fsf@ambire.localdomain> <87r6ao8rty.fsf@ambire.localdomain> Date: Mon, 23 Jun 2008 15:17:39 +0200 In-Reply-To: <87r6ao8rty.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Mon, 23 Jun 2008 10:43:05 +0200") Message-ID: <873an4b898.fsf@ambire.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Delving into this, i got a little carried away... full func below. This adds GOOD_PASSPHRASE checking (necessary for GNUPG 1.4.6, at least) and some other coding-system related finessing, but removes the sentinel proposed in the first attempt. In its place, we zonk the baleful `process-adaptive-read-buffering' and remove timeout parameters from `accept-process-output' calls. With this func things seem to work fine for `pgg-sign' on a small buffer, and mostly for large buffers (270KB), but sometimes (~10%) with large buffers, i see a "file error: bad address *GnuPG*". Hmmm... thi ______________________________________________________________________ (defun pgg-gpg-process-region (start end passphrase program args) (let* ((use-agent (and (null passphrase) (pgg-gpg-use-agent-p))) (output-file-name (pgg-make-temp-file "pgg-output")) (args `("--status-fd" "2" ,@(if use-agent '("--use-agent") (if passphrase '("--passphrase-fd" "0"))) "--yes" ; overwrite "--output" ,output-file-name ,@pgg-gpg-extra-args ,@args)) (output-buffer pgg-output-buffer) (errors-buffer pgg-errors-buffer) (orig-mode (default-file-modes)) (inhibit-redisplay t)) (with-current-buffer (get-buffer-create errors-buffer) (buffer-disable-undo) (erase-buffer)) (unwind-protect (let* ((coding-system-for-write 'binary) ;; GNUPG 1.4.6 does not terminate on bad passphrase, eg: ;; [GNUPG:] BAD_PASSPHRASE (long hex # here) ;; gpg: skipped "ttn": bad passphrase ;; gpg: [stdin]: clearsign failed: bad passphrase ;; so we need to check that condition ourselves and bail out. ;; ;; To check if the passphrase is accepted, we need to parse the ;; errors-buffer, but `process-adaptive-read-buffering' non-nil ;; sometimes prevents it from filling. So turn it off. (process-adaptive-read-buffering (not passphrase)) (process (progn (set-default-file-modes 448) (apply #'start-process "*GnuPG*" errors-buffer program args))) (status (process-status process)) exit-status) (set-process-sentinel process nil) (when passphrase (let ((coding-system-for-write (or pgg-passphrase-coding-system 'binary))) (process-send-string process passphrase)) (process-send-string process "\n") ;; Bail out if passphrase is not accepted. ;; MAINTAIN ME: Tested against GNUPG 1.4.6. (let (result) (while (not result) (accept-process-output process) (with-current-buffer errors-buffer (save-excursion (goto-char (point-min)) (when (re-search-forward ;; BGM: BAD, GOOD, MISSING. "^.GNUPG:. \\([BGM][A-Z]+\\)_PASSPHRASE" nil t) (setq result (match-string 1)))))) (unless (string= "GOOD" result) (error "Passphrase no good")))) (process-send-region process start end) (process-send-eof process) ;; TODO: Re-enable `process-adaptive-read-buffering' here. (while (eq 'run (setq status (process-status process))) (accept-process-output process)) (delete-process process) (setq exit-status (process-exit-status process)) (with-current-buffer (get-buffer-create output-buffer) (buffer-disable-undo) (erase-buffer) (if (file-exists-p output-file-name) (let ((coding-system-for-read (if pgg-text-mode 'raw-text 'binary))) (insert-file-contents output-file-name))) (set-buffer errors-buffer) (if (memq status '(stop signal)) (error "%s exited abnormally: '%s'" program exit-status)) (if (= 127 exit-status) (error "%s could not be found" program)))) (if (file-exists-p output-file-name) (delete-file output-file-name)) (when (get-process "*GnuPG*") (kill-process "*GnuPG*")) (set-default-file-modes orig-mode)))) ------------=_1217704507-31730-7-- From unknown Sun Jun 15 08:42:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "ken manheimer" Subject: bug#472 closed by Chong Yidong (Re: pgg-gpg.el - pgg-gpg-process-region timing problem) Message-ID: References: <873aln2q1d.fsf@stupidchicken.com> <2cd46e7f0806231044w6410b825s9611ba713e9ac353@mail.gmail.com> X-Emacs-PR-Message: they-closed 472 X-Emacs-PR-Package: emacs Reply-To: 472@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217704508-31730-9" This is a multi-part message in MIME format... ------------=_1217704508-31730-9 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #465: pgg-gpg.el - pgg-gpg-process-region timing problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D465 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217704508-31730-9 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Aug 2 12:08:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 465-done) by emacsbugs.donarmstrong.com; 2 Aug 2008 19:08:23 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72J8K08030048 for <465-done@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 12:08:21 -0700 Received: by cyd (Postfix, from userid 1000) id C100F57E337; Sat, 2 Aug 2008 15:08:30 -0400 (EDT) From: Chong Yidong To: 465-done@debbugs.gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 15:08:30 -0400 Message-ID: <873aln2q1d.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix for this (verified by Ken Manheimer via private email). This fix is in pgg-gpg.el, which I think was calling accept-process-output in a slightly incorrect way. ------------=_1217704508-31730-9 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From ken.manheimer@gmail.com Mon Jun 23 10:45:03 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jun 2008 17:45:03 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5NHiwb9024517 for ; Mon, 23 Jun 2008 10:44:59 -0700 Received: from mail.gnu.org ([199.232.76.166]:42534 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KAq60-0000J7-Fu for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 13:44:52 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KAq64-0005xq-49 for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 13:44:58 -0400 Received: from wf-out-1314.google.com ([209.85.200.173]:55957) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAq63-0005xK-Co for emacs-pretest-bug@gnu.org; Mon, 23 Jun 2008 13:44:55 -0400 Received: by wf-out-1314.google.com with SMTP id 28so2168156wfc.24 for ; Mon, 23 Jun 2008 10:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=BFiYrm+uHvYhYl1juV9NteNrKdxU+pgBanPt5YINoVY=; b=xjliKNOtky0n5An1qegifeq5nxjDWQH441VVqOxtup3TIrd3bySAtcRDnXFeOC0lP7 PMNkRwGtWf42O/pEXjAfYWmTF6GQBGL4ePZnB2LswgPTSTnf/VjPSzjKpcp0+PzNt5w4 ueOXY8p77rwNXIYkuDS1OzX6fkvl1cz7epnJU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=PcJf+wXW+akOLNyZT62a4EE05u9A4SLGUm26YjCEYzuPB4DBzDD+NeZEGJ6Kbryx3T gn2XEWCanloceR3GoQK6Cjjvc0qlMzIdSDQFVamNwDIljh1PcBbJMlKLnjRZqQEN3pnB No3PdZg1l5s5oto1BBxVqebZE+DNO1cg0ISVM= Received: by 10.143.7.5 with SMTP id k5mr4182058wfi.327.1214243092669; Mon, 23 Jun 2008 10:44:52 -0700 (PDT) Received: by 10.114.201.14 with HTTP; Mon, 23 Jun 2008 10:44:52 -0700 (PDT) Message-ID: <2cd46e7f0806231044w6410b825s9611ba713e9ac353@mail.gmail.com> Date: Mon, 23 Jun 2008 13:44:52 -0400 From: "ken manheimer" To: "Thien-Thi Nguyen" Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Cc: wilde@sha-bang.de, emacs-pretest-bug@gnu.org, ueno@unixuser.org, emacs-devel In-Reply-To: <873an4b898.fsf@ambire.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> <87zlpc8t00.fsf@ambire.localdomain> <87r6ao8rty.fsf@ambire.localdomain> <873an4b898.fsf@ambire.localdomain> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) hi, thi. thanks for the responses - i'm glad to see investigation into this. i've tried both the patches, and both hang for me on the pggprob.el test. the hang is interruptable with Ctl-G keyboard quit. i tried stepping through the second patched version with edebug (including disabling the '(inhibit-redisplay t)' let-binding, which thwarts edebug stepping), and found the hang happens at the first '(accept-process-output process)'. (it hangs at the second one if i don't provide a passphrase.) i'm not sure what's happening. in case it helps, gpg 1.4.6 is what's running on my system. -- ken http://myriadicity.net On Mon, Jun 23, 2008 at 9:17 AM, Thien-Thi Nguyen wrote: > Delving into this, i got a little carried away... full func below. > This adds GOOD_PASSPHRASE checking (necessary for GNUPG 1.4.6, at > least) and some other coding-system related finessing, but removes > the sentinel proposed in the first attempt. In its place, we zonk > the baleful `process-adaptive-read-buffering' and remove timeout > parameters from `accept-process-output' calls. > > With this func things seem to work fine for `pgg-sign' on a small > buffer, and mostly for large buffers (270KB), but sometimes (~10%) > with large buffers, i see a "file error: bad address *GnuPG*". Hmmm... > > thi > > ______________________________________________________________________ > (defun pgg-gpg-process-region (start end passphrase program args) > (let* ((use-agent (and (null passphrase) (pgg-gpg-use-agent-p))) > (output-file-name (pgg-make-temp-file "pgg-output")) > (args > `("--status-fd" "2" > ,@(if use-agent '("--use-agent") > (if passphrase '("--passphrase-fd" "0"))) > "--yes" ; overwrite > "--output" ,output-file-name > ,@pgg-gpg-extra-args ,@args)) > (output-buffer pgg-output-buffer) > (errors-buffer pgg-errors-buffer) > (orig-mode (default-file-modes)) > (inhibit-redisplay t)) > (with-current-buffer (get-buffer-create errors-buffer) > (buffer-disable-undo) > (erase-buffer)) > (unwind-protect > (let* ((coding-system-for-write 'binary) > ;; GNUPG 1.4.6 does not terminate on bad passphrase, eg: > ;; [GNUPG:] BAD_PASSPHRASE (long hex # here) > ;; gpg: skipped "ttn": bad passphrase > ;; gpg: [stdin]: clearsign failed: bad passphrase > ;; so we need to check that condition ourselves and bail out. > ;; > ;; To check if the passphrase is accepted, we need to parse the > ;; errors-buffer, but `process-adaptive-read-buffering' non-nil > ;; sometimes prevents it from filling. So turn it off. > (process-adaptive-read-buffering (not passphrase)) > (process (progn > (set-default-file-modes 448) > (apply #'start-process "*GnuPG*" > errors-buffer program args))) > (status (process-status process)) > > exit-status) > (set-process-sentinel process nil) > (when passphrase > (let ((coding-system-for-write (or pgg-passphrase-coding-system > 'binary))) > (process-send-string process passphrase)) > (process-send-string process "\n") > ;; Bail out if passphrase is not accepted. > ;; MAINTAIN ME: Tested against GNUPG 1.4.6. > (let (result) > (while (not result) > (accept-process-output process) > (with-current-buffer errors-buffer > (save-excursion > (goto-char (point-min)) > (when (re-search-forward > ;; BGM: BAD, GOOD, MISSING. > "^.GNUPG:. \\([BGM][A-Z]+\\)_PASSPHRASE" > nil t) > (setq result (match-string 1)))))) > (unless (string= "GOOD" result) > (error "Passphrase no good")))) > (process-send-region process start end) > (process-send-eof process) > ;; TODO: Re-enable `process-adaptive-read-buffering' here. > (while (eq 'run (setq status (process-status process))) > (accept-process-output process)) > (delete-process process) > (setq exit-status (process-exit-status process)) > (with-current-buffer (get-buffer-create output-buffer) > (buffer-disable-undo) > (erase-buffer) > (if (file-exists-p output-file-name) > (let ((coding-system-for-read (if pgg-text-mode > 'raw-text > 'binary))) > (insert-file-contents output-file-name))) > (set-buffer errors-buffer) > (if (memq status '(stop signal)) > (error "%s exited abnormally: '%s'" program exit-status)) > (if (= 127 exit-status) > (error "%s could not be found" program)))) > (if (file-exists-p output-file-name) > (delete-file output-file-name)) > (when (get-process "*GnuPG*") > (kill-process "*GnuPG*")) > (set-default-file-modes orig-mode)))) ------------=_1217704508-31730-9-- From unknown Sun Jun 15 08:42:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Thien-Thi Nguyen Subject: bug#474 closed by Chong Yidong (Re: pgg-gpg.el - pgg-gpg-process-region timing problem) Message-ID: References: <873aln2q1d.fsf@stupidchicken.com> <87mylb2jxt.fsf@ambire.localdomain> X-Emacs-PR-Message: they-closed 474 X-Emacs-PR-Package: emacs Reply-To: 474@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217704509-31730-11" This is a multi-part message in MIME format... ------------=_1217704509-31730-11 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #465: pgg-gpg.el - pgg-gpg-process-region timing problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D465 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217704509-31730-11 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Aug 2 12:08:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 465-done) by emacsbugs.donarmstrong.com; 2 Aug 2008 19:08:23 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72J8K08030048 for <465-done@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 12:08:21 -0700 Received: by cyd (Postfix, from userid 1000) id C100F57E337; Sat, 2 Aug 2008 15:08:30 -0400 (EDT) From: Chong Yidong To: 465-done@debbugs.gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 15:08:30 -0400 Message-ID: <873aln2q1d.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix for this (verified by Ken Manheimer via private email). This fix is in pgg-gpg.el, which I think was calling accept-process-output in a slightly incorrect way. ------------=_1217704509-31730-11 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From ttn@gnuvola.org Tue Jun 24 03:45:33 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.1 required=4.0 tests=AWL,BAYES_00,GMAIL, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Jun 2008 10:45:33 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5OAjTKx017117 for ; Tue, 24 Jun 2008 03:45:31 -0700 Received: from mail.gnu.org ([199.232.76.166]:48971 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KB61a-0001Xq-Ua for emacs-pretest-bug@gnu.org; Tue, 24 Jun 2008 06:45:23 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KB61d-0005Cs-AO for emacs-pretest-bug@gnu.org; Tue, 24 Jun 2008 06:45:28 -0400 Received: from [151.61.140.98] (port=34778 helo=ambire.localdomain) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KB61b-0005AQ-4L; Tue, 24 Jun 2008 06:45:24 -0400 Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1KB5yg-0001WV-Nk; Tue, 24 Jun 2008 12:42:22 +0200 From: Thien-Thi Nguyen To: "ken manheimer" Cc: emacs-pretest-bug@gnu.org, emacs-devel Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem References: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> <87zlpc8t00.fsf@ambire.localdomain> <87r6ao8rty.fsf@ambire.localdomain> <873an4b898.fsf@ambire.localdomain> <2cd46e7f0806231044w6410b825s9611ba713e9ac353@mail.gmail.com> Date: Tue, 24 Jun 2008 12:42:22 +0200 In-Reply-To: <2cd46e7f0806231044w6410b825s9611ba713e9ac353@mail.gmail.com> (ken manheimer's message of "Mon, 23 Jun 2008 13:44:52 -0400") Message-ID: <87mylb2jxt.fsf@ambire.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. () "ken manheimer" () Mon, 23 Jun 2008 13:44:52 -0400 the hang happens at the first '(accept-process-output process)'. What happens if you convert (accept-process-output process) to (accept-process-output) ? thi ------------=_1217704509-31730-11-- From unknown Sun Jun 15 08:42:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Stefan Monnier Subject: bug#476 closed by Chong Yidong (Re: pgg-gpg.el - pgg-gpg-process-region timing problem) Message-ID: References: <873aln2q1d.fsf@stupidchicken.com> X-Emacs-PR-Message: they-closed 476 X-Emacs-PR-Package: emacs Reply-To: 476@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217704510-31730-13" This is a multi-part message in MIME format... ------------=_1217704510-31730-13 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #465: pgg-gpg.el - pgg-gpg-process-region timing problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D465 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217704510-31730-13 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Aug 2 12:08:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 465-done) by emacsbugs.donarmstrong.com; 2 Aug 2008 19:08:23 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72J8K08030048 for <465-done@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 12:08:21 -0700 Received: by cyd (Postfix, from userid 1000) id C100F57E337; Sat, 2 Aug 2008 15:08:30 -0400 (EDT) From: Chong Yidong To: 465-done@debbugs.gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 15:08:30 -0400 Message-ID: <873aln2q1d.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix for this (verified by Ken Manheimer via private email). This fix is in pgg-gpg.el, which I think was calling accept-process-output in a slightly incorrect way. ------------=_1217704510-31730-13 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From monnier@iro.umontreal.ca Tue Jun 24 05:30:21 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Jun 2008 12:30:21 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5OCUIvG010457 for ; Tue, 24 Jun 2008 05:30:19 -0700 Received: from mail.gnu.org ([199.232.76.166]:43540 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KB7f1-0001rt-QW for emacs-pretest-bug@gnu.org; Tue, 24 Jun 2008 08:30:11 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KB7f3-000452-5B for emacs-pretest-bug@gnu.org; Tue, 24 Jun 2008 08:30:17 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:25903) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KB7ez-00042L-Tk; Tue, 24 Jun 2008 08:30:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAOOFYEhFxIdG/2dsb2JhbACBW7EL X-IronPort-AV: E=Sophos;i="4.27,696,1204520400"; d="scan'208";a="23135198" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 24 Jun 2008 08:30:08 -0400 Received: from pastel.home ([69.196.135.70]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id ESC62508; Tue, 24 Jun 2008 08:30:08 -0400 Received: by pastel.home (Postfix, from userid 20848) id 36369825A; Tue, 24 Jun 2008 08:30:08 -0400 (EDT) From: Stefan Monnier To: Thien-Thi Nguyen Cc: "ken manheimer" , emacs-pretest-bug@gnu.org, emacs-devel Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Message-ID: References: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> <87zlpc8t00.fsf@ambire.localdomain> <87r6ao8rty.fsf@ambire.localdomain> <873an4b898.fsf@ambire.localdomain> <2cd46e7f0806231044w6410b825s9611ba713e9ac353@mail.gmail.com> <87mylb2jxt.fsf@ambire.localdomain> Date: Tue, 24 Jun 2008 08:30:08 -0400 In-Reply-To: <87mylb2jxt.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Tue, 24 Jun 2008 12:42:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. > the hang happens at the first > '(accept-process-output process)'. > What happens if you convert > (accept-process-output process) > to > (accept-process-output) > ? If that fixes it, it means either that `process' is not the right process, or that we may have a bug in the C code. So if that fixes the bug, please don't just install such a workaround without trying to find the root cause first. Stefan ------------=_1217704510-31730-13-- From unknown Sun Jun 15 08:42:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "ken manheimer" Subject: bug#486 closed by Chong Yidong (Re: pgg-gpg.el - pgg-gpg-process-region timing problem) Message-ID: References: <873aln2q1d.fsf@stupidchicken.com> <2cd46e7f0806260916y39870423ge4bda26f97d6d504@mail.gmail.com> X-Emacs-PR-Message: they-closed 486 X-Emacs-PR-Package: emacs Reply-To: 486@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217704511-31730-15" This is a multi-part message in MIME format... ------------=_1217704511-31730-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #465: pgg-gpg.el - pgg-gpg-process-region timing problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D465 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217704511-31730-15 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Aug 2 12:08:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 465-done) by emacsbugs.donarmstrong.com; 2 Aug 2008 19:08:23 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72J8K08030048 for <465-done@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 12:08:21 -0700 Received: by cyd (Postfix, from userid 1000) id C100F57E337; Sat, 2 Aug 2008 15:08:30 -0400 (EDT) From: Chong Yidong To: 465-done@debbugs.gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 15:08:30 -0400 Message-ID: <873aln2q1d.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix for this (verified by Ken Manheimer via private email). This fix is in pgg-gpg.el, which I think was calling accept-process-output in a slightly incorrect way. ------------=_1217704511-31730-15 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From ken.manheimer@gmail.com Thu Jun 26 09:16:35 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.9 required=4.0 tests=BAYES_00,FOURLA,GMAIL, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 26 Jun 2008 16:16:35 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5QGGN7v004285 for ; Thu, 26 Jun 2008 09:16:24 -0700 Received: from mx10.gnu.org ([199.232.76.166]:34261) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KBu8r-0008RT-Gq for emacs-pretest-bug@gnu.org; Thu, 26 Jun 2008 12:16:13 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KBu8y-0006t4-Ba for emacs-pretest-bug@gnu.org; Thu, 26 Jun 2008 12:16:22 -0400 Received: from yx-out-1718.google.com ([74.125.44.155]:63838) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBu8x-0006sh-PI for emacs-pretest-bug@gnu.org; Thu, 26 Jun 2008 12:16:20 -0400 Received: by yx-out-1718.google.com with SMTP id 34so77886yxf.66 for ; Thu, 26 Jun 2008 09:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=w3XZLziRrXQGttEwto6R9vtlBWSK3U5vurCAPa2KnSM=; b=dMdguAGfWRZJgBkQ6YOxp4XeBbuAPvtv0MULS3TchkinFcLdZvstF6NPKWu+vKDx8u qzUv0ZGWnSw59prBBYN17BGMEPjZcknn2HBn3GWtBFbyLHxLNKaA7KNwH0Tl3qNOOLUt HmAxwKEfWq1vhy0QKKhXmKwX9wtyMlRNRqLDM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=vWCMKU11Si/7hFydGBW6wPj0+H4M45Xq6Qg/rtSFDZ1yvVqZTZvhBzG2ZDQWcXfMKV 0YOyI1MfGtG27WE+OVqUQL4xboLLpRhyOWsk4zli8VjnvcwcmTF0vB/aIR5sZYtziHJZ QRPnlfrXa6fpX88WdnaCQiMJQSos5NDY14D3w= Received: by 10.114.56.1 with SMTP id e1mr83896waa.204.1214496977326; Thu, 26 Jun 2008 09:16:17 -0700 (PDT) Received: by 10.114.201.14 with HTTP; Thu, 26 Jun 2008 09:16:17 -0700 (PDT) Message-ID: <2cd46e7f0806260916y39870423ge4bda26f97d6d504@mail.gmail.com> Date: Thu, 26 Jun 2008 12:16:17 -0400 From: "ken manheimer" To: emacs-devel , emacs-pretest-bug@gnu.org, "Thien-Thi Nguyen" , "Stefan Monnier" , "Daiki Ueno" , "Sascha Wilde" Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem In-Reply-To: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3321_25181615.1214496977333" References: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) ------=_Part_3321_25181615.1214496977333 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline i am not sure how to proceed with this problem. as demonstrated by the pggprob.el script, i consistently get encryption and decryption problems without the contrived delay in my pgg-gpg-process-region patch. (the problem does not happen if i just do a regular pgg-decrypt - i think the crucial thing is that a symmetric passphrase is being passed into pgg-gpg-process-region.) i have tried everything i could think of to exclude local quirks from the problem, including starting emacs with '--no-site-file -q' and eliminating everything from my ~/.gnupg/gpg.conf file. i have reproduced the problem (and workaround) consistently in kubuntu 8.04 emacs-snapshot package and a recent CVS HEAD checkout. in fact, i have incidentally reinstalled my kubuntu 8.04 OS recently, on both my main 2.0 Ghz T43 thinkpad and on a 750 Mhz a20p thinkpad. the problem continues consistently on the t43 but does *not* occur on the a20p, which is not contrary to the sensitivities of a timing problem. i have also tried thien-thi nguyen's alternative approaches, but neither worked for me, hanging in different places. i am pretty sure this is a real problem, and something that warrants attention. i realize that the difficulty in repeating the problem elsewhere increases the challenge in addressing it, and am open to cooperating with people to try things, if that would help. the consistent effectiveness of my workaround should help provide clues about the nature of the problem, at least. any suggestions? -- ken http://myriadicity.net On Sun, Jun 22, 2008 at 1:37 PM, ken manheimer wrote: > allout encryption, which depends on pgg.el &c, has been failing due to > a weird timing problem i've narrowed down to the > pgg-gpg-process-region function. this is in emacs 23.0.60 built from > a CVS HEAD checkout of an hour or so ago, and some earlier 23.0.60 > versions. i've reproduced the problem using emacs -q and regularly > launched emacs, etc. > > the problem is that pgg-gpg-process-region often returns a nil status > despite successful decryption, unless a delay (eg, (sleep-for .3) is > inserted between process start and later interaction with the process. > with the delay, the status is something like 207 or 208, while > without it the status is nil - yet, on examination the content is > sucessfully decrypted. > > the size of the delay needs to be increased when the machine is > heavily loaded, and can be reduced (on my thinkpad t43 2 GHz laptop, > 3Gb ram, running kubuntu 8.0.4 +) to no lower than (sleep-for .2). > rarely, the proper status is returned without the delay, depending on > the machine load and other things i can't identify. considering the > real-time sensitivity of the problem, your mileage will almost > certainly vary! > > i originally thought the problem might be in gpg, but now figure it > resides either in the emacs process mechanism, pgg's use of that, or > somewhere in the combination of emacs and pgg. > > i've created a simple .el script, pggprob.el, with minimal code and > data to produce the problem, and a patch, pggprob-patch.txt, with a > single-line modification to pgg-gpg-process-region to work around the > problem. both are attached. since the workaround is merely a timing > delay, it's clearly not a fix! i'm hoping this is enough to enable > others to reproduce the problem, and investigate... > -- > ken > http://myriadicity.net > > If Emacs crashed, and you have the Emacs process in the gdb debugger, > please include the output from the following gdb commands: > `bt full' and `xbacktrace'. > If you would like to further debug the crash, please read the file > /home/klm/src/emacs-HEAD/etc/DEBUG for instructions. > > In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) > of 2008-06-22 on twist > Windowing system distributor `The X.Org Foundation', version 11.0.10400090 > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: en_US.UTF-8 > value of $XMODIFIERS: nil > locale-coding-system: utf-8-unix > default-enable-multibyte-characters: t > > Major mode: Emacs-Lisp > > Minor modes in effect: > tooltip-mode: t > tool-bar-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > global-auto-composition-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > C-x C-f l > i b / e m a a l l s c r p g g p > M-x e v a l - c u r M-. C-g > M-> C-x C-e M-x e m a c s r e p o r t > - e m > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > Source file `/home/klm/src/emacs-HEAD/lisp/pgg-gpg.el' newer than > byte-compiled file > Quit > Mark set > nil > -- ken http://myriadicity.net ------=_Part_3321_25181615.1214496977333 Content-Type: application/octet-stream; name=pggprob.el Content-Transfer-Encoding: base64 X-Attachment-Id: f_fhrwgxd60 Content-Disposition: attachment; filename=pggprob.el OzsgZGVtb25zdHJhdGUgdGltaW5nIHByb2JsZW0gaW4gcGdnLWdwZy1wcm9jZXNzLXJlZ2lvbgoK KHNldHEgcGFzc3BocmFzZSAiYSIKICAgICAgdmVyaWZpZXIgIi0tLS0tQkVHSU4gUEdQIE1FU1NB R0UtLS0tLQpWZXJzaW9uOiBHbnVQRyB2MS40LjYgKEdOVS9MaW51eCkKCmpBMEVBd01DbzcyZk5H QjFyTnhneVN2K3J4ZGtQdjQ2blZ4UTVmZzR5VDc4bGRnVmNEc2VEN01yZTRGaGppZm4KVlRBMS9Q ZG1ldFZmRmI5Kwo9TVhGNgotLS0tLUVORCBQR1AgTUVTU0FHRS0tLS0tIgogICAgICBjb3VudCAw KQoKKGRlZnVuIGRlY3J5cHQgKHBhc3NwaHJhc2UgdGV4dCkKICAod2l0aC1jdXJyZW50LWJ1ZmZl ciAoZ2V0LWJ1ZmZlci1jcmVhdGUgIipwZ2ctdGVzdCoiKQogICAgKGVyYXNlLWJ1ZmZlcikKICAg IChpbnNlcnQgdGV4dCkKICAgIChwZ2ctZGVjcnlwdCBuaWwgbmlsIHBhc3NwaHJhc2UpKSkKCjs7 IHRoZSBmb2xsb3dpbmcgeWllbGRzIG5pbCB3L291dCB0aGUgcGF0Y2hlZCBkZWxheSwgMjA4IHdp dGggaXQuCjs7IGV4YW1pbmF0aW9uIG9mIHRoZSBhY3R1YWwgcmVzdWx0cyBidWZmZXIgc2hvd3Mg dGhhdCB0aGUgdmVyaWZpZXIgaXMKOzsgc3VjY2Vzc2Z1bGx5IGRlY3J5cHRlZCBpbiBib3RoIGNh c2VzLCBob3dldmVyLgooZGVjcnlwdCBwYXNzcGhyYXNlIHZlcmlmaWVyKQo= ------=_Part_3321_25181615.1214496977333 Content-Type: text/plain; name=pgg-patch.txt Content-Transfer-Encoding: base64 X-Attachment-Id: f_fhrwusef2 Content-Disposition: attachment; filename=pgg-patch.txt LS0tIHBnZy1ncGcuZWwufjEuMjcufgkyMDA4LTA1LTA2IDAzOjU3OjQ2LjAwMDAwMDAwMCAtMDQw MAorKysgcGdnLWdwZy5lbAkyMDA4LTA2LTIyIDEzOjI0OjE0LjAwMDAwMDAwMCAtMDQwMApAQCAt ODYsNiArODYsNyBAQAogCSAgICAoc2V0cSBwcm9jZXNzCiAJCSAgKGFwcGx5ICMnc3RhcnQtcHJv Y2VzcyAiKkdudVBHKiIgZXJyb3JzLWJ1ZmZlcgogCQkJIHByb2dyYW0gYXJncykpKQorICAgICAg ICAgIChzbGVlcC1mb3IgLjMpICAgICAgICAgICAgICAgIDsga2xtOiB0aW1pbmcgZGVsYXkKIAkg IChzZXQtcHJvY2Vzcy1zZW50aW5lbCBwcm9jZXNzICMnaWdub3JlKQogCSAgKHdoZW4gcGFzc3Bo cmFzZQogCSAgICAoc2V0cSBwYXNzcGhyYXNlLXdpdGgtbmV3bGluZSAoY29uY2F0IHBhc3NwaHJh c2UgIlxuIikpCg== ------=_Part_3321_25181615.1214496977333-- ------------=_1217704511-31730-15-- From unknown Sun Jun 15 08:42:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Chong Yidong Subject: bug#487 closed by Chong Yidong (Re: pgg-gpg.el - pgg-gpg-process-region timing problem) Message-ID: References: <873aln2q1d.fsf@stupidchicken.com> <87fxr040oq.fsf@stupidchicken.com> X-Emacs-PR-Message: they-closed 487 X-Emacs-PR-Package: emacs Reply-To: 487@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217704512-31730-17" This is a multi-part message in MIME format... ------------=_1217704512-31730-17 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #465: pgg-gpg.el - pgg-gpg-process-region timing problem It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D465 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217704512-31730-17 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Aug 2 12:08:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 465-done) by emacsbugs.donarmstrong.com; 2 Aug 2008 19:08:23 +0000 Received: from cyd (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m72J8K08030048 for <465-done@emacsbugs.donarmstrong.com>; Sat, 2 Aug 2008 12:08:21 -0700 Received: by cyd (Postfix, from userid 1000) id C100F57E337; Sat, 2 Aug 2008 15:08:30 -0400 (EDT) From: Chong Yidong To: 465-done@debbugs.gnu.org Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem Date: Sat, 02 Aug 2008 15:08:30 -0400 Message-ID: <873aln2q1d.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix for this (verified by Ken Manheimer via private email). This fix is in pgg-gpg.el, which I think was calling accept-process-output in a slightly incorrect way. ------------=_1217704512-31730-17 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Thu Jun 26 09:37:06 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.3 required=4.0 tests=AWL,BAYES_00,FOURLA, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 26 Jun 2008 16:37:06 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5QGaxV3008993 for ; Thu, 26 Jun 2008 09:37:00 -0700 Received: from mail.gnu.org ([199.232.76.166]:35635 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KBuSm-00019o-Vy for emacs-pretest-bug@gnu.org; Thu, 26 Jun 2008 12:36:49 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KBuSt-0002aj-Re for emacs-pretest-bug@gnu.org; Thu, 26 Jun 2008 12:36:57 -0400 Received: from cyd.mit.edu ([18.115.2.24]:33918) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBuSt-0002aH-A8; Thu, 26 Jun 2008 12:36:55 -0400 Received: by cyd.mit.edu (Postfix, from userid 1000) id 6E7404E474; Thu, 26 Jun 2008 12:32:05 -0400 (EDT) From: Chong Yidong To: "ken manheimer" Cc: emacs-devel , emacs-pretest-bug@gnu.org, "Thien-Thi Nguyen" , "Stefan Monnier" , "Daiki Ueno" , "Sascha Wilde" Subject: Re: pgg-gpg.el - pgg-gpg-process-region timing problem References: <2cd46e7f0806221037h6d16839bp567eb5b901313375@mail.gmail.com> <2cd46e7f0806260916y39870423ge4bda26f97d6d504@mail.gmail.com> Date: Thu, 26 Jun 2008 12:32:05 -0400 In-Reply-To: <2cd46e7f0806260916y39870423ge4bda26f97d6d504@mail.gmail.com> (ken manheimer's message of "Thu, 26 Jun 2008 12:16:17 -0400") Message-ID: <87fxr040oq.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) > i am not sure how to proceed with this problem. as demonstrated by > the pggprob.el script, i consistently get encryption and decryption > problems without the contrived delay in my pgg-gpg-process-region > patch. (the problem does not happen if i just do a regular > pgg-decrypt - i think the crucial thing is that a symmetric passphrase > is being passed into pgg-gpg-process-region.) Here's one suggestion, though I don't know how useful it is: if it's possible to run the same or similar version of pgg in Emacs 22, you could and see if it appears there. If not, we could narrow the problem down to a change in Emacs' process code during Emacs 23 (though OTOH I don't know of any that could lead to this). ------------=_1217704512-31730-17--