[metapost] Segfault when trying to access mp_svg_ship_out!
Shriramana Sharma
samjnaa at gmail.com
Fri Aug 10 14:39:35 CEST 2012
Hello Taco (and others)!
On Thu, Aug 9, 2012 at 1:38 PM, Taco Hoekwater <taco at elvenkind.com> wrote:
> In fact, you should be able to call
> int mp_svg_ship_out (mp_edge_object *hh, int prologues);
> already, after #include "mplibsvg.h".
I just tried doing the above and it segfaulted on me. I just compiled
the attached minimal test with:
gcc -Wall -g -o svgtest svgtest.c -L. -l mplib
Seeing the segfault, I ran the executable using kdbg (KDE frontend to
gdb) and it sort of pointed me to svgout.w line 1198 which reads:
MP mp = hh->parent;
and the locals pane reports that hh has the value 0x0!
--
Shriramana Sharma
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svgtest.c
Type: text/x-csrc
Size: 1119 bytes
Desc: not available
URL: <http://tug.org/pipermail/metapost/attachments/20120810/7ba42246/attachment.bin>
More information about the metapost
mailing list