Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000426graphvizOtherpublic2004-06-30 19:002011-04-28 04:02
ReporterDag Lem 
Assigned Toerg 
PlatformOSx86-Linux-2.4 (RedHat Linux 9)OS Version
Summary0000426: gvpr: Segmentation fault

I attempted to make a proof of concept for rankdir=BT using
dot -Tdot to calculate positions, gvpr to change positions, and neato -s72
for rendering.
(I know this can never work perfectly because height must be included
in the calculation of a new pos.y, and height is floating point).

In any case the attached input file causes a segmentation fault in gvpr.
I'm sorry about the size of the input file, it is as small as I could get
it while still reproducing the bug.

See below for command line and gvpr program file.
gvpr -c -f BT.gvpr -o

BEG_G { int max_y = yOf(urOf($.bb)); }
N { int x = xOf($.pos); int y = max_y - yOf($.pos); $.pos = sprintf("%d,%d!", x,
y); }
Steps To Reproduce

digraph test {
    node [label="\N", shape=plaintext];
    graph [bb="0,0,160,204"];
    A [label=<
<table border="0" cellborder="1" cellspacing="0">
  <tr><td colspan="2">This is node A</td></tr>
  <tr><td align="left">xxx</td><td align="left">crash len</td></tr>
>, pos="80,180", width="1.97", height="0.67"];
    B [pos="80,102", width="0.75", height="0.50"];
    C [label=<
<table border="0" cellborder="1" cellspacing="0">
  <tr><td colspan="2">This is node C</td></tr>
  <tr><td align="left">yyy</td><td align="left">crash length</td></tr>
>, pos="80,24", width="2.22", height="0.67"];
    A -> B [pos="e,80,120 80,156 80,148 80,139 80,130"];
    B -> C [pos="e,80,48 80,84 80,76 80,67 80,58"];
Additional Information

[erg] I cannot duplicate the bug.
TagsNo tags attached.
VERSION     1.13.20040629.0415
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

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

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