Bug 26360

Summary: gpg-sign hangs on long messages
Product: [Retired] Red Hat Linux Reporter: Aleksey Nogin <aleksey>
Component: pineAssignee: Mike A. Harris <mharris>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-06 22:20:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aleksey Nogin 2001-02-06 21:16:39 UTC
When I try to filter a long message through gpg-sign, it often hangs (it
hangs for some messages, but not others, but consistently for each
particular message).

If I use the debug-all option, gpg asks me for password and than hangs
after displaying

gpg: DBG: iobuf-5.0: open `[stdin]' fd=0
gpg: DBG: iobuf-6.0: create `file_filter'
gpg: DBG: iobuf-5.0: underflow: req=8192 got=8192 rc=0

 If I run gpg by hands, it continues with

gpg: DBG: iobuf-5.0: underflow: req=8192 got=3878 rc=0
gpg: DBG: iobuf-5.0: underflow: req=8192 got=0 rc=-1
gpg: DBG: iobuf-5.0: underflow: eof
gpg: DBG: armor-filter: control: 5
gpg: DBG: iobuf-6.1: push `armor_filter'
gpg: DBG: armor-filter: control: 5

Comment 1 Aleksey Nogin 2001-02-06 21:27:56 UTC
For some strange reason, the following change fixed the problem:

--- /usr/bin/pinegpg.orig       Tue Oct 31 15:43:55 2000
+++ /usr/bin/pinegpg    Tue Feb  6 15:29:07 2001
@@ -3,7 +3,7 @@
 n=1
 r=1
 case $0 in
-       *gpg-sign)              gpg -at -s $*;          n=$?    ;;
+       *gpg-sign)              cat - | gpg -at -s $*;          n=$?    ;;
        *gpg-encrypt)           gpg -at -e $*;          n=$?    ;;
        *gpg-sign+encrypt)      gpg -at -se $*;         n=$?    ;;
        *gpg-check)


Comment 2 Mike A. Harris 2001-02-08 06:22:05 UTC
Okee dokey.. Fixed in latest build.. should appear in rawhide real
soon now.