Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001337graphvizDotpublic2008-06-03 08:572011-04-28 04:03
ReporterMycroft Holmes 
Assigned Togviz 
PrioritynormalSeveritymajorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSx86-OSX-10.5.3OS Version
Summary0001337: dot crash processing ranksame + cluster
Description



This makes dot crash (sometimes immediately, sometimes after a while):
note that the graph is planar (so it has a valid layout).






<CD>
digraph expression0 {
compound= true;
x; z;
subgraph cluster1 {a; b -> c; }
{ rank = same; c; a; }
}
</CD>






note also that if you move the "ranksame" directive inside the cluster, it works.
also dot prints the following diagnostic message:



<CD>
Warning: a was already in a rankset, ignored in cluster expression0
Warning: c was already in a rankset, ignored in cluster expression0
</CD>



This makes me think dot is ignoring the declaration of nodes a and c in the cluster and it's
trying to define them in the main graph, so when it processes the link b->c it goes in
access violation because c does not exist in its data structure.
as a cross proof, this works:



subgraph cluster1 { a; b -> d; c; }



a and c are somehow incorrectly removed from the cluster (but in the picture, they are in!);
since there's no edge that touches them, dot does not crash.



(I also deduce that the ranksame declaration CAN be positioned outside the subgraph)









Finally note that this variation:
<CD>
digraph expression0 {
compound= true;
x; z;
subgraph cluster1 { a; b -> d; c; }
{ rank = same; c; a; x; d; }
}
</CD>



does not crash, but the result is incorrect (it shows X Z C B A above and D below, it should be
B above and A C X D below -- Z is free)






please, contact me as needed
MH
Steps To Reproduce

digraph expression0 {
compound= true;
x; z;
subgraph cluster1 { a; b -> c; }
{ rank = same; c; a; }
}
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1370
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT*
VERSION     2.19.20080516.0445
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 => user1


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