<!DOCTYPE html><html><head><title></title><style type="text/css">
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">Hi,<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Someone reported on IRC a similar crash about two weeks ago. As far as I can tell, that one is up to the Cygwin maintainers, so you should report it on their mailing list <a href="https://cygwin.com/lists.html#cygwin">https://cygwin.com/lists.html#cygwin</a>.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Not sure about the Cygwin error and how well-tested GDAL is on that platform. The Conda build might cover it, though.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Laurentiu<br></div><div style="font-family:Arial;"><br></div><div>On Wed, Apr 3, 2024, at 12:39, Nejia Ben Nasr via gdal-dev wrote:<br></div><blockquote type="cite" id="qt" style=""><div class="qt-elementToProof" style="font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);">Hi,<br></div><div class="qt-elementToProof" style="font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);"><br></div><div class="qt-elementToProof" style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);">I downloaded the last version of GDAL package.<br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;"><span style="color:rgb(0, 0, 0);"><span class="size" style="font-size:12pt;">gdalinfo on any tiff file give </span></span><span style="color:rgb(237, 92, 87);background-color:rgb(255, 255, 255);"><span class="size" style="font-size:16px;">"Segmentation fault"</span></span><span style="color:rgb(0, 0, 0);"><span class="size" style="font-size:12pt;">.</span></span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);"><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">$ gdalinfo --version<br> GDAL 3.8.3, released 2024/01/04</span></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"></span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">$ gdalinfo test.tif --config CPL_DEBUG ON</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">GDAL: GDALOpen(test.tif, this=0xa000bbe70) succeeds as GTiff.</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">Driver: GTiff/GeoTIFF</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">Segmentation fault</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);"><span style="background-color:rgb(255, 255, 255);"></span><br></div><div style="background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);"><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);">CALL STACK:<br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cygtiff-6.dll!cygtiff-6!TIFFUnlinkDirectory (Unknown Source:0)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cygwin1.dll!bsearch(const void * key, const void * base, size_t nmemb, size_t size, int (*)(const void *, const void *) compar) (c:\cygwin64\usr\src\debug\cygwin-3.5.0-1\newlib\libc\search\bsearch.c:79)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cygtiff-6.dll!cygtiff-6!TIFFFindField (Unknown Source:0)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cygtiff-6.dll!cygtiff-6!TIFFVGetField (Unknown Source:0)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cygtiff-6.dll!cygtiff-6!TIFFGetField (Unknown Source:0)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cyggeotiff-5.dll!_GTIFGetField(tiff_t * tif, pinfo_t tag, int * count, void * val) (c:\cygwin64\usr\src\debug\libgeotiff-1.7.1-2\geo_tiffp.c:86)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cyggeotiff-5.dll!GTIFNewWithMethodsEx(void * tif, TIFFMethod * methods, GTErrorCallback error_callback, void * user_data) (c:\cygwin64\usr\src\debug\libgeotiff-1.7.1-2\geo_new.c:133)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cyggeotiff-5.dll!GTIFNewEx(void * tif, GTErrorCallback error_callback, void * user_data) (c:\cygwin64\usr\src\debug\libgeotiff-1.7.1-2\geo_new.c:84)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cyggdal-34.dll!GTiffDataset::GTIFNew(TIFF * hTIFF) (c:\cygwin64\usr\src\debug\gdal-3.8.3-1\frmts\gtiff\gtiffdataset.cpp:1613)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cyggdal-34.dll!GTiffDataset::LoadGeoreferencingAndPamIfNeeded(GTiffDataset * const this) (c:\cygwin64\usr\src\debug\gdal-3.8.3-1\frmts\gtiff\gtiffdataset_read.cpp:5833)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cyggdal-34.dll!GTiffRasterBand::GetMetadataItem(GTiffRasterBand * const this, const char * pszName, const char * pszDomain) (c:\cygwin64\usr\src\debug\gdal-3.8.3-1\frmts\gtiff\gtiffrasterband_read.cpp:1532)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">cyggdal-34.dll!GDALRasterBand::GetStatistics(GDALRasterBand * const this, int bApproxOK, int bForce, double * pdfMin, double * pdfMax, double * pdfMean, double * pdfStdDev) (c:\cygwin64\usr\src\debug\gdal-3.8.3-1\gcore\gdalrasterband.cpp:4316)</span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"></span><br></div><div style="text-align:left;text-indent:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"></span><br></div></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);"><span style="background-color:rgb(255, 255, 255);">I also tried to build from sources but it fail:</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">$ cmake .. \</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> -DCMAKE_BUILD_TYPE=Release \</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> -DCMAKE_INSTALL_PREFIX=/cygdrive/d/gdal-release-3.8/install \</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> -DGDAL_USE_INTERNAL_LIBS=ON \</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> -DGDAL_USE_EXTERNAL_LIBS=OFF \</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> -DGDAL_BUILD_OPTIONAL_DRIVERS=OFF \</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> -DOGR_BUILD_OPTIONAL_DRIVERS=OFF </span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"></span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">$ make</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"></span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/map:60,</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> from /cygdrive/d/gdal-release-3.8/gcore/gdal_priv.h:7,</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> from /cygdrive/d//gdal-release-3.8/apps/gdalinfo_lib.cpp:55:</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/stl_tree.h:350:1: error: expected unqualified-id before numeric constant</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> 350 | 1 _Rb_tree_const_iterator(const iterator& __it) _GLIBCXX_NOEXCEPT</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;"> | ^</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">make[2]: *** [apps/CMakeFiles/appslib.dir/build.make:76: apps/CMakeFiles/appslib.dir/gdalinfo_lib.cpp.o] Error 1</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">make[1]: *** [CMakeFiles/Makefile2:3038: apps/CMakeFiles/appslib.dir/all] Error 2</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:white;"><span style="background-color:black;">make: *** [Makefile:146: all] Error 2</span><br></div><div style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);"><br></div><div class="qt-elementToProof" style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);">Is there a Cmake option that I shoud add?<br></div><div class="qt-elementToProof" style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);"><br></div><div class="qt-elementToProof" style="text-align:left;text-indent:0px;background-color:rgb(255, 255, 255);margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);">Thank you for you help!<br></div><div>_______________________________________________<br></div><div>gdal-dev mailing list<br></div><div><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></div><div><br></div></blockquote><div style="font-family:Arial;"><br></div></body></html>