Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002574graphvizDotpublic2015-10-12 10:462015-10-13 03:38
Reporterjdascenzio 
Assigned To 
PriorityhighSeveritycrashReproducibilityalways
StatusnewResolutionopen 
Platformi386OSdebianOS Versionjessie
Summary0002574: dot_static crash with segfault in closestSide
DescriptionHi,

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!
Steps To Reproduce#build
./autogen.sh --enable-static && make
#run
./cmd/dot/dot_static test.dot
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.38.0
Attached Filesdot file icon test.dot (Attachment missing)

- Relationships

-  Notes
User avatar (0000989)
jdascenzio (reporter)
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.

- Issue History
Date Modified Username Field Change
2015-10-12 10:46 jdascenzio New Issue
2015-10-12 10:46 jdascenzio File Added: test.dot
2015-10-13 03:38 jdascenzio Note Added: 0000989


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker