Re: rpm-4.1-1.0 hanging when installing/upgrading apps
Michael Schwendt <[email protected]>
| Newsgroups | gmane.linux.redhat.release.limbo |
|---|---|
| Message-ID | <[email protected]> |
On 20 Sep 2002 18:38:07 +0100, Mark C wrote:
> This has been reported before in bugzilla
>
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=68056
>
> but it has been closed, and from what I can work out there was not
> mention of a fix.
No, because for RPM 4.1 there won't be a fix it seems. Notice
Jeff Johnson's early comments:
Try doing
rm -rf /var/lib/rpm/__db*
That's the workaround until there's a useful
pthread_mutexattr_setpshared() (ideal) or I get a chance to factor
db open permissions onto a setgid helper.
This is a known problem. The current implementation
is adequate, but not perfect.
The __db files are used to share locks.
A ^C will leave the file around, but the next execution
as root, or next reboot, removes the __db files.
Depending on the exact moment when ^C is hit,
there may or may not be a lock held that another
process may stumble upon.
The problem that cannot be solved without a
setgid helper is, if root does ^C, then non-root
cannot remove the file, and can hang on dead locks.
The setgid helper will be added, but not to rpm-4.1.
--