Red Hat Bugzilla – Full Text Bug Listing
|Summary:||error: rpmdb: Thread/process 15537/140084772542400 failed: Thread died in Berkeley DB library|
|Product:||[Fedora] Fedora||Reporter:||Kamil Páral <kparal>|
|Component:||rpm||Assignee:||Panu Matilainen <pmatilai>|
|Status:||CLOSED ERRATA||QA Contact:||Fedora Extras Quality Assurance <extras-qa>|
|Version:||15||CC:||ffesti, jnovy, pmatilai|
|Fixed In Version:||rpm-188.8.131.52-3.fc16||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2011-09-28 21:33:53 EDT||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description Kamil Páral 2011-09-19 05:08:29 EDT
Description of problem: rpm db got corrupted when I hit Ctrl+C while doing query. That should not happen. # rpm -qa xorg* xorg-x11-server-common-1.10.4-1.fc15.x86_64 xorg-x11-drv-intel-2.15.0-5.fc15.x86_64 xorg-x11-drv-sisusb-0.9.4-5.fc15.x86_64 xorg-x11-drv-dummy-0.3.4-5.fc15.x86_64 xorg-x11-drivers-7.4-2.fc15.x86_64 ^C # rpm -qa xorg* error: rpmdb: Thread/process 15537/140084772542400 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db4 - (-30974) error: cannot open Packages database in /var/lib/rpm error: rpmdb: Thread/process 15537/140084772542400 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages database in /var/lib/rpm I managed to rebuild the database, that is not a problem. The problem is that it happened in the first place. Version-Release number of selected component (if applicable): rpm-184.108.40.206-1.fc15.x86_64 How reproducible: I saw it for the first time. But I was then trying it again (just run rpm -qa and hit Ctrl+C, and again and again) and in about 10 attempts I managed to break the database again. And in another 10-15 attempts broke it for the third time. So definitely reproducible in one has some patience and luck. I can upload my whole /var/lib/rpm directory if you want, I backed it up in the broken state.
Comment 1 Panu Matilainen 2011-09-19 05:54:17 EDT
Ok, easily reproduced - this is (mostly) specific to the unlucky rpm 4.9.1* versions: a fix for another db-related issue exposes an old flaw in the signal handling into direct sunlight, requiring another fix that is in HEAD but got left out of 4.9.1*. Will fix, thanks for reporting this.
Comment 2 Panu Matilainen 2011-09-19 05:58:31 EDT
Oh and btw, despite the scary looking message, it's a relatively harmless error in this context (read-only query). It not database corruption and doesn't need full db rebuild, 'rm -f /var/lib/rpm/__db*' is sufficient.
Comment 3 Fedora Update System 2011-09-19 06:47:41 EDT
rpm-220.127.116.11-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/rpm-18.104.22.168-2.fc15
Comment 4 Fedora Update System 2011-09-19 06:49:06 EDT
rpm-22.214.171.124-3.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/rpm-126.96.36.199-3.fc16
Comment 5 Fedora Update System 2011-09-19 14:29:16 EDT
Package rpm-188.8.131.52-3.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rpm-184.108.40.206-3.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/rpm-220.127.116.11-3.fc16 then log in and leave karma (feedback).
Comment 6 Fedora Update System 2011-09-28 21:33:46 EDT
rpm-18.104.22.168-2.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
Comment 7 Fedora Update System 2011-09-30 15:05:05 EDT
rpm-22.214.171.124-3.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.