Bug 87747 - rpm is unusable after breaking a piped command
rpm is unusable after breaking a piped command
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
9
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-04-01 18:46 EST by jbowman
Modified: 2007-04-18 12:52 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-04-02 18:46:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
strace of a normal rpm -e command prior to breakage (157.35 KB, text/plain)
2003-04-01 18:48 EST, jbowman
no flags Details
strace of the rpm -qa portion of rpm -qa|less (310.15 KB, text/plain)
2003-04-01 18:49 EST, jbowman
no flags Details
strace of the less portion of the rpm -qa|less (7.21 KB, text/plain)
2003-04-01 18:49 EST, jbowman
no flags Details
strace of the rpm -e that hangs after rpm -qa|less, up until it gets kill -9'd (80.67 KB, text/plain)
2003-04-01 18:50 EST, jbowman
no flags Details

  None (edit)
Description jbowman 2003-04-01 18:46:19 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312

Description of problem:
Piping the output of an rpm command (for example, -qa) into another program
which then breaks the pipe results in all further rpm commands hanging. The only
recourse is to kill -9 the hung process.

Removing the /var/lib/rpm/__db.00* files restores functionality.

Version-Release number of selected component (if applicable):
rpm-4.2-0.69

How reproducible:
Always

Steps to Reproduce:
1. On a working RedHat 9 system: rpm -qa|less , then hit 'q' to exit less.
2. Attempt to run *any* rpm afterwards.


Actual Results:  RPM hangs

Expected Results:  RPM should perform the specified action.

Additional info:
Comment 1 jbowman 2003-04-01 18:48:47 EST
Created attachment 90821 [details]
strace of a normal rpm -e command prior to breakage
Comment 2 jbowman 2003-04-01 18:49:28 EST
Created attachment 90822 [details]
strace of the rpm -qa portion of rpm -qa|less
Comment 3 jbowman 2003-04-01 18:49:56 EST
Created attachment 90823 [details]
strace of the less portion of the rpm -qa|less
Comment 4 jbowman 2003-04-01 18:50:38 EST
Created attachment 90824 [details]
strace of the rpm -e that hangs after rpm -qa|less, up until it gets kill -9'd
Comment 5 Jeff Johnson 2003-04-02 18:46:05 EST
Yes, rpm didn't handle SIGPIPE until recently.

FIxed (and errata pending) in packages at
    ftp://ftp.rpm.org/pub/rpm/test-4.2

Note You need to log in before you can comment on or make changes to this bug.