Bug 122121 - Hang in select loop
Summary: Hang in select loop
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 8.0
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2004-04-30 17:41 UTC by Christian Goetze
Modified: 2007-04-18 17:06 UTC (History)
0 users

Clone Of:
Last Closed: 2004-05-04 15:20:03 UTC

Attachments (Terms of Use)
gzipped strace of "rpm -qa" (3.82 KB, application/octet-stream)
2004-04-30 17:43 UTC, Christian Goetze
no flags Details

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
    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.

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