Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000636graphvizDotpublic2006-10-27 05:012011-04-28 04:03
ReporterPeter Schueller 
Assigned Toellson 
PlatformOS*-Linux-Debian sargeOS Version
Summary0000636: input with rank=same causes segfault

Trying to draw a very small graph with one layer "rank = same" causes a segfault.

Please see the attached input file.

Kind Regards,

Steps To Reproduce

graph G {
 { rank = same; MU1; MU2; }
 { FWA1_1; FWA1_2; FWA1_3; }
 { FWA2_1; FWA2_2; FWA2_3; }
 BMZ -- MU1;
 BMZ -- MU2;
 MU1 -- FWA1_1;
 FWA1_1 -- FWA1_2;
 FWA1_2 -- FWA1_3;
 MU1 -- FWA1_3;
 MU2 -- FWA2_1;
 FWA2_1 -- FWA2_2;
 FWA2_2 -- FWA2_3;
 MU2 -- FWA2_3;
 MU1 -- MU2[label="X"];
Additional Information
Using neato this renders a graph, but rank information is ignored.

[ellson] I don't the segfault with graphviz-2.8 and later, but something is not right: The edge MU1--MU2
seems to have become directed and gained an arrowhead!

Hmmm. I'd start by asking why it has an arrowhead - it's just a graphical attribute and
should be easy to track.

In terms of whether the edge is truly "directed" internally, a while ago we decided that
internally the graph library would record the original "direction" even of edges in undirected
graphs. I think the correct semantic might be for dot to ignore that information, but that
might actually require extra coding to enforce, which leads one to question the decision.
That is, should undirected graphs always imply [constraint=false] for all edges.

[ellson] Please use graphviz-2.8 to avoid the segfault.

Investigating your bug exposed the problem with the extra arrowhead. I think I have a fix for this which should go into CVS today if Stephen approves. For graphviz-2.8 you can work around the problem by adding an explicit:
   edge [dir=none]
to your graph.

TagsNo tags attached.
STATUS-COMMENTFixed (27 Oct 2006)
VERSION     2.2.1
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 => user695

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