From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt; Hotbar
Description of problem:
When I try to rebuild (with rpm --rebuilddb) rpm database I get Segmentation
I have repaired the database by doing:
mv Packages Packages-ORIG
db_dump Packages-ORIG | db_load Packages
but after this I still get a segfault.
Version-Release number of selected component (if applicable):
rpm-4.0.5-1.7x, db3-3.2.9-4, glibc-2.2.4-32
Steps to Reproduce:
1. rpm --rebuilddb
2. or: rpm -qa
Actual Results: Segmentation fault
Rebuilding the database on RedHat 9.0 (on db4) works fine, unfortunately, I can
not upgrade my main server from 7.2 to 9.0. I have to fix the problem with RH
Please supply point (i.e. URL, attacments won't work) to
a tarball of your database
tar czvf /tmp/rpmdb-99136.tar.gz rpm
and I'll see if I can fix.
The damaged rpm database can be downloaded from the location:
Hope it can be fixed...
One bad header found:
error: rpmdbNextIterator: skipping h# 220 region trailer: BAD, tag
1953628277 type 1795162112 offset 0 count 2096
Fixed by --rebuilddb (with rpm-4.1 or later). Your fixed database, with
the RPM-GPG-KEY added and the bad header removed is at
Download and install by doing:
mv rpm/Packages rpm/Packages-ORIG
tar xzvf rpmdb-99136.tar.gz
rpm --rebuilddb -vv
Reopen this bug if still problems.