Graphviz Issue Tracker - graphviz
View Issue Details
0002574graphvizDotpublic2015-10-12 10:462015-10-13 03:38
jdascenzio 
 
highcrashalways
newopen 
i386debianjessie
2.38.0
0002574: dot_static crash with segfault in closestSide
Hi,

I build the last version of graphiz (2.38.0) on my debian 8 with this command:
./autogen.sh --enable-static && make

When I run it: ./cmd/dot/dot_static test.dot, I have this crash:

Program received signal SIGSEGV, Segmentation fault.
0x080e5ec6 in closestSide (oldport=0xbfffeb54, oldport=0xbfffeb54, other=0x8244960, n=0x81b2c90) at shapes.c:3999
3999 point opt = cvtPt(ND_coord(other), rkd);

Thanks to help me!
#build
./autogen.sh --enable-static && make
#run
./cmd/dot/dot_static test.dot
No tags attached.
dot test.dot (25,604) 2015-10-12 10:46
http://www.graphviz.org/mantisbt/file_download.php?file_id=489&type=bug
Issue History
2015-10-12 10:46jdascenzioNew Issue
2015-10-12 10:46jdascenzioFile Added: test.dot
2015-10-13 03:38jdascenzioNote Added: 0000989

Notes
(0000989)
jdascenzio   
2015-10-13 03:38   
Finally, I resolved this bug when I apply this patch from the master branch of git:

574b5c0d78c619967d1e74460d2bd03bd3209d84

description:

Remove extraneous expression from line 1681;
    remove shortcut tests added in cd45ebb0c3015556d782bbbfdee1658f227b3eef, as they were too aggressive;
    fix bugs 2445, 2430, 2427, 2421. These were due to the conversion to cgraph, so there may be more
    bugs fixed than these. The problem is that with cgraph, edges always come in pairs. In particular,
    to access the head and tail of an edge, both parts need to be set. This wasn't being done for
    the temporary hack edges in make_regular_edge.