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

Re: Bug#561427: ptex-bin: Can't install the package at TeX Live 2009

Dear all,

On Thu, 17 Dec 2009, ohura@debian.org wrote:
> Running fmtutil-sys. This may take some time. ...
> fmtutil: running `ptex -ini   -jobname=ptex -progname=ptex ptex.ini' ...
> *** glibc detected *** ptex: free(): invalid pointer: 0x0825a879 ***
> ======= Backtrace: =========
> /lib/i686/cmov/libc.so.6[0xb7786824]
> /lib/i686/cmov/libc.so.6[0xb77880b3]
> /lib/i686/cmov/libc.so.6(cfree+0x6d)[0xb778b0ad]
> /usr/lib/libkpathsea.so.4[0xb78921bd]
> /usr/lib/libkpathsea.so.4(kpse_fontmap_lookup+0xf0)[0xb78924d0]
> /usr/lib/libkpathsea.so.4(kpse_find_file+0x304)[0xb788e744]

This is really strange. We got a bug report with a similar thing
(crash in evince) in the same kpse_fontmap_lookup function. It cannot
be that it is in the actual code of TL2009 since that one ships
libkpathsea5, but it seems that the format of the fontmap file has
changed and create hiccups in libkpathsea4.

Karl already answered in bug report 560097:

>    #6  0x00007fffeac0c509 in kpse_fontmap_lookup () from /usr/lib/libkpathsea.so.4
> I feel completely brainless these days, but kpathsea/ChangeLog has this
> entry:
> 2007-08-27  Karl Berry  <karl@tug.org>
>         * fontmap.c (map_file_parse): free the original pointer, not the
>         potentially moved one (after whitespace skipping).
>         From: "George N. White III", 25 Jul 2007 11:27:12.
> Looking at the svn log for fontmap.c, I believe the above change is
> r4824.  I leave it to you to dig out the actual code.

I checked the code and indeed libkpathsea4 as shipped with Debian does
not contain that fix.

Now the problem is that we cannot fix that in unstable anymore since
we are already at the 2009 version.

I would suggest that you rebuild ptex against libkpathsea5 which should
fix that problem, too.

Best wishes


Norbert Preining                preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan               TU Wien, Austria            Debian TeX Task Force
gpg DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
JARROW (adj.)
An agricultural device which, when towed behind a tractor, enables the
farmer to spread his dung evenly across the width of the road.
			--- Douglas Adams, The Meaning of Liff

Reply to: