Segmentation fault in OSSIM 2.7.2
On Debian, Ossim has been upgraded to 2.7.2, but the result is looking bad: https://cdash.orfeo-toolbox.org/viewTest.php?onlyfailed&buildid=11297
The segfaults come from ossimTiffProjectionFactory
:
root@d08d1120c005:/opt/build# gdb --args bin/otbImageIOTestDriver "--compare-ascii" "0.0" "/opt/src/Data/Baseline/OTB/Files/ioTvMultiResolutionReadingInfoOut_tiff.txt" "/opt/build/Testing/Temporary/ioTvMultiResolutionReadingInfoOut_tiff.txt" "otbMultiResolutionReadingInfo" "/opt/src/Data/Input/maur_rgb.tif" "/opt/build/Testing/Temporary/ioTvMultiResolutionReadingInfoOut_tiff.txt"
GNU gdb (Debian 8.2.1-2+b1) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from bin/otbImageIOTestDriver...(no debugging symbols found)...done.
(gdb) r
Starting program: /opt/build/bin/otbImageIOTestDriver --compare-ascii 0.0 /opt/src/Data/Baseline/OTB/Files/ioTvMultiResolutionReadingInfoOut_tiff.txt /opt/build/Testing/Temporary/ioTvMultiResolutionReadingInfoOut_tiff.txt otbMultiResolutionReadingInfo /opt/src/Data/Input/maur_rgb.tif /opt/build/Testing/Temporary/ioTvMultiResolutionReadingInfoOut_tiff.txt
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
2019-07-15 16:09:05 (INFO): Default RAM limit for OTB is 256 MB
2019-07-15 16:09:05 (INFO): GDAL maximum cache size is 798 MB
2019-07-15 16:09:05 (INFO): OTB will use at most 4 threads
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff658dbf7 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() () from /usr/lib/libossim.so.1
(gdb) bt
#0 0x00007ffff658dbf7 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() () from /usr/lib/libossim.so.1
#1 0x00007ffff65332cf in ?? () from /usr/lib/libossim.so.1
#2 0x00007fffffffda40 in ?? ()
#3 0x00007fffffffd9c0 in ?? ()
#4 0x000000000000000c in ?? ()
#5 0x61665f656c616373 in ?? ()
#6 0x00006700726f7463 in ?? ()
#7 0x000055555581ce70 in ?? ()
#8 0x167ef0d427ecc700 in ?? ()
#9 0x0000001000000006 in ?? ()
#10 0x00005555557d8320 in ?? ()
#11 0x000055555581ce60 in ?? ()
#12 0x000055555581ce60 in ?? ()
#13 0x00007fffffffdac0 in ?? ()
#14 0x00007fffffffda40 in ?? ()
#15 0x000055555581ce70 in ?? ()
#16 0x00007ffff6c1a9dc in ossimTiffProjectionFactory::createProjection(ossimImageHandler*) const () from /usr/lib/libossim.so.1
#17 0x00007ffff6bc02a5 in ossimProjectionFactoryRegistry::createProjection(ossimImageHandler*) const () from /usr/lib/libossim.so.1
#18 0x00007ffff68c7d7f in ossimImageGeometryFactory::extendGeometry(ossimImageHandler*) const () from /usr/lib/libossim.so.1
#19 0x00007ffff68c8754 in ossimImageGeometryRegistry::extendGeometry(ossimImageHandler*) const () from /usr/lib/libossim.so.1
#20 0x00007ffff68cc54b in ossimImageHandler::getImageGeometry() () from /usr/lib/libossim.so.1
#21 0x00007ffff759e7d2 in otb::ReadGeometryFromImage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) ()
from /opt/build/lib/libOTBOSSIMAdapters-6.7.so.1
#22 0x00007ffff7d07db2 in otb::ImageFileReader<otb::VectorImage<double, 2u>, otb::DefaultConvertPixelTraits<double> >::GenerateOutputInformation() ()
from /opt/build/lib/libOTBImageIO-6.7.so.1
#23 0x00007ffff56e5c9d in itk::ProcessObject::UpdateOutputInformation() () from /usr/lib/libITKCommon-4.12.so.1
#24 0x0000555555685472 in otbMultiResolutionReadingInfo(int, char**) ()
#25 0x00005555555d39d3 in main ()
For now the Debian build will try to use the older version 2.6.2