[gdal-dev] testclosedondestroydm.test
Andrew C Aitchison
andrew at aitchison.me.uk
Tue Jun 25 07:52:35 PDT 2024
On Tue, 25 Jun 2024, Even Rouault wrote:
>
> Le 25/06/2024 à 16:25, Andrew C Aitchison a écrit :
>> On Tue, 25 Jun 2024, Even Rouault via gdal-dev wrote:
>>
>>> Can you run "gdb autotest/cpp/testclosedondestroydm" , "run" , and when it
>>> crashed "bt" so we have a backtrace of where it crashes (all of that
>>> after running "source ../scripts/setdevenv.sh")
>>
>> It doesn't crash:
>
> Ah, the gtest framework must catch the exception. OK, so after starting gdb
> and before "run", type "catch throw", so that debugger stops when the
> exception is thrown, and then "bt"
#0 0x00007ffff4ebb0f1 in __cxxabiv1::__cxa_throw (obj=0x55555576b940,
tinfo=0x7ffff17bb348 <typeinfo for osgeo::proj::io::FormattingException>,
dest=0x7ffff15e2070 <osgeo::proj::io::FormattingException::~FormattingException()>)
at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:81
#1 0x00007ffff14b2c34 in osgeo::proj::operation::Conversion::_exportToPROJString (this=<optimized out>, formatter=0x55555576b330)
at /usr/include/c++/13/bits/allocator.h:184
#2 0x00007ffff15e357d in osgeo::proj::io::IPROJStringExportable::exportToPROJString[abi:cxx11](osgeo::proj::io::PROJStringFormatter*) const (this=0x5555557797d8, formatter=0x55555576b330) at /usr/src/proj-9.4.0-1build2/src/iso19111/io.cpp:8306
#3 0x00007ffff165548c in pj_obj_create (ctx=0x5555556a0180, objIn=...) at /usr/src/proj-9.4.0-1build2/src/iso19111/c_api.cpp:201
#4 0x00007ffff1662633 in proj_create_conversion (ctx=0x5555556a0180, name=0x0, auth_name=<optimized out>, code=0x0,
method_name=0x0, method_auth_name=0x0, method_code=0x0, param_count=0, params=0x0)
at /usr/include/c++/13/bits/shared_ptr_base.h:1068
#5 0x00007ffff5f6585a in OGRSpatialReference::SetProjCS (this=0x7fffffffb750, pszName=0x555555773320 "NAD27 / UTM zone 11N")
at /home/werdna/gdal/3.9.1/gdal-3.9.1/ogr/ogrspatialreference.cpp:5548
#6 0x00007ffff615c359 in GTIFGetOGISDefnAsOSR (hGTIF=0x555555a063a0, psDefn=0x555555772f80)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/gtiff/gt_wkt_srs.cpp:856
#7 0x00007ffff60ffabe in GTiffDataset::LookForProjectionFromGeoTIFF (this=0x55555569f0e0)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/gtiff/gtiffdataset_read.cpp:4149
#8 0x00007ffff60ff8b3 in GTiffDataset::LookForProjection (this=0x55555569f0e0)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/gtiff/gtiffdataset_read.cpp:4096
#9 0x00007ffff61074e2 in GTiffDataset::GetSpatialRef (this=0x55555569f0e0)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/gtiff/gtiffdataset_read.cpp:6179
#10 0x00007ffff72569cb in GDALProxyPoolDataset::Create (
pszSourceDatasetDescription=0x555555765d90 "/home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gcore/data/byte.tif",
papszOpenOptionsIn=0x0, eAccessIn=GA_ReadOnly, bSharedIn=1, pszOwner=0x7fffffffcfb0 "0x55555569e798")
at /home/werdna/gdal/3.9.1/gdal-3.9.1/gcore/gdalproxypool.cpp:811
#11 0x00007ffff61b6943 in VRTSimpleSource::OpenSource (this=0x555555a27b70)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/vrt/vrtsources.cpp:720
#12 0x00007ffff61b6be5 in VRTSimpleSource::GetRasterBand (this=0x555555a27b70)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/vrt/vrtsources.cpp:774
#13 0x00007ffff61af01b in VRTSourcedRasterBand::SkipBufferInitialization (this=0x5555556a0ff0)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/vrt/vrtsourcedrasterband.cpp:1941
#14 0x00007ffff61a8b14 in VRTSourcedRasterBand::IRasterIO (this=0x5555556a0ff0, eRWFlag=GF_Read, nXOff=0, nYOff=0, nXSize=20,
nYSize=20, pData=0x5555556e62c0, nBufXSize=20, nBufYSize=20, eBufType=GDT_Int32, nPixelSpace=4, nLineSpace=80,
psExtraArg=0x7fffffffd230) at /home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/vrt/vrtsourcedrasterband.cpp:318
#15 0x00007ffff71f09f5 in GDALRasterBand::RasterIO (this=0x5555556a0ff0, eRWFlag=GF_Read, nXOff=0, nYOff=0, nXSize=20, nYSize=20,
pData=0x5555556e62c0, nBufXSize=20, nBufYSize=20, eBufType=GDT_Int32, nPixelSpace=4, nLineSpace=80, psExtraArg=0x7fffffffd230)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/gcore/gdalrasterband.cpp:426
#16 0x00007ffff71f0ae0 in GDALRasterIO (hBand=0x5555556a0ff0, eRWFlag=GF_Read, nXOff=0, nYOff=0, nXSize=20, nYSize=20,
pData=0x5555556e62c0, nBufXSize=20, nBufYSize=20, eBufType=GDT_Int32, nPixelSpace=0, nLineSpace=0)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/gcore/gdalrasterband.cpp:459
#17 0x00007ffff5e09311 in GDALChecksumImage (hBand=0x5555556a0ff0, nXOff=0, nYOff=0, nXSize=20, nYSize=20)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/alg/gdalchecksum.cpp:297
#18 0x0000555555565454 in (anonymous namespace)::testclosedondestroydm_test_Test::TestBody (this=0x5555555d44e0)
at /home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/cpp/testclosedondestroydm.cpp:108
#19 0x000055555559df0f in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ()
#20 0x00005555555847c6 in testing::Test::Run() ()
#21 0x0000555555584985 in testing::TestInfo::Run() ()
#22 0x0000555555584b6f in testing::TestSuite::Run() ()
#23 0x00005555555929dc in testing::internal::UnitTestImpl::RunAllTests() ()
#24 0x000055555559e5e7 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ()
#25 0x0000555555584d68 in testing::UnitTest::Run() ()
#26 0x0000555555566ea4 in RUN_ALL_TESTS () at /usr/include/gtest/gtest.h:2317
#27 0x0000555555566dac in main (argc=1, argv=0x5555556017b0) at /home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/cpp/main_gtest.cpp:55
--
Andrew C. Aitchison Kendal, UK
andrew at aitchison.me.uk
More information about the gdal-dev
mailing list