[gdal-dev] testclosedondestroydm.test

Andrew C Aitchison andrew at aitchison.me.uk
Tue Jun 25 07:25:55 PDT 2024


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:

(gdb) run
Starting program: 
/home/werdna/gdal/3.9.1/gdal-3.9.1.gnu/autotest/cpp/testclosedondestroydm
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from testclosedondestroydm
[ RUN      ] testclosedondestroydm.test
ERROR 4: /home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/data/dimap/rgbsmall.tif: No such file or directory
ERROR 3: Checksum value could not be computed due to I/O read error.
ERROR 4: /home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/tmp/cache/file9_j2c.ntf: No such file or directory Warning 1: byte3.tif: File open for read-only accessing, creating mask externally.
ERROR 4: `/home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/data/sid/mercator.sid' not recognized as being in a supported file format.
unknown file: Failure
C++ exception with description "basic_string::_M_create" thrown in the test body.

[  FAILED  ] testclosedondestroydm.test (112 ms)
[----------] 1 test from testclosedondestroydm (112 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (112 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] testclosedondestroydm.test

  1 FAILED TEST
[Inferior 1 (process 889503) exited with code 01]
(gdb) bt
No stack.

----------------------------------------------------------

ln -s ../rgbsmall.tif autotest/gdrivers/data/dimap/rgbsmall.tif
 	gets rid of the lines:
ERROR 4: /home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/data/dimap/rgbsmall.tif: No such file or directory
ERROR 3: Checksum value could not be computed due to I/O read error.
 	but otherwise the same failures.

I do not have the MrSID SDK, so not recognizing mercator.sid is expected.

Would an strace be any use ? Any particular options ?


> Le 25/06/2024 à 15:14, Andrew C Aitchison via gdal-dev a écrit :
>> 
>> This is not a new failure, so thre is no need for this to hold up 3.9.1.
>> 
>> System: Ubuntu 24-04/Noble on Intel x86-64.
>> # ctest --output-on-failure
>> 
>>  ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ----
>> 
>> 28/51 Test #28: test-closed-on-destroy-DM ........***Failed 0.19 sec
>> [==========] Running 1 test from 1 test suite.
>> [----------] Global test environment set-up.
>> [----------] 1 test from testclosedondestroydm
>> [ RUN      ] testclosedondestroydm.test
>> ERROR 4: 
>> /home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/data/dimap/rgbsmall.tif: 
>> No such file or directory
>> ERROR 3: Checksum value could not be computed due to I/O read error.
>> ERROR 4: 
>> /home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/tmp/cache/file9_j2c.ntf: 
>> No such file or directory
>> Warning 1: byte3.tif: File open for read-only accessing, creating mask 
>> externally.
>> ERROR 4: 
>> `/home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/data/sid/mercator.sid' 
>> not recognized as being in a supported file format.
>> unknown file: Failure
>> C++ exception with description "basic_string::_M_create" thrown in the test 
>> body.
>> 
>> [  FAILED  ] testclosedondestroydm.test (157 ms)
>> [----------] 1 test from testclosedondestroydm (157 ms total)
>> 
>> [----------] Global test environment tear-down
>> [==========] 1 test from 1 test suite ran. (157 ms total)
>> [  PASSED  ] 0 tests.
>> [  FAILED  ] 1 test, listed below:
>> [  FAILED  ] testclosedondestroydm.test
>> 
>>  1 FAILED TEST
>> 
>>  ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ----
>> 
>> Indeed
>> /home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/data/dimap/rgbsmall.tif
>> does not exist, but
>> /home/werdna/gdal/3.9.1/gdal-3.9.1/autotest/gdrivers/data/rgbsmall.tif
>> does.
>> (I cannot find a file9_j2c with any extension anywhere, but I guess it is 
>> supposed to be built at test time.)
>> 
>> Full ctest log at:
>>     https://www.aitchison.me.uk/gdal/ctest.391.gnu.errlog
>>

-- 
Andrew C. Aitchison                      Kendal, UK
                    andrew at aitchison.me.uk


More information about the gdal-dev mailing list