On NetBSD-4.99.58/amd64, two self tests fail: /usr/bin/make check-TESTS Running ../../samples/source/dumpmainxmp ./../../samples/BlueSquares/BlueSquare.ai Running ../../samples/source/dumpmainxmp ./../../samples/BlueSquares/BlueSquare.eps Running ../../samples/source/dumpmainxmp ./../../samples/BlueSquares/BlueSquare.gif Running ../../samples/source/dumpmainxmp ./../../samples/BlueSquares/BlueSquare.jpg [1] Segmentation fault (core dumped) ${DUMPMAINXMP_PR... Failed FAIL: testcore.sh The core dump is in dumpmainxmp, the backtrace is: (gdb) bt #0 0x00007f7ffd3d81d5 in memcpy () from /usr/lib/libc.so.12 #1 0x00000000004621c5 in ComputeTIFFDigest () #2 0x00000000004622f6 in ReconcileUtils::CheckTIFFDigest () #3 0x0000000000458f22 in ImportJTPtoXMP () #4 0x0000000000442f0e in JPEG_MetaHandler::ProcessXMP () #5 0x00000000004381d8 in XMPFiles::GetXMP () #6 0x0000000000437412 in WXMPFiles_GetXMP_1 () #7 0x0000000000407827 in TXMPFiles<std::string>::GetXMP () #8 0x00000000004064cd in ProcessFile () #9 0x00000000004065f3 in main () Looks like a NULL pointer in memcpy. Second failure: Running 3 test cases... unknown location(0): fatal error in "test_xmpfiles": memory access violation test2.cpp(132): last checkpoint *** 1 failure detected in test suite "Master Test Suite" LeakTracker: leaked = 0, errors = 0 FAIL: test2
any chance to get a stacktrace with debug symbols? I don't have a NetBSD to try this.
reopen this bug when you have the requested information
In release 2.0.0, the tests fail the same way: ... Running ../../samples/source/dumpmainxmp ./../../samples/BlueSquares/BlueSquare. jpg [1] Segmentation fault (core dumped) ${DUMPMAINXMP_PR... Failed FAIL: testcore.sh ... Running 3 test cases... unknown location(0): fatal error in "test_xmpfiles": memory access violation test2.cpp(132): last checkpoint *** 1 failure detected in test suite "Master Test Suite" LeakTracker: leaked = 0, errors = 0 FAIL: test2 Backtrace with symbols for dumpmainxmp is: Program terminated with signal 11, Segmentation fault. #0 0x000000000048bdb6 in MD5Update (context=0x7f7fffffb880, input=0xfd2330c6 <Address 0xfd2330c6 out of bounds>, inputLen=8) at MD5.cpp:163 163 std::memcpy (&context->buffer[index], &input[i], inputLen-i); (gdb) bt #0 0x000000000048bdb6 in MD5Update (context=0x7f7fffffb880, input=0xfd2330c6 <Address 0xfd2330c6 out of bounds>, inputLen=8) at MD5.cpp:163 #1 0x0000000000485123 in ComputeTIFFDigest (tiff=@0x7f7ffd2300c0, digestStr=0x7f7fffffb9c0) at ReconcileTIFF.cpp:221 #2 0x00000000004852c0 in ReconcileUtils::CheckTIFFDigest ( tiff=@0x7f7ffd2300c0, xmp=@0x7f7ffd227140) at ReconcileTIFF.cpp:305 #3 0x0000000000472497 in ImportJTPtoXMP (srcFormat=1246774599, lastLegacy=2 '\002', tiff=0x7f7ffd2300c0, psir=@0x7f7ffd208430, iptc=0x7f7ffd208480, xmp=0x7f7ffd227140, options=7) at ReconcileLegacy.cpp:67 #4 0x0000000000453706 in JPEG_MetaHandler::ProcessXMP (this=0x7f7ffd227100) at JPEG_Handler.cpp:692 #5 0x00000000004450f4 in XMPFiles::GetXMP (this=0x7f7ffd208390, xmpObj=0x7f7fffffbc00, xmpPacket=0x7f7fffffbcb8, xmpPacketLen=0x7f7fffffbcb4, packetInfo=0x7f7fffffc100) at XMPFiles.cpp:832 #6 0x000000000044371d in WXMPFiles_GetXMP_1 (xmpFilesRef=0x7f7ffd208390, xmpRef=0x7f7ffd20e080, xmpPacket=0x7f7fffffbcb8, xmpPacketLen=0x7f7fffffbcb4, packetInfo=0x7f7fffffc100, wResult=0x7f7fffffbc80) at WXMPFiles.cpp:247 #7 0x0000000000408274 in TXMPFiles<std::string>::GetXMP (this=0x7f7fffffc130, xmpObj=0x7f7fffffc140, xmpPacket=0x0, packetInfo=0x7f7fffffc100) at ../../public/include/client-glue/TXMPFiles.incl_cpp:278 #8 0x0000000000406c7f in ProcessFile ( fileName=0x7f7fffffeb19 "./../../samples/BlueSquares/BlueSquare.jpg") at DumpMainXMP.cpp:85 #9 0x0000000000406e44 in main (argc=2, argv=0x7f7fffffc630) at DumpMainXMP.cpp:119 Backtrace with symbols for test2 is: (gdb) bt #0 0x00007f7ffd33269a in kill () from /usr/lib/libc.so.12 #1 0x00007f7ffd3d7a99 in abort () from /usr/lib/libc.so.12 #2 0x00007f7ffd3a0f90 in __assert13 () from /usr/lib/libc.so.12 #3 0x000000000040e87e in prepare_test (argc=1, argv=0x7f7fffffd478, filename=0x4aeb70 "../../samples/BlueSquares/BlueSquare.jpg") at utils.cpp:52 #4 0x0000000000408a61 in init_unit_test_suite (argc=1, argv=0x7f7fffffd478) at test2.cpp:193 #5 0x00000000004a60db in boost::unit_test::framework::init () #6 0x000000000049bd06 in boost::unit_test::unit_test_main () #7 0x000000000040882f in ___start () #8 0x00007f7ffdffa000 in ?? () #9 0x0000000000000001 in ?? () #10 0x00007f7ffffff6f8 in ?? () #11 0x0000000000000000 in ?? ()
I just built 2.0.x (the current branch) on NetBSD 4.0/i386 and I didn't run into any problem. Which platform to you run it on?
oops I didn't see: pre-release 4.99 and x86_64 I guess that will be harder to find.
WONTFIX unless you can reproduce on a stable version.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.