Debian bug report logs - #967
dselect lock?

Package: dselect; Reported by: jimr@simons-rock.edu; 12 days old.

Message received at debian-bugs:


From cus.cam.ac.uk!iwj10 Sat Jun 10 11:59:22 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0sKVkg-0005z9C; Sat, 10 Jun 95 11:59 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA26606
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sat, 10 Jun 1995 11:57:54 -0700
Received: by bootes.cus.cam.ac.uk 
	(Smail-3.1.29.0 #36) id m0sKVkE-000BzuC; Sat, 10 Jun 95 19:58 BST
Received: by chiark
	id <m0sKQQC-0000XfZ@chiark.al.cl.cam.ac.uk>
	(Debian /\oo/\ Smail3.1.29.1 #29.31); Sat, 10 Jun 95 14:17 BST
Message-Id: <m0sKQQC-0000XfZ@chiark.al.cl.cam.ac.uk>
Date: Sat, 10 Jun 95 14:17 BST
From: iwj10@cus.cam.ac.uk (Ian Jackson)
To: debian-bugs@pixar.com
Subject: Re: Bug#967: dselect lock?

James A. Robinson writes ("Bug#967: dselect lock?"):
> Dselect dumped core on me once when I ran it (I was on an NFS file
> system), but I have not been able to duplicate it.  It might have had
> to dow ith the fact that the available file I posted to debian-bugs
> about before was corrupted.

Oh.  dselect shouldn't ever dump core even if presented with garbage -
if you can persuade (a recent version of) it to do it again please let
me know.

>  In any case, when I re-ran it and choose
> "[L]ist"it complained about being locked.  I removed the two files
> that locked like lock files in /var/lib/dpkg, and it worked fine.  I
> wondering if there is any way to check and see if dselect or dpkg is
> really running, and use that to see if one can wipe the lock file?
> Something like a pid in /var/run?  I don't know if it already does
> something like this.

This is a known problem - it's due to the transition between Perl dpkg
and C dpkg; dselect is written in C and doesn't have the
stale-lock-breaking code.

You can clear the lock `automatically' by using `dpkg --status dpkg'
or some similar thing.

The C version of dpkg will use a different locking scheme which won't
suffer from stale locks.

Ian.

Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson):
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#967; Package dselect. Full text available.

Message received at debian-bugs:


From simons-rock.edu!jimr Thu Jun  8 05:20:29 1995
Return-Path: <jimr@simons-rock.edu>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0sJgZY-0007iFC; Thu, 8 Jun 95 05:20 PDT
Received: from plato.simons-rock.edu by pixar.com with SMTP id AA19264
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Thu, 8 Jun 1995 05:19:00 -0700
Received: from simons-rock.edu by plato.simons-rock.edu with smtp
	(Smail3.1.29.1 #3) id m0sJgZQ-00000zC; Thu, 8 Jun 95 08:20 EDT
Message-Id: <m0sJgZQ-00000zC@plato.simons-rock.edu>
Reply-To: jimr@simons-rock.edu
X-Mailer: MH 6.8.3
To: Debian Bugs <debian-bugs@pixar.com>
Dcc: 
Subject: dselect lock?
Date: Thu, 08 Jun 1995 08:20:20 -0400
From: "James A. Robinson" <jimr@simons-rock.edu>


Package: dselect
Version: 0.93.42

Dselect dumped core on me once when I ran it (I was on an NFS file
system), but I have not been able to duplicate it.  It might have had
to dow ith the fact that the available file I posted to debian-bugs
about before was corrupted.  In any case, when I re-ran it and choose
"[L]ist"it complained about being locked.  I removed the two files
that locked like lock files in /var/lib/dpkg, and it worked fine.  I
wondering if there is any way to check and see if dselect or dpkg is
really running, and use that to see if one can wipe the lock file?
Something like a pid in /var/run?  I don't know if it already does
something like this.


Jim

Acknowledgement sent to jimr@simons-rock.edu:
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#967; Package dselect. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 06:43:02 GMT Wed 21 Jun