Red Hat Bugzilla – Bug 71337
rpm -qa segfaults on fixed Packages
Last modified: 2008-05-01 11:38:03 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Description of problem:
rpm -qa segfaults after displaying a few entries.
The Packages file got corrupted after installing perl v5.6.1 (it would not pass
db_verify), and rpm -qa would crash. I used db_dump Packages-ORIG | db_load
Packages in /var/lib/rpm. With the new Packages file, db_verify does not
complain anymore, but rpm still segfaults. rpm --rebuilddb exhibits the same
Among the displayed entries, one can see perl 5.6.0 which has been replaced
with perl 561 on the system. The rpm db is out of sync.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Move Packages to /var/lib/rpm
2. run rpm -qa
Actual Results: Segfault without any trace
Expected Results: rpm -qa should have displayed the installed packages.
this is stock rpm v4.0.3.
Created attachment 70024 [details]
Packages from /var/lib/rpm
Can you give me a URL to the tar ball? rpm databases are too
bug for bugzilla attachments.
Instance #32 was bad, deleted.
There's a copy of your repaired Packages at
Download, and install by doing (as root)
mv rpm/Packages rpm/Packages-ORIG
tar xzvf rpmdb-71337-FIX.tar.gz
rpm --rebuilddb -vv
Verify the fix by doing rpm -qa.