ALOS/PALSAR cause segfault in GDALImageIO only when not in the data directory
Mantis Issue 54, reported by echristophe, assigned to echristophe, created: 2008-12-12
Step to reproduce: Go into OTB-Data/LargeInput/PALSAR/200801280007/l1data Launch viewer otbImageViewerManager VOL-ALPSRP037120700-H1.1__A Everything is fine (apart from metadata, but this is another story).
Go into OTB-Data/LargeInput Launch viewer otbImageViewerManager PALSAR/200801280007/l1data/VOL-ALPSRP037120700-H1.1__A => Segmentation fault
This is illustrated by the test ioTvImageFileReaderPALSAR.
Traceback gives:
#0 0x00007f310538a050 in strlen () from /lib/libc.so.6 #1 (closed) 0x00007f310591ded0 in std::basic_string<char, std::char_traits, std::allocator >::basic_string () from /usr/bin/../lib/libstdc++.so.6 #2 (closed) 0x00007f310f9944db in OTB_GCP (this=0x7fff17e131a0, psGCP=0x1768280) at /home/christop/OTB/trunk/OTB/Code/IO/otbMetaDataKey.h:153 #3 (closed) 0x00007f310f9903fc in otb::GDALImageIO::InternalReadImageInformation ( this=0x175d770) at /home/christop/OTB/trunk/OTB/Code/IO/otbGDALImageIO.cxx:579 #4 (closed) 0x00007f310f991925 in otb::GDALImageIO::ReadImageInformation ( this=0x175d770) at /home/christop/OTB/trunk/OTB/Code/IO/otbGDALImageIO.cxx:272 #5 (closed) 0x00000000004e6a4b in otb::ImageFileReader<otb::VectorImage<double, 2u> >::GenerateOutputInformation (this=0x173bdf0) at /home/christop/OTB/trunk/OTB/Code/IO/otbImageFileReader.txx:298 #6 (closed) 0x0000000000506ea0 in otb::ImageViewerManager::OpenImage ( this=0x172a900, filename=0x7fff17e14764 "200801280007/l1data/VOL-ALPSRP037120700-H1.1__A") at /home/christop/OTB/trunk/OTB-Applications/ViewerManager/otbImageViewerManager.txx:119 #7 (closed) 0x000000000047e46c in main (argc=2, argv=0x7fff17e142c8) at /home/christop/OTB/trunk/OTB-Applications/ViewerManager/otbImageViewerManager.cxx:40
1231299113 - christopWith OTB -lib: e34fe260a643 -appli: e2f11e615ec6
A segfault also occurs when in the directory traceback: 0x00007f5325bcf408 in OTB_GCP (this=0x7fff2e053390, psGCP=0xffffffff) at /home/christop/OTB/trunk/OTB/Code/IO/otbMetaDataKey.h:152 152 m_Id = std::string(psGCP->pszId); (gdb) bt #0 0x00007f5325bcf408 in OTB_GCP (this=0x7fff2e053390, psGCP=0xffffffff) at /home/christop/OTB/trunk/OTB/Code/IO/otbMetaDataKey.h:152 #1 (closed) 0x00007f5325bc7e62 in otb::GDALImageIO::InternalReadImageInformation (this=0x154d900) at /home/christop/OTB/trunk/OTB/Code/IO/otbGDALImageIO.cxx:580 #2 (closed) 0x00007f5325bc938b in otb::GDALImageIO::ReadImageInformation (this=0x154d900) at /home/christop/OTB/trunk/OTB/Code/IO/otbGDALImageIO.cxx:273 #3 (closed) 0x00000000004ea261 in otb::ImageFileReader<otb::VectorImage<double, 2u> >::GenerateOutputInformation ( this=0x152c330) at /home/christop/OTB/trunk/OTB/Code/IO/otbImageFileReader.txx:298 #4 (closed) 0x000000000050c1c2 in otb::ImageViewerManager<d