Opened 7 years ago
Closed 6 years ago
#7172 closed defect (invalid)
NetCDF crashes ogrinfo and QGIS.
Reported by: | nathanw | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | 2.2.3 |
Severity: | normal | Keywords: | netCDF, osgeo4w |
Cc: | jef |
Description
NetCDF crashes ogrinfo and QGIS.
The attached NetCDF file will crash QGIS and OGR. Can check using ogrinfo. Attached is the stack trace from QGIS:
Attachments (3)
Change History (7)
by , 7 years ago
Attachment: | 2017-12-08 13_17_30-Oh Uh!.png added |
---|
by , 7 years ago
Attachment: | sfav2_CONUS_24h_2017120800.nc added |
---|
comment:1 by , 7 years ago
Version: | unspecified → 2.2.3 |
---|
comment:2 by , 7 years ago
Cc: | added |
---|---|
Keywords: | osgeo4w added |
by , 7 years ago
Attachment: | minimum.nc added |
---|
netcdf v4 file containing just an attribute of type string
comment:3 by , 7 years ago
I've file the issue as a OSGeo4W issue: https://trac.osgeo.org/osgeo4w/ticket/551
comment:4 by , 6 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Closing as not a GDAL bug, but a OSGeo4W one
Note:
See TracTickets
for help on using tickets.
CC'ing Jürgen, since this is a OSGeo4W specific crash, and more specifically a netcdf/hdf5 one. It is specific to the latest netcdf version in OSGeo4W (4.4.1.1), but cannot be reproduced with the previous one (4.3.0). It is also specific of netcdf v4 files that have at least one attribute of type "string"
Given test.c
compiled with "cl minimal.c /Ie:\osgeo4W64\include e:\OSGeo4W64\lib\netcdf.lib" (with VS 2015 64bit) and minimal.nc (attached) being a netcdf 4 file with just a variable of type string
"minimum.exe minimal.nc" crashes. DrMemory output is