thanks for testing. My colleague told me that the superbuild used two different versions of libproj, and maybe this could cause the segfault when reading files (don’t know why, but currently this is our best idea)
There is one libproj from OTB and one from GDAL itself that seem to conflict. We will try to recompile with a single one and tell you if it works.
The Superbuild will compile PROJ 4.9.3, (libproj.so.12), and GDAL 3 must be linked with PROJ >= 6 (e.g. libproj.so.15).
So if you want to only use one version of the PROJ library you should use at least version 6. I think the libraries depending on PROJ are GDAL, OSSIM and GEOTIFF.
Thanks for your help. It works now. The problem came from the “old” geotif lib in the superbuild, which in turn made that on older PROJ lib was used, not compatible with the GDAL 3 PROJ lib. When we use only one PROJ lib (libproj.so.15) it works fine.
Yep, oddly the conflicting proj libraries doesn’t seem to cause problem on ubuntu. I updated my opensuse 15.1 docker file to build OTB using only PROJ 6.2 :