I've been running into problems when trying to rebuild the rpm database on my system after KPackageKit fails. I've tried the RPM database recovery to repair the database and when I get to the last step to rebuild the database, rpm -v --rebuilddb a segfault is returned.
I currently have rpm 4,7,1 installed on fedora 11.
In the kernel the following is reported:
2009-09-19 08:57:49 localhost kernel rpm[8990] general protection ip:364f91c8fe sp:7fffdddeb010 error:0 in libdb-4.7.so[364f800000+16d000]
In my latest rpmpkgs file the following is listed:
error: cannot open Packages database in /var/lib/rpm
error: cannot open Packages database in /var/lib/rpm
error: cannot open Packages index using db3 - (-30974)
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: Thread/process 3167/140619021432560 failed: Thread died in Berkeley DB library
rpmdb: Thread/process 3167/140619021432560 failed: Thread died in Berkeley DB library
In addition I'm attaching a backup of my rpm database, and the output from rpm -vv --rebuilddb.