Bug 42283 - I am getting "free list corrupt" message when using rpm
Summary: I am getting "free list corrupt" message when using rpm
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 6.2
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-05-25 15:05 UTC by Jeba Bhaskaran
Modified: 2007-04-18 16:33 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2001-05-31 14:11:37 UTC

Attachments (Terms of Use)
tar file of rpm db (deleted)
2001-05-25 15:08 UTC, Jeba Bhaskaran
no flags Details
rpm db tar file (deleted)
2001-05-25 15:14 UTC, Jeba Bhaskaran
no flags Details
rpm db tar file (deleted)
2001-05-25 15:17 UTC, Jeba Bhaskaran
no flags Details
My rpm db for which I get a "corrupt free list" on RH 6.2 (deleted)
2001-05-25 16:57 UTC, Marco Antoniotti
no flags Details
RPM db for which I get a free list corrupt error on RH 6.2. (deleted)
2001-05-25 17:18 UTC, Marco Antoniotti
no flags Details

Description Jeba Bhaskaran 2001-05-25 15:05:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.14-5.0 i686)

Description of problem:

How reproducible:

Steps to Reproduce:
1. run rpm

Additional info:

Comment 1 Jeba Bhaskaran 2001-05-25 18:30:43 UTC
any idea when a fix might be available?

Comment 2 Jeff Johnson 2001-05-25 18:41:40 UTC
There are 3-6 recent rpm bugs with db1 databases damaged by Ximian, the "fix"
is approx. the same. Meanwhile, I'm gonna try to add a better fix to rpm-4.0.3
to address
db1 damage, that's gonna take a few days ...

Comment 3 Jeba Bhaskaran 2001-05-30 15:58:44 UTC
sorry to keep bugging you. do you think the fix would be available by the end of
week? I need to upgrade some installed packages

Comment 4 Jeff Johnson 2001-05-30 19:23:30 UTC
Dunno when yet, soon. I've got a fix for about half the problems (sorry
not yours yet), looking at your class of  "free-list corrupt" damage
next ...

Comment 5 Jeff Johnson 2001-05-30 19:42:02 UTC
Your free-list is corrupt after offset 17543768 in packages.rpm.
Since the file size is

-rw-r--r--    1 root     root     17552072 May  3 12:54 packages.rpm

a simple rebuild using rpm-3.0.x will probably fix most everything.

See directions at #41864, reopen this bug if you need more.

*** This bug has been marked as a duplicate of 41864 ***

Comment 6 Jeba Bhaskaran 2001-05-30 20:16:27 UTC
when I run 'rpm2cpio rpm-3.0.4-0.48.rpm | cpio -dim' I am getting the following
cannot open package: No such file or directory
cpio: premature end of archive

Comment 7 Jeff Johnson 2001-05-30 20:19:52 UTC
The argument to rpm2cpio is a path to package file ...

Comment 8 Jeff Johnson 2001-05-31 14:11:32 UTC
BTW, you may need to move the rebuilt indices from
/var/lib/rpmrebuild* to /var/lib/rpm. after rebuildding.
Make sure you get the latest rebuilddb directory, as
every free list corrupt exit leaves a directory behind.
All the /var/lib/rpmrebuild* directories can/should be

Comment 9 Jeba Bhaskaran 2001-05-31 18:24:24 UTC
working now. Thanks for your help

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