Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000844graphvizDotty/Lneato/Leftypublic2005-03-22 12:392011-04-28 04:03
ReporterFlorian Liekweg 
Assigned Toerg 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-Red Hat Linux release OS Version
Summary0000844: dotty 2.2 fails with ''panic: (file mem.c, line 400, func allocbuffer) ..."
Description



I'm using graphviz-2.2 from www.graphviz.org,
compiled using
./configure --prefix=/usr/public/graphviz-2.2; make; make install
<CD>
Using a tiny file of less than 16MB, I get the following:
bash$ /bin/ls -s ecg.dot
15771 ecg.dot
bash$ wc -l ecg.dot
 112848 ecg.dot
bash$ dotty ecg.dot
panic: (file mem.c, line 400, func allocbuffer) size is too big
Aborted (core dumped)



This appears to occur in lefty/mem.c. Backtrace:
(gdb) bt
#0 0x42028811 in kill () from /lib/i686/libc.so.6
0000001 0x420284a5 in raise () from /lib/i686/libc.so.6
0000002 0x42029bab in abort () from /lib/i686/libc.so.6
0000003 0x0804d6fd in lefty_panic () at common.c:406
0000004 0x08058a5a in allocbuffer (size=32770) at mem.c:400
0000005 0x080582e1 in Mallocate (size=0) at mem.c:158
0000006 0x0805b970 in insert (tp=0x80abf50, ko=0x8dd4710, sk=0x8dd4714 "ctx_4096", vo=0x90c5548) at tbl.c:471
0000007 0x0805b413 in Tinso (to=0x80abf50, ko=0x8dd4710, vo=0x90c5548) at tbl.c:276
0000008 0x0805f88a in D2Linsertnode (name=0x8dd4710 "\003\002\004") at dot2l.c:659
0000009 0x08060c16 in yyparse () at dotparse.y:98
0000010 0x0805e197 in D2Lreadgraph (ioi=4, protograph=0x20008) at dot2l.c:258
#11 0x080571ee in Ireadgraph (argc=2, argv=0x6) at internal.c:815
0000012 0x0804eb8a in efcall (co=0x8314160, ci=135) at exec.c:490
0000013 0x0804e399 in eeval (co=0x8314160, ci=135) at exec.c:337
0000014 0x0804df93 in eeval (co=0x8314160, ci=137447780) at exec.c:244
0000015 0x0804e266 in eeval (co=0x8314160, ci=2016) at exec.c:261
0000016 0x0804e2b6 in eeval (co=0x8314160, ci=137447396) at exec.c:267
0000017 0x0804e52d in eeval (co=0x8314160, ci=1648) at exec.c:387
0000018 0x0804e979 in efcall (co=0x832d188, ci=112) at exec.c:532
0000019 0x0804e399 in eeval (co=0x832d188, ci=112) at exec.c:337
0000020 0x0804e979 in efcall (co=0x82dedac, ci=5) at exec.c:532
0000021 0x0804e399 in eeval (co=0x82dedac, ci=5) at exec.c:337
0000022 0x0804dea7 in Eunit (co=0x82dedac) at exec.c:200
0000023 0x0805744a in main (argc=134724800, argv=0xbfffdbd0) at lefty.c:164
0000024 0x42015967 in __libc_start_main () from /lib/i686/libc.so.6
</CD>
Additional Information

<CD>
Stack frames 0000004 and 0000005 contradict each other:
0000004 0x08058a5a in allocbuffer (size=32770) at mem.c:400
0000005 0x080582e1 in Mallocate (size=0) at mem.c:158
</CD>
Mallocate calls allocbuffer with 'size=0' and it
appears as 'size=32770' in allocbuffer.
<additional_information><![CDATA[

[erg] Not strictly a bug - lefty was built to use shorts as ints,
and the input graph causes this bound to be exceeded. Made the error
message clearer, and now build lefty using integer = int.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID657
INPUT-FILEhttp://www.graphviz.org/bugs/b657.dot [^]
OUTPUT-FILE
STATUS-COMMENTFixed (8 April 2005)
VERSION     2.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 => erg


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