Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002062graphvizTwopipublic2011-03-17 10:482011-04-28 04:03
ReporterDavid Fang 
Assigned Togviz 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOS*-*-OS Version
Summary0002062: twopi crashes on small graph
Description



twopi -Tpdf foo.twopi -o foo.pdf



result:
Segmentation fault



<CD>
gdb trace:
Program received signal SIGSEGV, Segmentation fault.
removeOverlapAs (G=0x8bbcc08, flag=0x8bbdb1c "false") at adjust.c:429
429 p = anchor->next;
(gdb) where
#0 removeOverlapAs (G=0x8bbcc08, flag=0x8bbdb1c "false") at adjust.c:429
0000001 0xf7c177e9 in removeOverlap (G=0x8bbcc08) at adjust.c:1049
0000002 0xf7c17826 in adjustNodes (G=0x8bbcc08) at adjust.c:1061
0000003 0xf7c32df7 in twopi_layout (g=0x8bbcc08) at twopiinit.c:92
0000004 0xf7f49742 in gvLayoutJobs (gvc=0x8bb0f10, g=0x8bbcc08) at gvlayout.c:88
0000005 0x08048b7b in main (argc=5, argv=0xffe9cdd4) at dot.c:209
</CD>



Is this reproducible on newer versions?
Any suggested workarounds?
Steps To Reproduce

digraph G {
ranksep=1;
overlap=false;
node [shape=box];
edge [fontsize=9];
root=__TOP__;
__TOP__ [label="<TOP>\nbit_sink", peripheries=2, style=filled, shape=ellipse];
xs [label="xs\ngeneric_ev_sink"];
__TOP__ -> xs [label=" Vddl VSS I-v I-e"];
xs__xb [label="xs/xb\nINV_2_"];
xs -> xs__xb [label=" Vddl VSS v e"];
}
Additional Information

[north]
2.22? 2009? did you try a newer one?
otherwise we will have to wait for the invention of time
travel to go back to 2009 to correct the old version

[david]
Sorry, I'm at work on machines I don't have install priviliges for.
I'll try on a more recent one on my Mac when I get home.

[north]
If they installed devel packages on your machine you can build graphviz yourself.

Even if they didn't you can build local copies of all those libraries (I used to anyway)
but it's a bit time consuming. But the computer has a lot of free time so it's just running
autogen/configure and make install about 10 times.

[david]
When I try with a newer version:

twopi - graphviz version 2.26.3 (20100126.1600)

It doesn't crash, but the resulting graph (atteched \<A HREF="b2150.pdf"\>pdf\</A\>) is incomplete:
The root node __TOP__ is missing entirely.
What does anyone else get?

[erg]
I can't reproduce the exact problem, but I do hit an assertion failure.

As a workaround, try changing overlap=false to overlap=prism.

It appears using overlap=false causes the node xs to be given the position
(nan,nan), but only if the node xs_xb is a box.

[david]
overlap=prsim isn't supported in 2.22.x (work machine)
Will try on my home Mac later, which has 2.26.3.

[erg]
Or try overlap=scale
TagsNo tags attached.
AUXILLARY-FILEShttp://www.graphviz.org/bugs/b2150.pdf [^]
DATE-FIXED
FIX-COMMENT
FORMER-ID2150
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT*
VERSION     2.22.2
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker