Bug#396835: tetex-bin postinst take unlimited amount of time and ram (kpsewhich took 600M and 14h)
Dnia piątek, 3 listopada 2006 11:47, Frank Küster napisał:
> Dzien dobry,
> thanks for reporting. This might be the same as #315762.
> Marcin Juszkiewicz <email@example.com> wrote:
> > Package: tetex-bin
> > Version: 3.0-23
> > Severity: important
> > I want to install tetex to generate some documentation. But on this
> > system it is stuck in postinst - looking at top it looks like
> > kpsewhich is a problem - it took over 600M of RAM (1.2G installed) and
> > when I left it for whole night it did not finished - I Ctrl-C it and
> > will try to remove tetex* from system.
> If that happens again, please send the output of "ps axf". One thing is
> different to the older bug, though: Back then, it wasn't possible to
> stop it with Ctrl-C.
12:29 root@work:hrw# time LC_ALL=C apt-get install tetex-extra
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
dvipng chktex lacheck rubber sam2p
tetex-doc perl-tk libxml-parser-perl latex-beamer latex-xcolor lmodern pgf preview-latex-style
The following NEW packages will be installed:
tetex-base tetex-bin tetex-extra
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/36.8MB of archives.
After unpacking 130MB of additional disk space will be used.
Do you want to continue [Y/n]?
Selecting previously deselected package tetex-base.
(Reading database ... 77493 files and directories currently installed.)
Unpacking tetex-base (from .../tetex-base_3.0.dfsg.3-1_all.deb) ...
Selecting previously deselected package tetex-bin.
Unpacking tetex-bin (from .../tetex-bin_3.0-23_i386.deb) ...
Selecting previously deselected package tetex-extra.
Unpacking tetex-extra (from .../tetex-extra_3.0.dfsg.3-1_all.deb) ...
Setting up tetex-base (3.0.dfsg.3-1) ...
Creating config file /etc/texdoctk/texdocrc with new version
+ Stopped LC_ALL=C apt-get install tetex-extra
ps afx output taken when it was not stopped (cut to related things):
13780 ? Ss 0:01 kdeinit Running...
13836 ? S 3:46 \_ konsole [kdeinit]
13838 pts/1 Ss 0:00 | \_ /bin/bash
30006 pts/11 S 0:00 | | \_ bash
11472 pts/11 S+ 0:00 | | \_ apt-get install tetex-extra
12062 pts/11 S+ 0:00 | | \_ /usr/bin/dpkg --status-fd 18 --configure tetex-base tetex-bin tetex-extra
12063 pts/11 S+ 0:00 | | \_ /bin/sh -e /var/lib/dpkg/info/tetex-base.postinst configure
13337 pts/11 R+ 7:06 | | \_ kpsewhich --format=web2c files fmtutil.cnf
30027 pts/11 S 0:00 /bin/sh -e /var/lib/dpkg/info/tetex-bin.postinst configure
30211 pts/11 S 0:00 \_ /bin/sh /usr/bin/fmtutil --all
6929 pts/11 S 0:00 \_ /bin/sh /usr/bin/fmtutil --all
6930 pts/11 S 0:00 \_ /bin/sh /usr/bin/fmtutil --all
6931 pts/11 R 11:09 \_ kpsewhich --var-value=TEXMFMAIN
also top output:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6931 root 18 0 490m 489m 420 D 26.6 38.7 11:51.89 kpsewhich
13337 root 25 0 405m 402m 420 T 0.0 31.8 7:15.64 kpsewhich
> Also, before you kill it again, please check whether there are any
> directories in /tmp that look like created by tetex's postinst, and just
> copy ("cp -a") the most recent one outside /tmp, so that it is
no such in /tmp at all
# TeXdoc defaults configuration file
# Uncomment and edit settings according to your system
# These defaults will be overridden by entries in users' ~/.texdocrc files,
# which can be generated from copies of this file
# This file only:
# If you don't have all of the listed programs, install them or leave the
# item empty, but *do not* delete/uncomment it. The same holds for options you
# want/need to leave empty.
# root of doc directory (from $TEXMFMAIN and $TEXMFDIST)
# root of local doc directory (from $TEXMFLOCAL)
# can be left empty if equal to TEXDOCPATH or if $TEXMFLOCAL is undefined
# general viewer behaviour (y or yes to make active)
# button colours: default and active back-/foreground
# names and RGB values are both allowed; use the form #xxxxxx for RGB
TDCOLORS=grey black LightGrey black
# DVI settings
# PostScript handling
# PDF handling
# HTML handling
HTML_VIEWER=x-terminal-emulator -e see
# HTMLPS_REDIR must be on, if the html->ps converter normally writes its output
# to stdout instead of a file (e.g. as html2ps) (y or yes to make active)
# Plain text handling
# TDK_OWN is texdoctk's own text file viewer
# TXTPS_REDIR must be on, if the txt->ps converter normally writes its output
# to stdout instead of a file (e.g. as a2ps) (y or yes to make active)
# end of config