Memory leak in kpathsea?
Jonathan Fine
jfine@active-tex.demon.co.uk
Fri, 04 Jan 2002 19:27:33 +0000
Hello
The attached shell transcript shows that when TeX repeatedly
inputs /dev/null, then memory use (the last numeric output in
the output of ps) grows without bound.
Perhaps an expert could confirm (or deny) my diagnosis, that
there is a memory leak in kpathsea.
BTW, I'm not a subscriber to this list, so I'd very much
appreciate being cc'ed on the discussion.
Jonathan Fine
=====
jfine@active-tex:~ >
jfine@active-tex:~ > for i in x x x x x x x x x x ; do sleep 1 ; ps -v |
grep [t]ex ; done &
[1] 1389
jfine@active-tex:~ > tex \\batchmode \\def\\doit{\\input/dev/null
\\doit} \\doit
1393 pts/3 D 0:00 172 238 1677 984 3.2 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
This is TeX, Version 3.14159 (Web2C 7.3.1)
1393 pts/3 R 0:00 264 238 7517 2164 7.1 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
1393 pts/3 R 0:01 264 238 7673 2320 7.6 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
1393 pts/3 R 0:02 264 238 7837 2484 8.2 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
1393 pts/3 R 0:02 264 238 8029 2676 8.8 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
1393 pts/3 R 0:03 264 238 8181 2828 9.3 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
1393 pts/3 R 0:04 264 238 8373 3020 9.9 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
1393 pts/3 R 0:04 264 238 8545 3192 10.5 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
1393 pts/3 R 0:05 264 238 8693 3340 11.0 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
1393 pts/3 R 0:05 264 238 8877 3524 11.6 tex \batchmode
\def\doit{\input/dev/null \doit} \doit
! Interruption.
<to be read again>
\par
l.1
? x
No pages of output.
Transcript written on null.log.
[1]+ Done for i in x x x x x x x x x x;
do
sleep 1; ps -v | grep [t]ex;
done
jfine@active-tex:~ >