From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Description of problem: I tried to follow bug 38454 because had the rpm -qa segfault listed there. I followed the steps until the db_dump Packages.old | db_load Packages thing ... i tried to dump to the console to see what it does. Absolutely nothing. i see its working (sort of) and leaved it alone for two hours until decided to do something about it. I checked some docs and found the "-r" repair option and worked so i tried again with db_dump Packages.old -r | db_load Packages and finished ! But rpm -qa continue segfaulting. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. db_dump Packages-ORIG | db_load Packages Actual Results: Nothing at all Expected Results: return an error at least Additional info: db_dump 3.1.17 rpm 4.0.2 Red Hat 7.1
OK, I did a rebuilddb with rpm-4.1, that seems to have fixed most everything (although ~6-7 headers were discarded). The fixed copy of your Packages file is at ftp://people.redhat.com/jbj/rpmdb-72411-FIX.tar.gz Download and install by doing cd /var/lib mv rpm/Packages rpm-Packages-SAVE tar xzvf rpmdb-72411-FIX.tar.gz rpm --rebuilddb -vv and verify by doing rpm -qa
Works ! Thank you very much.