Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001854graphvizOtherpublic2010-04-11 21:222011-04-28 04:03
ReporterTomasz Rydzynski 
Assigned Toerg 
PrioritynormalSeveritycriticalReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0001854: Memory corruption when using neato and svg to plot nodes with ports
Description



If you make a graph with ports and then use neato to layout it and svg to produce the output, you get corrupted edge identifiers.



Actually, everything except dot results in the same problem.



neato -Tsvg -o foo.svg input.gv



Happens every time.



Looks like memory corruption problem. Hard to say for 100% that it fixes the real issue but I'm attaching the patch that worked for me.
Steps To Reproduce

digraph foo {

    node [ shape = "record" ]

    "a" [ label = "<p1> a | <p2> 1 "]
    "b" [ label = "<p1> b | <p2> 2 "]
    "c" [ label = "<p1> c | <p2> 3 "]

    "a":p2 -> "b":p2
    "a":p2 -> "c":p2
}
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
<CD>
diff -ruN graphviz-2.26.3-orig/lib/common/shapes.c graphviz-2.26.3/lib/common/shapes.c
--- graphviz-2.26.3-orig/lib/common/shapes.c 2009-12-10 19:23:34.000000000 +0100
+++ graphviz-2.26.3/lib/common/shapes.c 2010-04-12 02:43:54.000000000 +0200
@
FORMER-ID1923
INPUT-FILE
OUTPUT-FILEhttp://www.graphviz.org/bugs/b1923.svg [^]
STATUS-COMMENTFixed (12 Apr 2010)
VERSION     2.26.3
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


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