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

Bug#183845: marked as done (tetex-bin: texconfig hangs forever in postinst with defunct child)



Your message dated Wed, 07 Apr 2004 21:24:19 +0200
with message-id <87y8p7wpzw.fsf@alhambra.bioz.unibas.ch>
and subject line tetex-bin: texconfig hangs forever in postinst with defunct child
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Mar 2003 17:55:15 +0000
>From ben@bgpc.dymaxion.ca Fri Mar 07 11:55:13 2003
Return-path: <ben@bgpc.dymaxion.ca>
Received: from nt1-exchange.dymaxion.ca (dymaxion.ca) [24.222.19.7] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18rM3t-0008Dq-00; Fri, 07 Mar 2003 11:55:13 -0600
Received: from bgpc.dymaxion.ca ([24.222.19.4]) by dymaxion.ca with Microsoft SMTPSVC(5.0.2195.5329);
	 Fri, 7 Mar 2003 13:54:41 -0400
Received: from ben by bgpc.dymaxion.ca with local (Exim 3.36 #1 (Debian))
	id 18rM3N-0003hJ-00; Fri, 07 Mar 2003 13:54:41 -0400
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Ben Armstrong <ben@bgpc.dymaxion.ca>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tetex-bin: texconfig hangs forever in postinst with defunct child
X-Mailer: reportbug 2.10
Date: Fri, 07 Mar 2003 13:54:40 -0400
Message-Id: <E18rM3N-0003hJ-00@bgpc.dymaxion.ca>
X-OriginalArrivalTime: 07 Mar 2003 17:54:41.0978 (UTC) FILETIME=[A14601A0:01C2E4D2]
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-0.3 required=4.0
	tests=HAS_PACKAGE,LINES_OF_YELLING,SPAM_PHRASE_01_02
	version=2.44
X-Spam-Level: 

Package: tetex-bin
Version: 2.0.2-1
Severity: normal


Similar to the now-closed #182125, the postinst hangs forever when
installing tetex-bin.  After poking at it for a while I finally
determined the problem relates to me having typed "su" instead of "su -"
to do the install.

Here is the relevant install dialog:

Preparing to replace libkpathsea3 2.0.1-2 (using .../libkpathsea3_2.0.2-1_i386.d
eb) ...
Unpacking replacement libkpathsea3 ...
Preparing to replace tetex-bin 2.0.1-2 (using .../tetex-bin_2.0.2-1_i386.deb) ..
.
Unpacking replacement tetex-bin ...
Preparing to replace tetex-base 2.0.1-3 (using .../tetex-base_2.0.2-1_all.deb) .
..
Unpacking replacement tetex-base ...
Preparing to replace tetex-doc 2.0.1-3 (using .../tetex-doc_2.0.2-1_all.deb) ...
Unpacking replacement tetex-doc ...
Preparing to replace tetex-extra 2.0.1-3 (using .../tetex-extra_2.0.2-1_all.deb)
 ...
Unpacking replacement tetex-extra ...

...

Setting up tetex-base (2.0.2-1) ...
Installing new version of config file /etc/texmf/dvips/mt-yy.map ...
Installing new version of config file /etc/texmf/dvips/mt-plus.map ...

Setting up tetex-bin (2.0.2-1) ...
Installing new version of config file /etc/texmf/texmf.d/95NonPath.cnf ...
Regenerating /etc/texmf/texmf.cnf ... done
Regenerating /etc/texmf/fmtutil.cnf ... done
Regenerating /etc/texmf/updmap.cfg ... done
Running initex. This may take some time. ...
dpkg: error processing tetex-bin (--configure):
 subprocess post-installation script killed by signal (Interrupt)
Setting up tetex-doc (2.0.2-1) ...
mktexlsr: Updating /usr/local/lib/texmf/ls-R...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Updating /var/cache/fonts/ls-R...
mktexlsr: Done.


The "killed by signal (Interrupt)" above is when I finally ^C'd the
postinst after realizing it was hung.

After killing it off, I reproduced the problem again with "dpkg
--configure --pending".  This is the process tree for configure at the time of the hang:

12909 pts/2    S      0:02  |       \_ dpkg --configure --pending
12910 pts/2    S      0:01  |           \_ /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/tetex-bin.postinst configure 2.0.1-2
12916 pts/2    S      0:00  |               \_ /bin/sh /var/lib/dpkg/info/tetex-bin.postinst configure 2.0.1-2
13022 pts/2    S      0:00  |                   \_ /bin/sh /usr/bin/texconfig init
13032 pts/2    Z      0:00  |                       \_ [texconfig] <defunct>

lsof tells me:

COMMAND     PID     USER   FD   TYPE     DEVICE     SIZE      NODE NAME
tetex-bin 12916     root    1w   REG        3,7      994        29 /tmp/texkPaeHl
texconfig 13022     root    1w   REG        3,7      994        29 /tmp/texkPaeHl

The contents of that file are:

--- start: /tmp/texkPaeHl ---

texconfig has found the following environment variables set:

 
AFMFONTS = $
AFMFONTS
 GFFONTS
GLYPHFONTS = 
GLYPHFONTS
 MPMEMS
MPPOOL = 
MPPOOL
 OVPFONTS
PKFONTS = 
PKFONTS
 TEXFONTMAPS
TEXFONTS = 
TEXFONTS
 TEXMFINI
TEXPICTS = 
TEXPICTS
 VFFONTS
XDVIFONTS = 
XDVIFONTS
 XDVIVFS
 = 


This path prohibits a default expansion. as it contains no : at either
end, nor :: somewhere in the middle.  Please make sure, that these paths
are ok, and otherwise change or unset them.  If you continue with wrong
values for the above variables, texconfig might run into trouble when
locating files on the disk.

Note that you can refer to the default path by giving an "empty" path
component (i.e. a colon in front or in the end, or a doubled colon
somewhere in the middle).

If you set TEXINPUTS, e.g. to :~/TeX/macros, (La)TeX will search along
the default path and then in ~/TeX/macros.

For more information, see the Kpathsea and the teTeX manual.

Press RETURN to continue (or Control-C to abort)...

--- end: /tmp/texkPaeHl ---

This led me to wonder if my environment had somehow gotten munged.  It
was then that it dawned on me I had typed "su" instead of "su -".

While it could be argued that everyone should always install as "su -"
anyway, it is an innocent enough mistake to make, and if it happens it
shouldn't result in the postinst hanging like this.  I think a bit of
thought needs to go into ensuring the postinst doesn't hang forever
waiting for user input that it will never get (e.g. redirect input?)

Thanks,
Ben Armstrong <synrg@debian.org>

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux bgpc 2.4.20 #1 Fri Feb 21 21:53:39 AST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages tetex-bin depends on:
ii  debconf                    1.2.31        Debian configuration management sy
ii  debianutils                2.4           Miscellaneous utilities specific t
ii  dpkg                       1.10.9        Package maintenance system for Deb
ii  ed                         0.2-19        The classic unix line editor
ii  libc6                      2.3.1-14      GNU C Library: Shared libraries an
ii  libgcc1                    1:3.2.3-0pre3 GCC support library
ii  libkpathsea3               2.0.2-1       shared libkpathsea for teTeX
ii  libpng12-0                 1.2.5-10      PNG library - runtime
ii  libstdc++5                 1:3.2.3-0pre3 The GNU Standard C++ Library v3
ii  libwww0                    5.4.0-5       The W3C WWW library
ii  libxaw7                    4.2.1-6       X Athena widget set library
ii  perl                       5.8.0-17      Larry Wall's Practical Extraction 
ii  t1lib1                     1.3.1-1       Type 1 font rasterizer library - r
ii  tetex-base                 2.0.2-1       basic teTeX library files
ii  xlibs                      4.2.1-6       X Window System client libraries
ii  zlib1g                     1:1.1.4-10    compression library - runtime

-- debconf information:
* tetex-bin/hyphen: 
  tetex-bin/oldcfg: true
* tetex-bin/cnf_name: 
* tetex-bin/use_debconf: true
* tetex-bin/groupname: users
  tetex-bin/userperm: false
  tetex-bin/groupperm: true
* tetex-bin/lsr-perms: true


---------------------------------------
Received: (at 183845-done) by bugs.debian.org; 7 Apr 2004 20:38:55 +0000
>From frank@kuesterei.ch Wed Apr 07 13:38:55 2004
Return-path: <frank@kuesterei.ch>
Received: from moutng.kundenserver.de [212.227.126.171] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BBJp1-0007uE-00; Wed, 07 Apr 2004 13:38:55 -0700
Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 1BBJp0-0005H4-00; Wed, 07 Apr 2004 22:38:54 +0200
Received: from [82.194.101.46] (helo=alhambra.bioz.unibas.ch)
	by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)
	id 1BBJoz-0001Hx-00; Wed, 07 Apr 2004 22:38:54 +0200
Received: from localhost ([127.0.0.1] helo=alhambra.bioz.unibas.ch)
	by alhambra.bioz.unibas.ch with esmtp (Exim 3.35 #1 (Debian))
	id 1BBIeq-00024A-00; Wed, 07 Apr 2004 21:24:20 +0200
To: Ben Armstrong <ben@bgpc.dymaxion.ca>
Cc: 183845-done@bugs.debian.org
Subject: Re: tetex-bin: texconfig hangs forever in postinst with defunct
 child
From: frank@kuesterei.ch (=?iso-8859-1?q?Frank_K=FCster?=)
In-Reply-To: <E18rM3N-0003hJ-00@bgpc.dymaxion.ca> (Ben Armstrong's message
 of "Fri, 07 Mar 2003 13:54:40 -0400")
References: <E18rM3N-0003hJ-00@bgpc.dymaxion.ca>
Date: Wed, 07 Apr 2004 21:24:19 +0200
Message-ID: <87y8p7wpzw.fsf@alhambra.bioz.unibas.ch>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:3fc7da83a58b7314ee3070631872032d
Delivered-To: 183845-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Scores: 1

Ben Armstrong <ben@bgpc.dymaxion.ca> wrote:

> Package: tetex-bin
> Version: 2.0.2-1
> Severity: normal
>
>
> Similar to the now-closed #182125, the postinst hangs forever when
> installing tetex-bin.  After poking at it for a while I finally
> determined the problem relates to me having typed "su" instead of "su -"
> to do the install.
[...]
> Press RETURN to continue (or Control-C to abort)...
>
> --- end: /tmp/texkPaeHl ---
>
> This led me to wonder if my environment had somehow gotten munged.  It
> was then that it dawned on me I had typed "su" instead of "su -".
>
> While it could be argued that everyone should always install as "su -"
> anyway, it is an innocent enough mistake to make, and if it happens it
> shouldn't result in the postinst hanging like this.  I think a bit of
> thought needs to go into ensuring the postinst doesn't hang forever
> waiting for user input that it will never get (e.g. redirect input?)

Since 2.0.2-11 we don't call texconfig any more in postinst - it's
handling of user interaction caused also other problems. Therefore this
bug is fixed (Indeed there was a "read ..." without a controlling
terminal)=20

Regards, Frank
--=20
Frank K=FCster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie



Reply to: