Debian bug report logs - #1496
dpkg returns to dselect on SIGSTOP

Package: (base); Reported by: Kenny MacDonald <kenny@mail.glg.ed.ac.uk>; 34 days old.
Bug reassigned from package `dpkg' to `(base)'. Request was from Ian Jackson <ian@chiark.chu.cam.ac.uk> to debian-bugs-request@pixar.com. Full text available.

Message received at debian-bugs:


From chiark.chu.cam.ac.uk!ian Sat Oct 28 19:36:07 1995
Return-Path: <ian@chiark.chu.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0t9NbS-0003btC; Sat, 28 Oct 95 19:36 PDT
Received: from artemis.chu.cam.ac.uk by pixar.com with SMTP id AA12330
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sat, 28 Oct 1995 19:35:38 -0700
Received: from chiark.chu.cam.ac.uk by artemis.chu.cam.ac.uk with smtp
	(Smail3.1.29.1 #33) id m0t9NbO-0007uQC; Sun, 29 Oct 95 02:36 GMT
Received: by chiark.chu.cam.ac.uk
	id m0t9NbK-0002bdC
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Sun, 29 Oct 95 02:35 GMT
Message-Id: <m0t9NbK-0002bdC@chiark.chu.cam.ac.uk>
Date: Sun, 29 Oct 95 02:35 GMT
From: Ian Jackson <ian@chiark.chu.cam.ac.uk>
To: debian-bugs@pixar.com
Subject: Re: Bug#1496: dpkg returns to dselect on SIGSTOP 
In-Reply-To: <23276931@toto.iv>

Some time ago I asked:
> Ian M.: please arrange for the environment variable "DPKG_NO_TSTP" to
> be set to some non-empty value (like "yes") when dselect is invoked in
> this way.  This will cause dpkg to invoke "$SHELL -i" instead (or "sh
> -i" if SHELL isn't set).
> 
> This feature will be in 0.93.79.
> 
> Of course, any conffiles prompts at this stage reflect bugs in the
> base disks.

I'm going to reassign this bug to the base package.  Bruce: if this
feature is now used (and if there are no conffiles prompts), could you
close it ?

Thanks,
Ian.

Acknowledgement sent to Ian Jackson <ian@chiark.chu.cam.ac.uk>:
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1496; Package dpkg. Full text available.

Message received at debian-bugs:


From cus.cam.ac.uk!iwj10 Thu Sep 28 19:03:41 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0syUnc-000GYsC; Thu, 28 Sep 95 19:03 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA05453
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Thu, 28 Sep 1995 19:03:22 -0700
Received: by bootes.cus.cam.ac.uk 
	(Smail-3.1.29.0 #36) id m0syUnO-000BzrC; Fri, 29 Sep 95 03:03 BST
Received: by chiark
	id <m0syUjE-0002YOZ@chiark.al.cl.cam.ac.uk>
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Fri, 29 Sep 95 02:59 BST
Message-Id: <m0syUjE-0002YOZ@chiark.al.cl.cam.ac.uk>
Date: Fri, 29 Sep 95 02:59 BST
From: Ian Jackson <iwj10@cus.cam.ac.uk>
To: debian-bugs@pixar.com
Subject: Re: Bug#1496: dpkg returns to dselect on SIGSTOP 

Ian Murdock writes ("Bug#1496: dpkg returns to dselect on SIGSTOP"):
>    Date: Thu, 28 Sep 95 20:28 BST
>    From: Ian Jackson <iwj10@cus.cam.ac.uk>
> 
>    > I was using dselect for the first time (for real), and it is very,
>    > very nice.  However, while it was upgrading my bash.deb, it stopped to
>    > query about the confile '/etc/profile'.  Fair enough, it was
>    > different.  I chose the 'Z' (?) option to suspend and investigate for
>    > myself.  dpkg was then stopped, but instead of starting a shell, it
>    > returned to the dselect menu, after which I couldn't do anything, as
>    > dpkg was locked.
> 
>    I had a bug report like this before.  Can you reproduce it ?  If you
>    have two .deb files which have different versions of a conffile in it
>    you can keep getting dpkg to prompt by editing the conffile once and
>    then never answering `y' as you install them alternately.
> 
> Were you doing this in the dselect automatically started after
> installing the base system?  In this case, dselect is started from a
> shell script (namely, /root/.bash_profile).  Could this be the
> problem?

Aaah, the light dawns.  Ooops.

Ian M.: please arrange for the environment variable "DPKG_NO_TSTP" to
be set to some non-empty value (like "yes") when dselect is invoked in
this way.  This will cause dpkg to invoke "$SHELL -i" instead (or "sh
-i" if SHELL isn't set).

This feature will be in 0.93.79.

Of course, any conffiles prompts at this stage reflect bugs in the
base disks.

Ian.

Acknowledgement sent to Ian Jackson <iwj10@cus.cam.ac.uk>:
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1496; Package dpkg. Full text available.

Message received at debian-bugs:


From pixar.com!bruce Thu Sep 28 16:27:11 1995
Return-Path: <bruce@pixar.com>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0sySMB-000FUpC; Thu, 28 Sep 95 16:27 PDT
Received: from mongo.pixar.com by pixar.com with SMTP id AA27605
  (5.67b/IDA-1.5 for bruce@mongo.pixar.com); Thu, 28 Sep 1995 16:26:54 -0700
Received: by mongo.pixar.com (Smail3.1.28.1 #15)
	id m0sySL5-000FHYC; Thu, 28 Sep 95 16:26 PDT
Message-Id: <m0sySL5-000FHYC@mongo.pixar.com>
X-Mailer: exmh version 1.6.2 7/18/95
To: Ian Murdock <imurdock@debian.org>, debian-bugs@Pixar.com
Cc: bruce@Pixar.com, iwj10@cus.cam.ac.uk
Subject: Re: Bug#1496: dpkg returns to dselect on SIGSTOP 
In-Reply-To: Your message of "Thu, 28 Sep 1995 17:23:00 PST."
             <m0syRMo-000014C@imagine.imaginit.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 28 Sep 1995 16:26:03 -0700
From: Bruce Perens <bruce@Pixar.com>


imurdock@debian.org said:
> Were you doing this in the dselect automatically started after 
> installing the base system?  In this case, dselect is started from a 
> shell script (namely, /root/.bash_profile).  Could this be the 
> problem? 

Does dpkg attempt to suspend itself rather than fork off a shell? That would
certainly break in this case. Probably we need a flag to dpkg/dselect to
change this behavior.

	Bruce

--
-- Attention Radio Amateurs: For information on "Linux for Hams",
-- read the WWW page http://www.hams.com/LinuxForHams, 
-- or e-mail the word "help" to info@hams.com


Acknowledgement sent to Bruce Perens <bruce@Pixar.com>:
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1496; Package dpkg. Full text available.

Message received at debian-bugs:


From debian.org!imurdock Thu Sep 28 15:19:27 1995
Return-Path: <imurdock@debian.org>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0syRIc-000Gd9C; Thu, 28 Sep 95 15:19 PDT
Received: from imagine.imaginit.com by pixar.com with SMTP id AA24542
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Thu, 28 Sep 1995 15:19:06 -0700
Received: by imagine.imaginit.com
	id <m0syRMo-000014C@imagine.imaginit.com>
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Thu, 28 Sep 95 17:23 EST
Message-Id: <m0syRMo-000014C@imagine.imaginit.com>
Date: Thu, 28 Sep 95 17:23 EST
From: Ian Murdock <imurdock@debian.org>
To: debian-bugs@pixar.com
In-Reply-To: <m0syOdJ-0002ZJZ@chiark.al.cl.cam.ac.uk> (message from Ian
	Jackson on Thu, 28 Sep 95 20:28 BST)
Subject: Re: Bug#1496: dpkg returns to dselect on SIGSTOP

   Date: Thu, 28 Sep 95 20:28 BST
   From: Ian Jackson <iwj10@cus.cam.ac.uk>

   > I was using dselect for the first time (for real), and it is very,
   > very nice.  However, while it was upgrading my bash.deb, it stopped to
   > query about the confile '/etc/profile'.  Fair enough, it was
   > different.  I chose the 'Z' (?) option to suspend and investigate for
   > myself.  dpkg was then stopped, but instead of starting a shell, it
   > returned to the dselect menu, after which I couldn't do anything, as
   > dpkg was locked.

   I had a bug report like this before.  Can you reproduce it ?  If you
   have two .deb files which have different versions of a conffile in it
   you can keep getting dpkg to prompt by editing the conffile once and
   then never answering `y' as you install them alternately.

Were you doing this in the dselect automatically started after
installing the base system?  In this case, dselect is started from a
shell script (namely, /root/.bash_profile).  Could this be the
problem?

Acknowledgement sent to Ian Murdock <imurdock@debian.org>:
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1496; Package dpkg. Full text available.

Message received at debian-bugs:


From cus.cam.ac.uk!iwj10 Thu Sep 28 12:44:51 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0syOt1-000AwKC; Thu, 28 Sep 95 12:44 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA15631
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Thu, 28 Sep 1995 12:43:46 -0700
Received: by bootes.cus.cam.ac.uk 
	(Smail-3.1.29.0 #36) id m0syOrz-000C0CC; Thu, 28 Sep 95 20:43 BST
Received: by chiark
	id <m0syOdJ-0002ZJZ@chiark.al.cl.cam.ac.uk>
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Thu, 28 Sep 95 20:28 BST
Message-Id: <m0syOdJ-0002ZJZ@chiark.al.cl.cam.ac.uk>
Date: Thu, 28 Sep 95 20:28 BST
From: Ian Jackson <iwj10@cus.cam.ac.uk>
To: debian-bugs@pixar.com
Subject: Re: Bug#1496: dpkg returns to dselect on SIGSTOP

Kenny MacDonald writes ("Bug#1496: dpkg returns to dselect on SIGSTOP"):
> Package: dpkg
> Version: 0.9375-0
> 
> This happened under .75 and I don't know if it is still a problem
> under .77.  Ian, you'll know if you changed anything about this.

No, I haven't.

> I was using dselect for the first time (for real), and it is very,
> very nice.  However, while it was upgrading my bash.deb, it stopped to
> query about the confile '/etc/profile'.  Fair enough, it was
> different.  I chose the 'Z' (?) option to suspend and investigate for
> myself.  dpkg was then stopped, but instead of starting a shell, it
> returned to the dselect menu, after which I couldn't do anything, as
> dpkg was locked.

I had a bug report like this before.  Can you reproduce it ?  If you
have two .deb files which have different versions of a conffile in it
you can keep getting dpkg to prompt by editing the conffile once and
then never answering `y' as you install them alternately.

I can't reproduce the problem on my system.  I've tried it on the
console, in an xterm and on a serial terminal running a getty_ps
(hacked not to set SIGPIPE to SIG_IGN in the login process); I've
tried it with bash and with tcsh.  None of these things have been
helpful.

Is there anything at all odd about your configuration ?  What kernel
version do you have ?  I'm running 1.2.13, but the problem didn't
appear with 1.2.10 either.  What is /bin/sh on your system ?

> I had to quit dselect, manually kill dpkg, find and remove the lock
> file, and then start dselect again.  The good news is that my system
> survived the whole episode intact!  Phew :)

I should hope it survived the episode.  If you find that dselect
and/or dpkg don't recover the system properly when they die or are
killed then that is a bug - though you may need to reinstall some .deb
files to get all the packages in sane and consistent states.

Ian.

Acknowledgement sent to Ian Jackson <iwj10@cus.cam.ac.uk>:
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1496; Package dpkg. Full text available.

Message received at debian-bugs:


From mail.glg.ed.ac.uk!kenny Wed Sep 27 05:26:20 1995
Return-Path: <kenny@mail.glg.ed.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0sxvZ5-000GVUC; Wed, 27 Sep 95 05:26 PDT
Received: from briar.glg.ed.ac.uk by pixar.com with SMTP id AA19458
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Wed, 27 Sep 1995 05:26:01 -0700
Received: from gorse.glg.ed.ac.uk (gorse.glg.ed.ac.uk [129.215.164.10]) by briar.glg.ed.ac.uk (8.6.10/8.6.10) with ESMTP id NAA11070 for <debian-bugs@pixar.com>; Wed, 27 Sep 1995 13:25:42 +0100
Received: (kenny@localhost) by gorse.glg.ed.ac.uk (8.6.10/8.6.10) id NAA27517; Wed, 27 Sep 1995 13:25:39 +0100
Date: Wed, 27 Sep 1995 13:25:39 +0100
Message-Id: <199509271225.NAA27517@gorse.glg.ed.ac.uk>
From: Kenny MacDonald <kenny@mail.glg.ed.ac.uk>
To: debian-bugs@pixar.com
Subject: dpkg returns to dselect on SIGSTOP

Package: dpkg
Version: 0.9375-0

This happened under .75 and I don't know if it is still a problem
under .77.  Ian, you'll know if you changed anything about this.

I was using dselect for the first time (for real), and it is very,
very nice.  However, while it was upgrading my bash.deb, it stopped to
query about the confile '/etc/profile'.  Fair enough, it was
different.  I chose the 'Z' (?) option to suspend and investigate for
myself.  dpkg was then stopped, but instead of starting a shell, it
returned to the dselect menu, after which I couldn't do anything, as
dpkg was locked.

I had to quit dselect, manually kill dpkg, find and remove the lock
file, and then start dselect again.  The good news is that my system
survived the whole episode intact!  Phew :)

Kenny.

Acknowledgement sent to Kenny MacDonald <kenny@mail.glg.ed.ac.uk>:
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#1496; Package dpkg. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov