Red Hat Bugzilla – Bug 64008
rpm operations segfault; corrupt database
Last modified: 2008-05-01 11:38:02 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (WinNT; U)
Description of problem:
Shortly after upgrading from RH 5.2 to RH 72 (from the vanilla CDs), my RPM database became damaged.
I am not sure of the exact sequence, but the entry for 'gnuchess' appears to be the culprit. I tried to
'rpm -e gnuchess' and started getting complaints about database problems and __db.00 files.
An 'rpm -qa' lists all packages up to and including gnuchess, but then segfaults. It appears that
attempts to manipulate packages that appear after gnuchess will fail, but I cannot state that
I tried rebuilding the database with 'rpm --rebuillddb' and got a segfault.
I tried exporting and importing the database through dumpdb_031 and
dbimport_031; no errors were encountered, but the database appears
to still be corrupt.
This problem is causing up2date to fail, and there are a lot of updates I
want to apply. :-)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rm -f /var/lib/rpm/__db.00
2. rpm -qa OR rpm --rebuilddb
Actual Results: # rpm -qa
# rpm --rebuilddb
Both leave /var/lib/rpm/__db.00? droppings.
Expected Results: I should have gotten a complete and failure-free list of all installed packages.
I should have gotten a failure-free rebuilt package database.
I am classifying this as a security bug because the database corruption
is preventing me from applying security errata.
A pointer (i.e. URL, attachments won't work) of
a tarball of your database please:
tar czvf /tmp/rpmdb-64008.tar.gz rpm
Online at <URL:http://Source-Zone.Org/rpmdb-64008.tar.gz>.
Instance #174 (dip IIRC) was damaged. I've deleted
that instance, and a fixed copy of your rpm/Packages is at
Download and install by doing
mv rpm/Packages rpm/Packages-ORIG
tar xzvf rpmdb-64008-FIX.tar.gz
rpm --rebuilddb -vv