Menu

#578 LZMA test segfault on Debian GNU/Linux

2.0 Series
closed-fixed
General (291)
5
2007-02-23
2007-02-23
Paul Wise
No

Using the CVS version I get a segfault and this backtrace running the test program.

(gdb) bt
#0 0xb7cd4639 in free () from /lib/tls/i686/cmov/libc.so.6
#1 0x080782a0 in lzmaDecode (s=0x80a4d68) at Source/7zip/LZMADecode.c:23 7
#2 0x08050b22 in lzmaDecompressor::decompress (this=0xbfe02f4c) at Source/Tests/decompress.cpp:57
#3 0x0804e5dd in CompressionTest::decompress (this=0x80a3580, decompressor=@0xbfe02f4c, in=@0xbfe02c4c, out=@0xbfe02c34) at Source/Tests/compression.cpp:59
#4 0x0804ecd6 in CompressionTest::testCompressDecompress (this=0x80a3580, size_kb=1, compressor=@0xbfe02f10, decompressor=@0xbfe02f4c)
at Source/Tests/compression.cpp:78
#5 0x0804f8f3 in CompressionTest::testCompressDecompress (this=0x80a3580, compressor=@0xbfe02f10, decompressor=@0xbfe02f4c)
at Source/Tests/compression.cpp:87
#6 0x08050190 in lzmaCompressionTest::test (this=0x80a3580) at Source/Tests/compression.cpp:130
#7 0x0804bfb9 in CppUnit::TestCaller<lzmaCompressionTest>::runTest (this=0x80a34a8) at /usr/include/cppunit/TestCaller.h:166
#8 0xb7edae49 in CppUnit::TestCaseMethodFunctor::operator() () from /usr/lib/libcppunit-1.12.so.0
#9 0xb7ecc42e in CppUnit::DefaultProtector::protect () from /usr/lib/libcppunit-1.12.so.0
#10 0xb7ed6a43 in CppUnit::ProtectorChain::ProtectFunctor::operator() () from /usr/lib/libcppunit-1.12.so.0
#11 0xb7ed6764 in CppUnit::ProtectorChain::protect () from /usr/lib/libcppunit-1.12.so.0
#12 0xb7ee32b1 in CppUnit::TestResult::protect () from /usr/lib/libcppunit-1.12.so.0
#13 0xb7edab4d in CppUnit::TestCase::run () from /usr/lib/libcppunit-1.12.so.0
#14 0xb7edb4bd in CppUnit::TestComposite::doRunChildTests () from /usr/lib/libcppunit-1.12.so.0
#15 0xb7edb3ea in CppUnit::TestComposite::run () from /usr/lib/libcppunit-1.12.so.0
#16 0xb7edb4bd in CppUnit::TestComposite::doRunChildTests () from /usr/lib/libcppunit-1.12.so.0
#17 0xb7edb3ea in CppUnit::TestComposite::run () from /usr/lib/libcppunit-1.12.so.0
#18 0xb7ee5960 in CppUnit::TestRunner::WrappingSuite::run () from /usr/lib/libcppunit-1.12.so.0
#19 0xb7ee304a in CppUnit::TestResult::runTest () from /usr/lib/libcppunit-1.12.so.0
#20 0xb7ee57a0 in CppUnit::TestRunner::run () from /usr/lib/libcppunit-1.12.so.0
#21 0xb7ee8f7b in CppUnit::TextTestRunner::run () from /usr/lib/libcppunit-1.12.so.0
#22 0xb7ee8ff2 in CppUnit::TextTestRunner::run () from /usr/lib/libcppunit-1.12.so.0
#23 0x08057d28 in main () at Source/Tests/textrunner.cpp:18

Discussion

  • Amir Szekely

    Amir Szekely - 2007-02-23

    Logged In: YES
    user_id=584402
    Originator: NO

    Couldn't reproduce but I found the problem. The state wasn't zeroed out properly. Thanks, fixed.

     
  • Amir Szekely

    Amir Szekely - 2007-02-23
    • assigned_to: nobody --> kichik
    • status: open --> closed-fixed
     

Log in to post a comment.