Bug 122121

Summary: Hang in select loop
Product: [Retired] Red Hat Linux Reporter: Christian Goetze <cg>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact: Mike McLean <mikem>
Severity: high Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-05-04 15:20:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
gzipped strace of "rpm -qa" none

Description Christian Goetze 2004-04-30 17:41:18 UTC
Description of problem:

any rpm operation hangs, strace for "rpm -qa" attached.

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

assam> rpm --version
RPM version 4.1

How reproducible:

Not sure how to create the initial state. I suspect there may have 
been an aborted rpm operation which may have created an inconcistent 
state. Rebuilding the rpm database seems to fix it, but after two or 
three rpm operations the hang is back and will happen reliably at 
every subsequent operation. I can provide a complete snapshot 
of /var/lib/rpm is it is helpful.

Comment 1 Christian Goetze 2004-04-30 17:43:40 UTC
Created attachment 99838 [details]
gzipped strace of "rpm -qa"

strace of "rpm -qa". The process needed to be killed with "kill -9".

Comment 2 Jeff Johnson 2004-05-04 13:39:18 UTC
Try
    rm -f /var/lib/rpm/__db*
Did that fix?

Comment 3 Christian Goetze 2004-05-04 13:56:04 UTC
Yes. On the mailing list, you pointed me in the right direction 
(SIGPIPE), and I now save the output of rpm -q into a temporary file 
prior to further processing.