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

Bug#396835: tetex-bin postinst take unlimited amount of time and ram (kpsewhich took 600M and 14h)



Dnia środa, 22 listopada 2006 18:43, Frank Küster napisał:
> Marcin Juszkiewicz <debbugs@hrw.one.pl> wrote:

> > On this machine kpsewhich was stat-ing all files in filesystem
>
> Oh, this should not happen.  Maybe some conffile setting is wrong?  Can
> you please send the output of
>
> grep '^TEXMF =' /etc/texmf/texmf.cnf

11:15 hrw@work:hrw$ grep '^TEXMF =' /etc/texmf/texmf.cnf
TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFMAIN,!!$TEXMFDIST}

> grep '^TEXMF =' /etc/texmf/texmf.d/05TeXMF.cnf

11:15 hrw@work:hrw$ grep '^TEXMF =' /etc/texmf/texmf.d/05TeXMF.cnf
TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFMAIN,!!$TEXMFDIST}


> kpsewhich -debug=127 --format='web2c files' fmtutil.cnf > kpsewhich.log

kdebug:fopen(/usr/bin/kpsewhich, r) => 0x804d090
kdebug:fclose(0x804d090) => 0
kdebug:Search path for cnf files (from compile-time paths.h)
kdebug:  = :/usr/share/texmf/web2c:/usr/share/texmf/web2c
kdebug:  before expansion = $TETEXDIR:/usr/share/texmf/web2c:/usr/share/texmf/web2c
kdebug:  application override path = (none)
kdebug:  application config file path = (none)
kdebug:  texmf.cnf path = (none)
kdebug:  compile-time path = $TETEXDIR:/usr/share/texmf/web2c:/usr/share/texmf/web2c
kdebug:  default suffixes = .cnf
kdebug:  other suffixes = (none)
kdebug:  search only with suffix = 0
kdebug:  numeric format value = 8
kdebug:  runtime generation program = (none)
kdebug:  runtime generation command = (none)
kdebug:  program enabled = 0
kdebug:  program enable level = 0
kdebug:start search(file=texmf.cnf, must_exist=1, find_all=1, path=:/usr/share/texmf/web2c:/usr/share/texmf/web2c).
kdebug:kpse_normalize_path () => 0
kdebug:kpse_normalize_path (/usr/share/texmf/web2c) => 1
kdebug:kpse_normalize_path (/usr/share/texmf/web2c) => 1
kdebug:path element /usr/share/texmf/web2c => /usr/share/texmf/web2c/
kdebug:kpse_normalize_path (/usr/share/texmf/web2c/texmf.cnf) => 1
kdebug:kpse_normalize_path (/usr/share/texmf/web2c) => 1
kdebug:kpse_normalize_path (/usr/share/texmf/web2c/texmf.cnf) => 1
kdebug:fopen(/usr/share/texmf/web2c/texmf.cnf, r) => 0x804e070
kdebug:fclose(0x804e070) => 0
kdebug:fopen(/usr/share/texmf/web2c/texmf.cnf, r) => 0x804e070
kdebug:fclose(0x804e070) => 0
kdebug:hash_lookup(TEXMFDBS.kpsewhich) => (nil)
kdebug:hash_lookup(TEXMFDBS) => $TEXMFHOME:$TEXMFSYSVAR:$TEXMFLOCAL:$TEXMFMAIN:$VARTEXFONTS:$TEXMFDIST $TEXMFHOME:$TEXMFSYSVAR:$TEXMFLOCAL:$TEXMFMAIN:$VARTEXFONTS:$TEXMFDIST
kdebug:hash_lookup(TEXMFHOME.kpsewhich) => (nil)
kdebug:hash_lookup(TEXMFHOME) => $HOME/texmf $HOME/texmf
kdebug:hash_lookup(TEXMFSYSVAR.kpsewhich) => (nil)
kdebug:hash_lookup(TEXMFSYSVAR) => /var/lib/texmf /var/lib/texmf
kdebug:hash_lookup(TEXMFLOCAL.kpsewhich) => (nil)
kdebug:hash_lookup(TEXMFLOCAL) => /usr/local/share/texmf /usr/local/share/texmf
kdebug:hash_lookup(TEXMFMAIN.kpsewhich) => (nil)
kdebug:hash_lookup(TEXMFMAIN) => /usr/share/texmf /usr/share/texmf
kdebug:hash_lookup(VARTEXFONTS.kpsewhich) => (nil)
kdebug:hash_lookup(VARTEXFONTS) => /tmp/texfonts /tmp/texfonts
kdebug:hash_lookup(TEXMFDIST.kpsewhich) => (nil)
kdebug:hash_lookup(TEXMFDIST) => /usr/share/texmf-{texlive,tetex} /usr/share/texmf-{texlive,tetex}
kdebug:Search path for ls-R files (from texmf.cnf)
kdebug:  = /home/hrw//texmf:/var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf:/tmp/texfonts:/usr/share/texmf-texlive:/usr/share/texmf-tetex
kdebug:  before expansion = $TEXMFHOME:$TEXMFSYSVAR:$TEXMFLOCAL:$TEXMFMAIN:$VARTEXFONTS:$TEXMFDIST
kdebug:  application override path = (none)
kdebug:  application config file path = (none)
kdebug:  texmf.cnf path = $TEXMFHOME:$TEXMFSYSVAR:$TEXMFLOCAL:$TEXMFMAIN:$VARTEXFONTS:$TEXMFDIST
kdebug:  compile-time path = /usr/share/texmf:/var/spool/texmf
kdebug:  default suffixes = ls-R ls-r
kdebug:  other suffixes = (none)
kdebug:  search only with suffix = 0
kdebug:  numeric format value = 9
kdebug:  runtime generation program = (none)
kdebug:  runtime generation command = (none)
kdebug:  program enabled = 0
kdebug:  program enable level = 0
kdebug:start search(files=[ls-R ls-r], must_exist=1, find_all=1, path=/home/hrw//texmf:/var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf:/tmp/texfonts:/usr/share/texmf-texlive:/usr/share/texmf-tetex).
kdebug:kpse_normalize_path (/home/hrw//texmf) => 1
kdebug:kpse_normalize_path (/home/hrw//texmf) => 1
kdebug:hash_lookup(/home/hrw/IRC) => (nil)
kdebug:dir_links(/home/hrw/IRC) => 4

and here it start to go through filesystem and loops in kernel build due
to symlinks:

kdebug:hash_lookup(/home/hrw/src/linux/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/drivers/infiniband/ulp) => (nil)
kdebug:dir_links(/home/hrw/src/linux/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/debian/linux-image-2.6.19-rc2/lib/modules/2.6.19-rc2/source/drivers/infiniband/ulp) => 5

I probably can run it for weeks and it will still going until OOM will kill it.

> (the last command, of course, won't create any output, but instead a
> file kpsewhich.log
>
> > I switched into 'single', umounted all filesystems and tetex was
> > installed very fast without any problems.

Today update of system forced me to 'single' again.

> But it will probably be slow in processing (La)TeX files once you mount
> them again.  So we better fix the configuration problem - and it
> wouldn't be the first time that it turns out that there's a bug in the
> upgrade logic which caused such a misconfiguration.

Yeah, I had such problem with KDE recently - new installation was broken
(bug already fixed).

-- 





Reply to: