rare, but serious deadlock in rpm

Bug #910731 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
Invalid
Medium
Jeff Johnson
Mandriva
Incomplete
Medium

Bug Description

this is hard to reproduce, but it can happen, if you kill (have to kill) a
running rpm instance. Since those instances of rpm that "hang" can only be
killed by SIGKILL, the process cannot guarantee a fault free rpm-db.

The error lies in the fact, that on startup of rpm it does some mmap's of __db*
and if one of them is locked, it stays there forever - there is no simple tool
to say: clear your lock.
I had to edit __db.002 and set the value at adress 0xf18 to 0 to get rpm
running again.

Since this has happend the 3 time in different situations, I'd suggest another
soulution than just trust this byte if the rpm-db is locked.
[reply] [-] Comment 1

Tags: mandriva rpmdb
Jeff Johnson (n3npq)
tags: added: mandriva rpmdb
Changed in mandriva:
importance: Unknown → Medium
status: Unknown → Incomplete
devzero2000 (pinto-elia)
Changed in rpm:
importance: Undecided → Medium
Revision history for this message
Jeff Johnson (n3npq) wrote :

RPM registers all locker processes/threads and checks/clears
stale locks on next invocation.

Changed in rpm:
assignee: nobody → Jeff Johnson (n3npq)
status: New → Incomplete
status: Incomplete → Invalid
milestone: none → 5.1.10
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.