Bug#580223: kpsewhich runs in endlees loop, symlink loop

2010-05-05 Thread Frank Küster
Thomas Lange la...@informatik.uni-koeln.de wrote:

 I think kpsewhich should never search in /sys. Also /proc and other
 directories may be omitted.

Indeed - but I don't see why it would.  There must be some strange
configuration on the system.

You do have an interactive shell in the chroot, don't you?  Then please

- send the output of 

  egrep ^(SYST|T)EXMF = /etc/texmf/texmf.cnf 

- send the file kpsedebug.lg after running

  kpsewhich --debug=90 language.def 2 kpsedebug.lg

Regards, Frank

-- 
Dr. Frank Küster
Debian Developer (TeXLive)
VCD Aschaffenburg-Miltenberg, ADFC Miltenberg
B90/Grüne KV Miltenberg



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#580223: kpsewhich runs in endlees loop, symlink loop

2010-05-04 Thread Thomas Lange
Package: texlive-binaries
Version: 2009-5
Severity: minor


If I install software inside a chroot (squeeze) environment, sometimes
kpsewhich runs into an endless loop and hangs. This is some part of
the output:

Processing triggers for tex-common ...
Running mktexlsr. This may take some time... done.
Setting up texlive-base (2009-8) ...
Running mktexlsr. This may take some time... done.
Building format(s) --all --cnffile /etc/texmf/fmt.d/10texlive-base.cnf.
This may take some time... done.
Processing triggers for tex-common ...
Running updmap-sys. This may take some time... done.

HERE IT HANGS



I can strace the kpsewhich process and it shows following:

stat64(./sys/devices/platform/pcspkr/input:input4/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/input4/input:event4/subsystem/input3,
 {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
open(./sys/devices/platform/pcspkr/input:input4/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/input4/input:event4/subsystem/input3/,
 O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 86
getdents(86, /* 16 entries */, 32768)   = 312
stat64(./sys/devices/platform/pcspkr/input:input4/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/input4/input:event4/subsystem/input3/uevent,
 {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
stat64(./sys/devices/platform/pcspkr/input:input4/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/mice/subsystem/input4/input:event4/subsystem/input3/subsystem,
 0xbfff5ee4) = -1 ELOOP (Too many levels of symbolic links)

These processes are running:

suenner[~]# ps -efl|grep kpsew
0 R root 24037 23532 45  80   0 - 23074 -  16:20 pts/300:01:08 
kpsewhich language.def
0 S root 23532 23529  0  80   0 -   442 -  16:20 pts/300:00:00 
/bin/sh -e /var/lib/dpkg/info/tex-common.postinst triggered texmf-hyphen 
texmf-map
0 S root 23529  8132  0  80   0 -  2405 -  16:20 pts/300:00:00 
/usr/bin/perl -w /usr/share/debconf/frontend 
/var/lib/dpkg/info/tex-common.postinst triggered texmf-hyphen texmf-map


Inside the chroot, these filesystems are mounted.

proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)


There's a symlink loop in the host system (lenny)

# cd /sys/class/input/
# ls -l
total 0
-r--r--r-- 1 root root 4096 2010-05-04 16:20 dev
drwxr-xr-x 2 root root0 2010-05-04 16:20 power
lrwxrwxrwx 1 root root0 2010-05-04 16:20 subsystem - ../../input
-rw-r--r-- 1 root root 4096 2010-05-04 16:20 uevent



I think kpsewhich should never search in /sys. Also /proc and other
directories may be omitted.

-- 
regards Thomas



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org