Ticket #97 (assigned defect)

Opened 2 years ago

Last modified 2 years ago

Rebuild rpm database causes segfault

Reported by: ldmitruk Assigned to: pmatilai (accepted)
Priority: major Milestone:
Component: rpm Version: RPM Development
Keywords: Cc:

Description

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.

Attachments

rebuildout.txt (228 bytes) - added by ldmitruk on 09/19/09 15:28:53.
Output from rpm -vv --rebuilddb
rpmdb-19092009.tar.gz (42.5 MB) - added by ldmitruk on 09/22/09 22:59:15.
rpm database backup

Change History

09/19/09 15:28:53 changed by ldmitruk

  • attachment rebuildout.txt added.

Output from rpm -vv --rebuilddb

09/19/09 16:04:53 changed by ldmitruk

Unfortunately the backup of the database is too large to attach.

09/22/09 05:40:45 changed by pmatilai

  • status changed from new to assigned.

Please retry, the attachment size limit should be now high enough to permit rpmdb backups. Alternatively if you have some other place where you can put it temporarily that's ok too.

09/22/09 22:59:15 changed by ldmitruk

  • attachment rpmdb-19092009.tar.gz added.

rpm database backup