[tex-live] Bug#561500: Metapost: segmentation fault while text is included with btex etex
Jean-Paul Vincent
jpvincent1 at orange.fr
Sun Dec 20 18:59:40 CET 2009
Hi,
< Le dimanche 20 décembre 2009 à 17:05:03 +0100 (CET), Taco Hoekwater écrivit :>
> If you are willing to compile from scratch, then a backtrace of a
> non-stripped metapost would be quite helpful.
>
> http://foundry.supelec.fr/gf/project/metapost/frs/
>
> This has a slightly different version of kpathsea, but that should
> not matter for this bug. Unpack, then run ./build.sh --nostrip ,
> and ask gdb for a backtrace right after the crash.
I had to copy texmf.cnf and mfplain.mp in the directory of mpost.
The run:
-----------------------------------------------------------
Reading symbols from /usr/local/src/metapost-1.208/build/texk/web2c/mpost...done.
(gdb) run /home/polo/travail/mpsi/informatique/td/logistic2.mp
Starting program: /usr/local/src/metapost-1.208/build/texk/web2c/mpost /home/polo/travail/mpsi/informatique/td/logistic2.mp
This is MetaPost, version 1.208 (kpathsea version 3.5.7dev)
(/home/polo/travail/mpsi/informatique/td/logistic2.mpfatal: exec failed: No such file or directoryfatal: Command failed: etex --parse-first-line --interaction=nonstopmode mp331340.tex; see mpxerr.log
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7850451 in _IO_vfprintf_internal (s=0x98bd00,
format=<value optimized out>, ap=0x7fffffffd810) at vfprintf.c:1601
1601 vfprintf.c: Aucun fichier ou dossier de ce type.
in vfprintf.c
-------------------------------------------------------------
And the backtrace:
--------------------------------------------------------------------
(gdb) backtrace
#0 0x00007ffff7850451 in _IO_vfprintf_internal (s=0x98bd00,
format=<value optimized out>, ap=0x7fffffffd810) at vfprintf.c:1601
#1 0x00000000004054a7 in mpx_printf (mpx=0x7ffff581e010,
header=<value optimized out>,
msg=0x46c1e8 "Command failed: %s; see mpxerr.log", ap=0x7fffffffd810)
at ../../../source/texk/web2c/mplibdir/mpxout.w:214
#2 0x00000000004065e3 in mpx_abort (mpx=0x7ffff581e010,
msg=0x46c1e8 "Command failed: %s; see mpxerr.log")
at ../../../source/texk/web2c/mplibdir/mpxout.w:263
#3 0x000000000040c671 in mpx_makempx (mpxopt=0x98bcb0)
at ../../../source/texk/web2c/mplibdir/mpxout.w:4273
#4 0x00000000004027ce in mpost_run_make_mpx (mp=0x948020,
mpname=0x68b230 "讵\367\377\177", mpxname=<value optimized out>)
at ../../../source/texk/web2c/mplibdir/mpost.w:367
#5 0x000000000042dd9b in mp_start_mpx_input (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:16790
#6 mp_t_next (mp=0x948020) at ../../../source/texk/web2c/mplibdir/mp.w:14474
#7 0x000000000042f8c8 in mp_get_x_next (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:15176
#8 0x000000000043adb8 in mp_macro_call (mp=0x948020, def_ref=2997957,
arg_list=2997640, macro_name=0)
at ../../../source/texk/web2c/mplibdir/mp.w:15406
#9 0x0000000000439d7f in mp_scan_primary (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:18176
#10 0x000000000043a8e8 in mp_scan_secondary (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:18368
#11 0x000000000043b5e8 in mp_scan_tertiary (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:18416
#12 0x000000000043b740 in mp_scan_expression (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:18462
#13 0x000000000043b464 in mp_macro_call (mp=0x948020, def_ref=2998578,
arg_list=0, macro_name=1826)
at ../../../source/texk/web2c/mplibdir/mp.w:15468
#14 0x000000000042f893 in mp_get_x_next (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:15181
#15 0x00000000004376c3 in mp_do_statement (mp=0x17c10)
at ../../../source/texk/web2c/mplibdir/mp.w:21809
#16 0x00000000004393e8 in mp_scan_primary (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:17826
#17 0x000000000043a8e8 in mp_scan_secondary (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:18368
#18 0x000000000043b5e8 in mp_scan_tertiary (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:18416
#19 0x000000000043b740 in mp_scan_expression (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:18462
#20 0x0000000000437862 in mp_do_statement (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:21893
#21 0x0000000000440e71 in mp_main_control (mp=0x948020)
at ../../../source/texk/web2c/mplibdir/mp.w:22404
#22 mp_run (mp=0x948020) at ../../../source/texk/web2c/mplibdir/mp.w:22420
#23 0x0000000000403d2c in main (argc=2, argv=0x7fffffffe568)
at ../../../source/texk/web2c/mplibdir/mpost.w:1222
----------------------------------------------------------
I hope this will help.
Regards.
Jean-Paul Vincent.
--
--
-------------------------- Ô
- Jean-Paul ---------- ._ /\_>.
-- Vincent ---- ~~~~~~~ (x) >(x)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://pagesperso-orange.fr/tourbillon/
More information about the tex-live
mailing list