[Dot] flat edge bug
Ported Issue from Mantis Original ID: 1322 Reported By: user695
SEVERITY: MINOR Submitted: 2008-05-12 23:10:14
OS: --
VERSION: 2.18
DESCRIPTION
This bug report from a Ubuntu
(https://bugs.launchpad.net/ubuntu/+source/graphviz/+bug/229516)
with graphviz-2.16 user contains an unterminated graph.
But if I terminate the graph (attached) I can reproduce the problem
with graphviz-2.18.
Its a flat-edge problem.
Most of the virtual nodes in the rank are ok, but the pointer is corrupted to the one that results in the crash.
Not sure where these arrays of vnodes are created?
Breakpoint 1, flat_reorder (g=0x614a50) at mincross.c:981
981 MARK(GD_rank(g)[r].v[i]) = FALSE;
(gdb) p r
$23 = 1
(gdb) p i
$24 = 4
(gdb) p g->u.rank[r].v[i]
$25 = (node_t *) 0x1006ae320
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault. flat_reorder (g=0x614a50) at mincross.c:981 981 MARK(GD_rank(g)[r].v[i]) = FALSE; (gdb) p g->u.minrank $26 = 0 (gdb) p g->u.maxrank $27 = 2 (gdb) p g->u.rank[r].n $28 = 7 (gdb)