On Tue, 25 Jun 2024, Even Rouault via gdal-dev wrote:

Le 25/06/2024 à 16:52, Andrew C Aitchison a écrit :
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"

Ok, those that occur in PROJ are expected and not fatal. Go on with "cont" (you may need to skip another one occurring in proj_crs_get_coordoperation())

This is the exception after proj_crs_get_coordoperation()
(I also scripted backtraces after every exception until the run completes;
at https://www.aitchison.me.uk/gdal/gdb.testclosedondestroydm ):

(gdb) cont
Continuing.

Catchpoint 1 (exception thrown), 0x00007ffff4ebb0f1 in __cxa_throw () from 
/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007ffff4ebb0f1 in __cxa_throw () from 
/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007ffff14b2c34 in ?? () from /lib/x86_64-linux-gnu/libproj.so.25
#2  0x00007ffff15e357d in 
osgeo::proj::io::IPROJStringExportable::exportToPROJString[abi:cxx11](osgeo::proj::io::PROJStringFormatter*)
 const ()
   from /lib/x86_64-linux-gnu/libproj.so.25
#3  0x00007ffff165548c in ?? () from /lib/x86_64-linux-gnu/libproj.so.25
#4  0x00007ffff1662633 in proj_create_conversion () from 
/lib/x86_64-linux-gnu/libproj.so.25
#5  0x00007ffff5f6585a in OGRSpatialReference::SetProjCS (this=0x7fffffffb800, 
pszName=0x555555cfc180 "NAD27 / UTM zone 11N")
    at /home/werdna/gdal/3.9.1/gdal-3.9.1/ogr/ogrspatialreference.cpp:5548
#6  0x00007ffff615c359 in GTIFGetOGISDefnAsOSR (hGTIF=0x555555b84150, 
psDefn=0x555555a34720) at 
/home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/gtiff/gt_wkt_srs.cpp:856
#7  0x00007ffff60ffabe in GTiffDataset::LookForProjectionFromGeoTIFF 
(this=0x555555cfb190) at 
/home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/gtiff/gtiffdataset_read.cpp:4149
#8  0x00007ffff60ff8b3 in GTiffDataset::LookForProjection (this=0x555555cfb190) 
at /home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/gtiff/gtiffdataset_read.cpp:4096
#9  0x00007ffff61074e2 in GTiffDataset::GetSpatialRef (this=0x555555cfb190) at 
/home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/gtiff/gtiffdataset_read.cpp:6179
#10 0x00007ffff71d98a0 in GDALDataset::GetProjectionRef (this=0x555555cfb190) 
at /home/werdna/gdal/3.9.1/gdal-3.9.1/gcore/gdaldataset.cpp:1148
#11 0x00007ffff64151f2 in TILDataset::Open (poOpenInfo=0x7fffffffd310) at 
/home/werdna/gdal/3.9.1/gdal-3.9.1/frmts/til/tildataset.cpp:326
#12 0x00007ffff71c45c1 in GDALDriver::Open (this=0x5555556259b0, 
poOpenInfo=0x7fffffffd310, bSetOpenOptions=false) at 
/home/werdna/gdal/3.9.1/gdal-3.9.1/gcore/gdaldriver.cpp:116
#13 0x00007ffff71ddf25 in GDALOpenEx (pszFilename=0x5555555a02d8 
"/home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/data/til/testtil.til", 
nOpenFlags=66,
    papszAllowedDrivers=0x0, papszOpenOptions=0x0, papszSiblingFiles=0x0) at 
/home/werdna/gdal/3.9.1/gdal-3.9.1/gcore/gdaldataset.cpp:3780
#14 0x00007ffff71dd2a2 in GDALOpen (pszFilename=0x5555555a02d8 
"/home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/data/til/testtil.til", 
eAccess=GA_ReadOnly)
    at /home/werdna/gdal/3.9.1/gdal-3.9.1/gcore/gdaldataset.cpp:3441
#15 0x0000555555565548 in (anonymous 
namespace)::testclosedondestroydm_test_Test::TestBody (this=0x5555555d44e0)
    at 
/home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/cpp/testclosedondestroydm.cpp:125
#16 0x000055555559df0f in void 
testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, 
void>(testing::Test*, void (testing::Test::*)(), char const*) ()
#17 0x00005555555847c6 in testing::Test::Run() ()
#18 0x0000555555584985 in testing::TestInfo::Run() ()
#19 0x0000555555584b6f in testing::TestSuite::Run() ()
#20 0x00005555555929dc in testing::internal::UnitTestImpl::RunAllTests() ()
#21 0x000055555559e5e7 in bool 
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(testing::internal::UnitTestImpl*, bool 
(testing::internal::UnitTestImpl::*)(), char const*) ()
#22 0x0000555555584d68 in testing::UnitTest::Run() ()
#23 0x0000555555566ea4 in RUN_ALL_TESTS () at /usr/include/gtest/gtest.h:2317
#24 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
                   and...@aitchison.me.uk
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to