#6645 closed defect (fixed)
segfault in NCDFGet1DVar
Reported by: | Kurt Schwehr | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.4 |
Component: | default | Version: | 2.0.0 |
Severity: | major | Keywords: | netcdf |
Cc: |
Description
This issue looks to have been around for at least 2 years. It could well be a netcdf bug and not GDAL, but if it is, can we keep GDAL from crashing?
From GDAL at r35350 in trunk on ubuntu 14.04:
gdb gdalinfo set args air.sig995.2014.nc (gdb) r Starting program: /home/schwehr/src/gdal/inst/bin/gdalinfo air.sig995.2014.nc Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6de7cc1 in NCDFGet1DVar (nCdfId=65536, nVarId=2, pszValue=0x7fffffffd348) at netcdfdataset.cpp:8343 8343 CPLsnprintf( szTemp, sizeof(szTemp), "%.16g,", pdfTemp[m] ); (gdb) bt #0 0x00007ffff6de7cc1 in NCDFGet1DVar (nCdfId=65536, nVarId=2, pszValue=0x7fffffffd348) at netcdfdataset.cpp:8343 #1 0x00007ffff6de03dd in netCDFDataset::Open (poOpenInfo=0x7fffffffdb20) at netcdfdataset.cpp:6322 #2 0x00007ffff7073c27 in GDALOpenEx (pszFilename=0x6560f0 "air.sig995.2014.nc", nOpenFlags=66, papszAllowedDrivers=0x0, papszOpenOptions=0x0, papszSiblingFiles=0x0) at gdaldataset.cpp:2757 #3 0x000000000040146f in main (argc=2, argv=0x655f80) at gdalinfo_bin.cpp:132
libs:
ldd /home/schwehr/src/gdal/inst/bin/gdalinfo | egrep 'netcdf|hdf' libnetcdf.so.7 => /usr/lib/libnetcdf.so.7 (0x00007f6f200f6000) libhdf5.so.7 => /usr/lib/x86_64-linux-gnu/libhdf5.so.7 (0x00007f6f1fc5a000) libmfhdfalt.so.0 => /usr/lib/libmfhdfalt.so.0 (0x00007f6f1fa29000) libhdf5_hl.so.7 => /usr/lib/x86_64-linux-gnu/libhdf5_hl.so.7 (0x00007f6f1ad8b000)
dpkg -l | grep '^ii' | egrep 'netcdf|hdf' | grep dev | cut -c-80 ii libhdf4-alt-dev 4.2r10-0ubuntu1 ii libhdf5-dev 1.8.11-5ubuntu7 ii libhdf5-serial-dev 1.8.11-5ubuntu7 ii libhdfeos-dev 2.17v1.00.dfsg.1 ii libnetcdf-dev 1:4.1.3-7ubuntu2
I haven't been able to try with a newer version of netcdf.
Change History (5)
comment:1 by , 8 years ago
comment:5 by , 8 years ago
Milestone: | → 2.0.4 |
---|---|
Version: | svn-trunk → 2.0.0 |
Note:
See TracTickets
for help on using tickets.
A quick ncdump does not crash, but that probably doesn't mean much.