Number: 145
Title: dot asserts 0 and dies making a simple graph
Submitter: jkw
Date: Wed May 8 13:55:12 2002
Subsys: Dot
Version:
System: *-*-*
Severity: major
Problem:
$ /usr/local/bin/dot -Tpng -o /tmp/bla.png ./assert.dot warning: node columns_foo_insider, port foo unrecognized Warning: cluster_foo -> label_xxxxxxx: head not inside head cluster cluster_foo Error: segment [(-53,82),(-53,90)] does not intersect box ll=(-79,20),ur=(-27,90) dot: compound.c:93: boxIntersect: Assertion `0' failed. Aborted (core dumped)
Input:
digraph bla {
    rankdir=LR;
    compound=true;
    subgraph cluster_foo {
        label_foo [shape="record",label="<foo>foo"];
    }
    cluster_foo -> label_xxxxxxx [lhead="cluster_foo"]
    columns_foo_insider:foo -> label_foo [lhead="cluster_foo"]
}
Fix:
Code borrowed from Graphics Gems proved to be incorrect on certain boundary conditions, at least for our use. Altered the code in compound.c to use ZSGN rather than SGN.
Owner: erg
Status: Fixed (8 May 2002)