htmltable.c:1761: pos_html_tbl: assertion delx >= 0, when using nested fixedsize table
Reported originally at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944297 , reporting here for extra visibility.
Attached dot
graphs lead to html table layout assertion failure. They are pretty minimized already.
$ dot -Tpng:cairo:cairo crashes_graphviz.dot
Warning: cell size too small for content
dot: htmltable.c:1761: pos_html_tbl: Assertion `delx >= 0' failed.
Aborted
$
Input:
// dot -Tpng:cairo:cairo crashes_graphviz.dot
digraph stuff {
green [shape=plaintext, label=<
<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" WIDTH="192" HEIGHT="128">
<TR>
<TD WIDTH="40">
<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" WIDTH="40" HEIGHT="128">
<TR><TD PORT="inserter" WIDTH="40" HEIGHT="32" FIXEDSIZE="TRUE"> <TABLE BORDER="0" WIDTH="50" HEIGHT="32"><TR><TD WIDTH="8" HEIGHT="32">1</TD><TD WIDTH="32" HEIGHT="32"><IMG SRC="inserter.png" SCALE="TRUE"/></TD></TR></TABLE> </TD></TR>
</TABLE>
</TD>
</TR>
</TABLE>
>];
}
It does happen for all output types essentially (like -Tdot
, -Tplain
and -Tpng
).
This is using Debian/GNU Linux testing and unstable, on amd64, graphviz package version 2.42.2-3 (but dot -v
says to me graphviz version 2.43.0 (0)
).
Similar more complex example with a bit different error message related to dely >= 0
assertion failure.
$ dot -Tdot ./gen-acc-graphviz-crash-min.dot
Warning: cell size too small for content
Warning: cell size too small for content
Warning: cell size too small for content
Warning: cell size too small for content
Warning: cell size too small for content
Warning: cell size too small for content
Warning: cell size too small for content
Warning: cell size too small for content
dot: htmltable.c:1764: pos_html_tbl: Assertion `dely >= 0' failed.
Aborted
$