Public bug reported:
When trying to get information on a .nc file, gdalinfo (and many other
uses of gdal on this concrete file) segfaults.
meteogrid@xenial:~$ gdalinfo salida.nc
Segmentation fault
gdb on a similar file shows this:
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x00007ffff7356ec3 in NCDFSafeStrcat
(ppszDest=ppszDest@entry=0x7fffffff1378, pszSrc=pszSrc@entry=0x7ffff787d21d
"}", nDestSize=nDestSize@entry=0x7fffffff1370) at netcdfdataset.cpp:6268
#2 0x00007ffff7357125 in NCDFGetAttr1 (nCdfId=nCdfId@entry=65536,
nVarId=nVarId@entry=7, pszAttrName=pszAttrName@entry=0x7fffffff33f0
"valid_range", pdfValue=pdfValue@entry=0x0,
pszValue=pszValue@entry=0x7fffffff33e8,
bSetPszValue=bSetPszValue@entry=1) at netcdfdataset.cpp:6426
#3 0x00007ffff7357dc4 in NCDFGetAttr (pszValue=0x7fffffff33e8,
pszAttrName=0x7fffffff33f0 "valid_range", nVarId=7, nCdfId=65536) at
netcdfdataset.cpp:6449
#4 netCDFDataset::ReadAttributes (this=this@entry=0x65d0d0, cdfid=65536,
var=7) at netcdfdataset.cpp:4085
#5 0x00007ffff735fcf2 in netCDFDataset::Open (poOpenInfo=<optimized out>) at
netcdfdataset.cpp:4809
#6 0x00007ffff74ae10d in GDALOpenInternal (oOpenInfo=...,
papszAllowedDrivers=papszAllowedDrivers@entry=0x0) at gdaldataset.cpp:2314
#7 0x00007ffff74ae366 in GDALOpenInternal
(pszFilename=pszFilename@entry=0x65c5c0
"NETCDF:mermaid/CTTH/S_NWC_CTTH_MSG3_Europe-VISIR_20161009T000000Z.nc:ctth_quality",
eAccess=eAccess@entry=GA_ReadOnly,
papszAllowedDrivers=papszAllowedDrivers@entry=0x0) at gdaldataset.cpp:2263
#8 0x00007ffff74ae3b7 in GDALOpen (pszFilename=pszFilename@entry=0x65c5c0
"NETCDF:mermaid/CTTH/S_NWC_CTTH_MSG3_Europe-VISIR_20161009T000000Z.nc:ctth_quality",
eAccess=eAccess@entry=GA_ReadOnly) at gdaldataset.cpp:2254
#9 0x0000000000402bb5 in main (argc=2, argv=0x65c580) at gdalinfo.c:183
Thank you very much.
** Affects: gdal (Ubuntu)
Importance: Undecided
Status: New
** Tags: gdal netcdf xenial
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1637228
Title:
xenial gdalinfo segfault on concrete netcdf file
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/1637228/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs