[tex-live] Bug#561500: Metapost: segmentation fault while text is included with btex etex
Jean-Paul Vincent
jpvincent1 at orange.fr
Sun Dec 20 16:42:43 CET 2009
< Le dimanche 20 décembre 2009 à 15:47:03 +0100 (CET), Taco Hoekwater écrivit :>
> Can you see what happens if set LC_MESSAGES in the
> environment to something like 'C'?
I export LC_MESSAGES=C and run valgrind
-------------------------------------------------------------
valgrind mpost logistic2.mp
==7826== Memcheck, a memory error detector
==7826== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==7826== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info
==7826== Command: mpost logistic2.mp
==7826==
This is MetaPost, version 1.208 (kpathsea version 5.0.0)
(./logistic2.mpfatal: exec failed: No such file or directory==7826== Invalid read o$
==7826== at 0x5306451: vfprintf (vfprintf.c:1601)
==7826== by 0x405666: ??? (in /usr/bin/mpost)
==7826== by 0x406792: ??? (in /usr/bin/mpost)
==7826== by 0x409E5B: ??? (in /usr/bin/mpost)
==7826== by 0x40CA8D: ??? (in /usr/bin/mpost)
==7826== by 0x4028B0: ??? (in /usr/bin/mpost)
==7826== by 0x42F5EA: ??? (in /usr/bin/mpost)
==7826== by 0x434F77: ??? (in /usr/bin/mpost)
==7826== by 0x432E0F: ??? (in /usr/bin/mpost)
==7826== by 0x431BDC: ??? (in /usr/bin/mpost)
==7826== by 0x432947: ??? (in /usr/bin/mpost)
==7826== by 0x43CDC7: ??? (in /usr/bin/mpost)
==7826== Address 0xffffffffffffffa8 is not stack'd, malloc'd or (recently) free'd
==7826==
==7826==
==7826==
==7826== Process terminating with default action of signal 11 (SIGSEGV)
==7826== Access not within mapped region at address 0xFFFFFFFFFFFFFFA8
==7826== at 0x5306451: vfprintf (vfprintf.c:1601)
==7826== by 0x405666: ??? (in /usr/bin/mpost)
==7826== by 0x406792: ??? (in /usr/bin/mpost)
==7826== by 0x409E5B: ??? (in /usr/bin/mpost)
==7826== by 0x40CA8D: ??? (in /usr/bin/mpost)
==7826== by 0x4028B0: ??? (in /usr/bin/mpost)
==7826== by 0x42F5EA: ??? (in /usr/bin/mpost)
==7826== by 0x434F77: ??? (in /usr/bin/mpost)
==7826== by 0x432E0F: ??? (in /usr/bin/mpost)
==7826== by 0x431BDC: ??? (in /usr/bin/mpost)
==7826== by 0x432947: ??? (in /usr/bin/mpost)
==7826== by 0x43CDC7: ??? (in /usr/bin/mpost)
==7826== If you believe this happened as a result of a stack
==7826== overflow in your program's main thread (unlikely but
==7826== possible), you can try to increase the size of the
==7826== main thread stack using the --main-stacksize= flag.
==7826== The main thread stack size used in this run was 8388608.
==7826==
==7826== HEAP SUMMARY:
==7826== in use at exit: 35,690,844 bytes in 86,487 blocks
==7826== total heap usage: 137,615 allocs, 51,128 frees, 70,553,219 bytes allocat$
==7826==
==7826== LEAK SUMMARY:
==7826== definitely lost: 3,727 bytes in 210 blocks
==7826== indirectly lost: 1,206 bytes in 80 blocks
==7826== possibly lost: 0 bytes in 0 blocks
==7826== still reachable: 35,685,911 bytes in 86,197 blocks
==7826== suppressed: 0 bytes in 0 blocks
==7826== Rerun with --leak-check=full to see details of leaked memory
==7826==
==7826== For counts of detected and suppressed errors, rerun with: -v
==7826== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 4)
fatal: Command failed: etex --parse-first-line --interaction=nonstopmode mp322896.t$
>> logistic2.mp
>> logistic2.mpx
! Unable to make mpx file.
l.35 label.bot(btex
$r$ etex, ((rmax-0.2)*ux,0));
Transcript written on logistic2.log.
==7826==
==7826== HEAP SUMMARY:
==7826== in use at exit: 1,996,908 bytes in 86,327 blocks
==7826== total heap usage: 137,665 allocs, 51,338 frees, 70,586,198 bytes allocat$
==7826==
==7826== LEAK SUMMARY:
==7826== definitely lost: 3,805 bytes in 212 blocks
==7826== indirectly lost: 1,206 bytes in 80 blocks
==7826== possibly lost: 0 bytes in 0 blocks
==7826== still reachable: 1,991,897 bytes in 86,035 blocks
==7826== suppressed: 0 bytes in 0 blocks
==7826== Rerun with --leak-check=full to see details of leaked memory
==7826==
==7826== For counts of detected and suppressed errors, rerun with: -v
==7826== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
------------------------------------------------------------------
It seems this is the same output as before.
Can I try something else?
Regards.
Jean-Paul.
PS: the output of locale
~% locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES=C
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
More information about the tex-live
mailing list