Request 254 was acted upon.
_________________________________________________________________________

         URL: https://rt.openpkg.org/id/254
      Ticket: [OpenPKG #254]
     Subject: [bootstrap] file locking problems
  Requestors: [EMAIL PROTECTED]
       Queue: openpkg
       Owner: Nobody
      Status: new
 Transaction: Ticket created by [EMAIL PROTECTED]
        Time: Sun Sep 14 06:24:58 2003
_________________________________________________________________________

Hi,

I have noticed some occasional fatal errors in the 'rpm' program since
the upgrade to RPM 4.2.1.

Specifically, when 'rpm' is executed as root in a Sparc/Solaris9
environment (not to imply that this doesn't happen elsewhere), some file
locking performed by the Berkeley libraries seems to fail.

The trace listed below demonstrates one typical scenario. The package I
attempted to install does not have any pre- or post-triggers, and its
files all have the permissions and ownership specified by
'%{l_files_std}'. That is to say, I don't think that this particular
package causes the failure.

At least once the state of the system resulting from the error trace
below has included a corrupted RPM database. I did some system call
tracing in that environment, and found the DB library code to be waiting
infinitely on a mutex call of some sort.

--matt

> rpm -Uvh apt-0.5.5cnc6-20030908.sparc64-solaris9-cw.rpm
> Preparing...                ####################################
[100%]
>   1:apt                    ls
/cw/etc/apt/                              (  1%)
> ########################################### [100%]
> rpmdb: Locker does not exist
> error: db4 error(22) from db->cursor: Invalid argument
> rpmdb: Write attempted on read-only cursor
> error: db4 error(1) from dbcursor->c_put: Not owner
> rpmdb: Closing already-closed cursor
> error: db4 error(22) from dbcursor->c_close: Invalid argument
> error: error(1) allocating new package instance
> error: db4 error(22) from db->close: Invalid argument
> error: db4 error(22) from db->close: Invalid argument
> error: db4 error(22) from db->close: Invalid argument



______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Bug Database Interface                           www.openpkg.org/bugdb
Bug Database List                            [EMAIL PROTECTED]

Reply via email to