Bug 5269 - rpm hangs when trying to install packages
rpm hangs when trying to install packages
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
6.0
i386 Linux
high Severity high
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-09-21 10:52 EDT by lars
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-09-21 16:03:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
a makefile to reproduce (4.00 KB, text/plain)
2003-07-01 14:59 EDT, Kris Raney
no flags Details

  None (edit)
Description lars 1999-09-21 10:52:25 EDT
rpm randomly hangs when trying to install packages. It
either hangs completely, looping over code like (strace)
read(4, "\0\236\0\0\210m\33\0\0\0\0\0\1\0"..., 16) = 16
lseek(4, 1797512, SEEK_SET)             = 1797512
read(4, "\0\236\0\0\210m\33\0\0\0\0\0\1\0"..., 16) = 16
lseek(4, 1797512, SEEK_SET)             = 1797512
read(4, "\0\236\0\0\210m\33\0\0\0\0\0\1\0"..., 16) = 16
lseek(4, 1797512, SEEK_SET)             = 1797512
read(4, "\0\236\0\0\210m\33\0\0\0\0\0\1\0"..., 16) = 16
lseek(4, 1797512, SEEK_SET)             = 1797512
read(4, "\0\236\0\0\210m\33\0\0\0\0\0\1\0"..., 16) = 16
lseek(4, 1797512, SEEK_SET)             = 1797512

/proc/4462/fd/4 -> /var/lib/rpm/packages.rpm

Or it terminates and reports "freelist corrupt", and after a
--rebuilddb installs fine.

This happens on a larger set of machines and not entirely
repeatable. Do you need a copy of the rpm database or
anything?
Comment 1 Jeff Johnson 1999-09-21 16:03:59 EDT
The infinite loop is the "freelist corrupt" bug with a different
manifestation. Try "rpm --rebuilddb" and you should be OK.

If you (or anyone else) can reproduce this problem with a known
sequence of commands starting from rebuilt and saved /var/lib/rpm/*
databases, please send me the data so I can get this problem fixed.
This problem is very hard to reproduce without a known good starting
database.
Comment 2 Kris Raney 2003-07-01 14:59:56 EDT
Created attachment 92708 [details]
a makefile to reproduce

This makefile starts off with an initdb, and recreates the problem pretty
reliably. The RPMs are from redhat 7.3 and 8.0, and are all available on
rpmfind.net.

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