Bug 68013 - rpm database corrupt
rpm database corrupt
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
7.3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-07-05 05:46 EDT by Need Real Name
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-07-05 15:24:14 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)

  None (edit)
Description Need Real Name 2002-07-05 05:46:38 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020606

Description of problem:
The rpm database is corrupt.  --rebuilddb gives a segmentation fault.

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


How reproducible:
Always

Steps to Reproduce:
/var/lib/rpm directory available as http://www.mcdee.net/rpm.tar.gz



Additional info:

Also attempted db_dump | db_load as per rpm mailing list, same result.
Comment 1 Jeff Johnson 2002-07-05 15:24:09 EDT
Hmmm, here's what I see:
 bash$ rpm -qa | grep ximian | wc
error: rpmdb: damaged header instance #35 retrieved, skipping.
error: rpmdb: damaged header instance #336 retrieved, skipping.
error: rpmdb: damaged header instance #488 retrieved, skipping.
error: rpmdb: damaged header instance #174 retrieved, skipping.
error: rpmdb: damaged header instance #297 retrieved, skipping.
error: rpmdb: damaged header instance #429 retrieved, skipping.
error: rpmdb: damaged header instance #225 retrieved, skipping.
error: rpmdb: damaged header instance #555 retrieved, skipping.
error: rpmdb: damaged header instance #602 retrieved, skipping.
    157     157    4565
You might want to complain to ximian ...

Fix in a moment ...
Comment 2 Jeff Johnson 2002-07-05 15:49:55 EDT
OK, I've deleted damaged header instances
        593, 305, 306, 732, 733, 734, 735,
and after the first --rebuilddb
        35, 336, 488, 174, 297, 429, 225, 555, 602,
sufficient to do a rpm --rebuilddb cleanly.

A fixed copy of your rpm/Packages is at
	ftp://people.redhat.com/jbj/rpmdb-68013-FIX.tar.gz

Download and install by doing (as root)
	cd /var/lib
	mv rpm/Packages rpm/Packages-ORIG
	tar xzvf rpmdb-68013-FIX.tar.gz
	rpm --rebuilddb -vv
and verify the fix by doing
	rpm -qa

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