Red Hat Bugzilla – Bug 44560
rpm dumps core when using -qa, -Va, --rebuilddb
Last modified: 2007-04-18 12:33:40 EDT
Description of Problem:
rpm dumps core when I try to query all packages or verify all packages or
rebuild the rpm database.
Steps to Reproduce:
I can do single query, install packages, etc. I think I
know how I did screw up ... Some packages where requiring
different version of SDL. I screwed up when I tried to relocate
the older version under /opt. Instead of installing under the
directory structure of /opt ( which is a symlink to /usr/local )
it wrote a large file over /opt ( opt was now a file ).
In the database, rpm -ql SDL was reporting the files that belonged
to the SDL-1.2.x pacakage and /opt which should have been part of
the older SDL package.
I then proceeded to remove the SDL packages. I can't guarantee
that this process did not involve to remove manually /opt.
This is a db1 broken chain. Fix was to do rpm --rebuilddb with
very recent rpm-4.0.3 using the configuration in /etc/rpm/macros
and then mailing off /var/lib/rpm/packages.rpm. This also could
have been done in two fell swoops using rpm-4.0.3 invoked as
# Rebuild db1 packages.rpm to db3 Packages, repairing damage
rpm --rebuilddb --dbapi 1 --define '%_dbi_tags Packages' -vv
# Regenerate the inverted lists in db3 format
rpm --rebuilddb -vv