[Fdp] fdp "Segment violation" when 2 edges begin at the same cluster.
Ported Issue from Mantis Original ID: 1390 Reported By: Jesus Romero de Pablos
SEVERITY: CRITICAL Submitted: 2008-08-21 11:26:45
OS: *-LINUX-RHEL 4.6
VERSION: 2.20.2 (THU AUG 21 01:45:13 UTC 2008)
DESCRIPTION
When I try to make 2 edges that begin at the same cluster the fdp command return the error: "Segment Violation".
STEPS TO REPRODUCE
This simple "dot" code compile normally:
digraph G{
compound=true;
bgcolor=grey;
node [style=bold, fontsize=20];
edge [arrowsize=2, labelfontsize=20, style=bold];
"cluster_1" -> "2.1";
"cluster_2" -> "1.1";
subgraph "cluster_1"{
fontsize=45;
fontcolor=mediumblue;
label="1";
style=bold;
color=mediumblue;
"1.1";
"1.2";
}
subgraph "cluster_2"{
fontsize=45;
fontcolor=mediumblue;
label="2";
style=bold;
color=mediumblue;
"2.1";
"2.2";
}
}
This simple dot code have the error "Segment Violation", is the same code but i try to make 2 edges that begin from the cluster "cluster_1":
digraph G{
compound=true;
bgcolor=grey;
node [style=bold, fontsize=20];
edge [arrowsize=2, labelfontsize=20, style=bold];
"cluster_1" -> "2.1";
"cluster_1" -> "2.2";
"cluster_2" -> "1.1";
subgraph "cluster_1"{
fontsize=45;
fontcolor=mediumblue;
label="1";
style=bold;
color=mediumblue;
"1.1";
"1.2";
}
subgraph "cluster_2"{
fontsize=45;
fontcolor=mediumblue;
label="2";
style=bold;
color=mediumblue;
"2.1";
"2.2";
}
}
This simple dot code have the error "Segment Violation" too. In this case I make a new cluster and change de end of the second edge that begin in "cluster_1":
digraph G{
compound=true;
bgcolor=grey;
node [style=bold, fontsize=20];
edge [arrowsize=2, labelfontsize=20, style=bold];
"cluster_1" -> "2.1";
"cluster_1" -> "3.1";
"cluster_2" -> "1.1";
subgraph "cluster_1"{
fontsize=45;
fontcolor=mediumblue;
label="1";
style=bold;
color=mediumblue;
"1.1";
"1.2";
}
subgraph "cluster_2"{
fontsize=45;
fontcolor=mediumblue;
label="2";
style=bold;
color=mediumblue;
"2.1";
"2.2";
}
subgraph "cluster_3"{
fontsize=45;
fontcolor=mediumblue;
label="2";
style=bold;
color=mediumblue;
"3.1";
"3.2";
}
}
This simple dot code compile normally. In this code I make the same test but using simple nodes not clusters.
digraph G{
compound=true;
bgcolor=grey;
node [style=bold, fontsize=20];
edge [arrowsize=2, labelfontsize=20, style=bold];
"1.1" -> "2.1";
"1.1" -> "2.2";
"1.2" -> "3.1";
subgraph "cluster_1"{
fontsize=45;
fontcolor=mediumblue;
label="1";
style=bold;
color=mediumblue;
"1.1";
"1.2";
}
subgraph "cluster_2"{
fontsize=45;
fontcolor=mediumblue;
label="2";
style=bold;
color=mediumblue;
"2.1";
"2.2";
}
}