[metapost] Trying to figure out MPLib
Shriramana Sharma
samjnaa at gmail.com
Sun Aug 12 12:57:38 CEST 2012
Hello Taco -- I tried running your mppath demo using my recently
devised sharedlib libmplib.so and am having some problems -- hope you
can help. (I checked and the sharedlib was built from the same
[patched] sources as the staticlib which works.)
The execution halts at mppath.c line 254:
mp_make_choices(mp, PATH_LOC(cur_exp));
I am not able to figure out beyond that. I even stepi-ed into the
program using gdb (something which I am totally inexperienced at) but
all I was able to get was:
(gdb) stepi
0x0000000000401c12 253 mp->arith_error=0;
(gdb) stepi
254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
0x0000000000401c20 254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
0x0000000000401c27 254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
0x0000000000401c2b 254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
0x0000000000401c32 254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
0x0000000000401c35 254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
0x0000000000401c38 254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
0x0000000000401c3c 254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
0x0000000000401c40 254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
0x0000000000401c43 254 mp_make_choices(mp, PATH_LOC(cur_exp));
(gdb) stepi
Program received signal SIGSEGV, Segmentation fault.
0x0000000000401c43 in mp_solve_path (mp=0x6041b0, first=0x60c9f0) at
mppath.c:254
--
Shriramana Sharma
More information about the metapost
mailing list