Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000915graphvizDotpublic2005-06-25 11:102011-04-28 04:03
ReporterRyan Schmidt6 
Assigned Toerg 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSMac-OSX-10.4.1OS Version
Summary0000915: HTML-like labels cause bus error (crash)
Description



There seems to be a problem with HTML-like labels:
<CD>
$ cd /tmp
$ curl -O http://graphviz.org/cvs/doc/info/html3.dot [^]
$ dot -Tpng html3.dot > html3.png
Error: syntax error in line 0
Bus error



My dot was installed by using DarwinPorts 1.001.



$ sudo port install graphviz
...
$ dot -V
dot version 2.2.1 (Fri Jun 24 22:27:02 GMT 2005)



Perhaps the Mac OS X crash reporter output is useful:






Date/Time: 2005-06-25 16:12:33.079 +0200
OS Version: 10.4.1 (Build 8B15)
Report Version: 3



Command: dot
Path: /opt/local/bin/dot
Parent: bash [424]



Version: ??? (???)



PID: 466
Thread: 0



Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000



Thread 0 Crashed:
0 libcommon.0.dylib 0x00212c88 htmlerror + 92 (htmllex.c:58)
1 libcommon.0.dylib 0x00213894 htmlparse + 1616 (y.tab.c:1614)
2 libcommon.0.dylib 0x00213a64 parseHTML + 120 (htmlparse.y:444)
3 libcommon.0.dylib 0x00215b60 make_html_label + 44 (htmltable.c:1431)
4 libcommon.0.dylib 0x00234540 common_init_node + 360 (utils.c:763)
5 libdotgen.0.dylib 0x003fccb8 dot_init_node + 28 (dotinit.c:43)
6 libdotgen.0.dylib 0x003fce90 dot_init_node_edge + 40 (dotinit.c:80)
7 libdotgen.0.dylib 0x003fd338 dot_layout + 32 (dotinit.c:214)
8 dot 0x00002b98 main + 164 (dot.c:71)
9 dot 0x00002310 _start + 344 (crt.c:272)
10 dot 0x000021b4 start + 60



Thread 0 crashed with PPC Thread State:
  srr0: 0x00212c88 srr1: 0x0000d030 vrsave: 0x00000000
    cr: 0x24008482 xer: 0x20000007 lr: 0x00212c84 ctr: 0x900138a0
    r0: 0x00212c84 r1: 0xbfffef80 r2: 0x00000000 r3: 0x00000000
    r4: 0x00000000 r5: 0x00000018 r6: 0x0000200a r7: 0x00000018
    r8: 0x00000008 r9: 0x00000000 r10: 0x0024287b r11: 0x22008442
   r12: 0x900138a0 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
   r16: 0x00000000 r17: 0x00000000 r18: 0xbffff008 r19: 0x00000000
   r20: 0xbffff198 r21: 0x000000c8 r22: 0x00000190 r23: 0x00000000
   r24: 0x00000000 r25: 0xbffff008 r26: 0xbffff198 r27: 0xbffff008
   r28: 0x00000000 r29: 0x00242930 r30: 0x0024efe0 r31: 0x00212c34
</CD>
Steps To Reproduce

digraph structs {
    struct1 [label=<<TABLE><TR><TD>line 1</TD></TR></TABLE>>];
}
Additional Information

[ellson] It looks like its crashing during the generation of an error report, which might be one problem, but the other problem is why is it generating the error in the first place. I don't get errors with html3.dot, or with your simpler test case, with graphviz-2.2.1 on Linux x86_64.

Can you do a "make distclean" and re ./configure and make ? (I'm wondering if the shipped version of the yacc generated htmlparse.c is broken on the Mac due to byte-ordering. Doing a "make distclean" will cause them to be regenerated.)
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID734
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     2.2.1
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 => erg


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