Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000935graphvizDotpublic2005-08-03 14:342011-04-28 04:03
ReporterMarius Mikucionis 
Assigned Toellson 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0000935: segfault in dot
Description



Not sure whether it is connected to 305375, but I don't know how to work arround the segfault, it's very anoying and I can't work with it.
obviously there is memory mishandling somewhere.
valgrind can locate the illegal segment read in the code, it should be easy to find and fix with debug info built in.
I attach the dot file, verbose dot output and valgrind output.
The bug is reproducable via command line:
dot -Tps -ocompressor.ps compressor.dot
(I tried different formats, but it breaks no matter which).
Additional Information

[erg] debian Bug#321128
 
[mmikucionis]
Valgrind output:
<CD>
==9257== Memcheck, a memory error detector for x86-linux.
==9257== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==9257== Using valgrind-2.4.1, a program supervision framework for x86-linux.
==9257== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==9257== For more details, rerun with: -v
==9257==
==9257== Invalid read of size 4
==9257== at 0x1BAFAFD5: (within /usr/lib/graphviz/libdotgen.so.0.0.0)
==9257== by 0x1BAFA775: dot_splines (in /usr/lib/graphviz/libdotgen.so.0.0.0)
==9257== by 0x1BAF2129: dot_layout (in /usr/lib/graphviz/libdotgen.so.0.0.0)
==9257== by 0x8048929: (within /usr/bin/dot)
==9257== by 0x1BB6096F: __libc_start_main (in /lib/tls/i686/cmov/libc-2.3.2.so)
==9257== by 0x8048790: (within /usr/bin/dot)
==9257== Address 0x94 is not stack'd, malloc'd or (recently) free'd
==9257==
==9257== Process terminating with default action of signal 11 (SIGSEGV)
==9257== Access not within mapped region at address 0x94
==9257== at 0x1BAFAFD5: (within /usr/lib/graphviz/libdotgen.so.0.0.0)
==9257== by 0x1BAFA775: dot_splines (in /usr/lib/graphviz/libdotgen.so.0.0.0)
==9257== by 0x1BAF2129: dot_layout (in /usr/lib/graphviz/libdotgen.so.0.0.0)
==9257== by 0x8048929: (within /usr/bin/dot)
==9257== by 0x1BB6096F: __libc_start_main (in /lib/tls/i686/cmov/libc-2.3.2.so)
==9257== by 0x8048790: (within /usr/bin/dot)
==9257==
==9257== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 49 from 1)
==9257== malloc/free: in use at exit: 929858 bytes in 10665 blocks.
==9257== malloc/free: 334463 allocs, 323798 frees, 60880528 bytes allocated.
==9257== For counts of detected errors, rerun with: -v
==9257== searching for pointers to 10665 not-freed blocks.
==9257== checked 1368352 bytes.
==9257==
==9257== LEAK SUMMARY:
==9257== definitely lost: 45802 bytes in 529 blocks.
==9257== possibly lost: 0 bytes in 0 blocks.
==9257== still reachable: 884056 bytes in 10136 blocks.
==9257== suppressed: 0 bytes in 0 blocks.
==9257== Use --leak-check=full to see details of leaked memory.
</CD>

[ellson] On my x86_64 with latest CVS sources I get an output graph, but with these stderr messages:

[email protected]:~> dot compressor.dot >/dev/null
Error: lost IUT_ActionHandler ENV_Action edge
Error: lost IUT_ActionHandler ENV_Action edge
Error: lost IUT_ActionHandler ENV_Action edge
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID755
INPUT-FILEhttp://www.graphviz.org/bugs/b755.dot [^]
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 => user695


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