Number: 1426
Title: fdp "Segment violation" when 2 edges begin at the same cluster.
Submitter: Jesús Romero de Pablos
Date: Thu Aug 21 06:26:45 2008
Subsys: Fdp
Version: 2.20.2 (Thu Aug 21 01:45:13 UTC 2008)
System: *-Linux-RHEL 4.6
Severity: critical
Problem: When I try to make 2 edges that begin at the same cluster the fdp command return the error: "Segment Violation".
Input:
This simple "dot" code compile normally:

<CD>
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";
 }
}
</CD>

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":

<CD>
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";
 }
}
</CD>

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":

<CD>
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";
 }

}
</CD>

This simple dot code compile normally. In this code I make the same test but using simple nodes not clusters.

<CD>
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";
 }

}
</CD>
Output file: b1426.txt
Owner: erg
Status: *