[Dot] cluster and rank causes abort
Ported Issue from Mantis Original ID: 2033 Reported By: Ben Smith
SEVERITY: MAJOR Submitted: 2011-01-26 22:47:56
OS: X86-LINUX-FEDORA 12
VERSION: 2.26.3
DESCRIPTION
A dot file I'm using works under 2.20.3 but causes "Aborted (core dumped)"
on 2.26.3.
I noticed that changing the number of letters in the A_1 record label or removing the rank changes whether dot crashes or not.
STEPS TO REPRODUCE
digraph G { A_1:a -> A_2:a;
subgraph clusterA
{
A_1 [shape=record,label="{<a>AAAAAA|CCC}"];
A_2 [shape=record,label="{<a>A|BB}"];
{rank=same; A_1; A_2;}
}
}
ADDITIONAL INFORMATION
Here's a version of the graph that does not crash: digraph G { A_1:a -> A_2:a;
subgraph clusterA
{
A_1 [shape=record,label="{<a>AAAA|CCC}"];
A_2 [shape=record,label="{<a>A|BB}"];
{rank=same; A_1; A_2;}
}
}
<additional_information><![CDATA[
[erg] This doesn't abort on osx but the output is still wrong. The problem appears to pre-date 2.24.
A workaround to consider is to use HTML-like labels. For example, A_1 [shape=none,label=<
AAAAAA |
CCC |
[ben] Thanks for responding to my bug report so quickly. That works great and forced me to try out the HTML labels, which I now understand the power of.