From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt; Hotbar 4.1.7.0) Description of problem: When I try to rebuild (with rpm --rebuilddb) rpm database I get Segmentation fault error. 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 How reproducible: Always Steps to Reproduce: 1. rpm --rebuilddb 2. or: rpm -qa 3. Actual Results: Segmentation fault Additional info: 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 7.2 system
Please supply point (i.e. URL, attacments won't work) to a tarball of your database cd /var/lib 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: http://www.unisoft.com.pl/~slawicki/rpmdb-99136/ 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 ftp://people.redhat.com/jbj/rpmdb-99136-FIX.tar.gz Download and install by doing: cd /var/lib mv rpm/Packages rpm/Packages-ORIG tar xzvf rpmdb-99136.tar.gz rpm --rebuilddb -vv Reopen this bug if still problems.