[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpm-4.2-0.49 broke?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 03 January 2003 12:04 pm, Kevin McConnell wrote:
> --- Tom Cross <tomc cloudnet com> wrote:
> > Just doing some updating to new packages in rawhide,
> > and now I'm
> > thinking rpm is broke big time...  :-(
>
> Did you control-c in the middle of a packages upgrade?

Just for the record, many of the bugzilla entries and posts to various 
lists blame this problem on using ctrl-c or a sig KILL on a running rpm 
process.

That isn't the case at all in many situations. EVERY rpm transaction I've 
issued as root has left the stale lock files in /var/lib/rpm, and rpm 
hangs from time to time for no known reason.

Note that rpm queries run as a normal user do not create the lockfiles. I 
assume this is because users don't have write permission to /var/lib/rpm/

[root paradox root]# rm -f /var/lib/rpm/__db*
[root paradox root]# ls /var/lib/rpm
Basenames     Group       Providename     Requireversion
Conflictname  Installtid  Provideversion  Sha1header
Dirnames      Name        Pubkeys         Sigmd5
Filemd5s      Packages    Requirename     Triggername
[root paradox root]# rpm -q kernel
kernel-2.4.18-18.8.0
kernel-2.4.18-19.8.0
[root paradox root]# ls /var/lib/rpm
Basenames     Group       Providename     Requireversion  __db.001
Conflictname  Installtid  Provideversion  Sha1header      __db.002
Dirnames      Name        Pubkeys         Sigmd5          __db.003
Filemd5s      Packages    Requirename     Triggername
[root paradox root]#

There you go, stale locks from an uninterupted rpm query. The same thing 
happens on a stock Pheobe machine as well as a Psyche machine running 
rpm-4.1-9. The presence of the lock files doesn't seem to be related to 
the hangs. The locks are always there, the hangs occur at random.

- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+FgGDn/07WoAb/SsRAsYKAKCnNSRhKoQi6CC2W6XsSpMmcAE+IQCeKeIW
yxJtIa9yEwajqCVLjj1pPl4=
=p6gf
-----END PGP SIGNATURE-----





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]