Possible race condition in rpmtsOpenDB [NEEDINFO]
Bug #651431 reported by
Jeff Johnson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
Opinion
|
Low
|
Jeff Johnson | ||
Fedora |
Won't Fix
|
High
|
Bug Description
tracker
tags: | added: rpmdb |
Changed in fedora: | |
importance: | Unknown → High |
status: | Unknown → Won't Fix |
To post a comment you must log in.
Description of problem:
When running the commands:
rm -f /var/lib/ rpm/__db. *;
rpm -q kernel-debuginfo > /dev/null &
rpm -q kernel-debuginfo > /dev/null &
The following error message will occasionally be displayed:
rpmdb: Program version 4.3 doesn't match environment version MISMATCH:
error: db4 error(-30974) from dbenv->open: DB_VERSION_
Database environment version mismatch
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm
or
error: db4 error(2) from dbenv->open: No such file or directory
error: cannot open Packages index using db3 - No such file or
directory (2)
error: cannot open Packages database in /var/lib/rpm
Since the error "cannot open packages database in %s" comes from
rpmtsOpenDB, maybe the db lock race mentioned in that function is
being hit?
Version-Release number of selected component (if applicable):
rpm- 4.4.2.3- 7.el5
How reproducible:
2-3 out of 100 iterations of the script above.
Steps to Reproduce:
1. Run
rm -f /var/lib/ rpm/__db. *;
rpm -q kernel-debuginfo > /dev/null &
rpm -q kernel-debuginfo > /dev/null &
2. Rinse, repeat.
Actual results:
Error messages shown above.
Expected results:
No errors.
Additional info:
Only reproducible in the ia64 architecture. Not reproducible on
x86_64.