gdal_translate segfault when translating ERS to NetCDF.
|Reported by:||JoshVote||Owned by:||warmerdam|
|Severity:||normal||Keywords:||gdal_translate netcdf large segfault|
Currently I have a 'large' 8GB ER Mapper (ERS) dataset that I want to convert to a NetCDF file with gdal_translate which always results in a segfault when using the following command:
gdal_translate -of netCDF source.ers output.nc
Whereas translating small < 4GB subsets taken from various locations within the source dataset works as expected
gdal_translate -of netCDF -srcwin 0 0 100 100 source.ers output-subset.nc
gdal_translate -of netCDF -srcwin 50000 40000 100 100 source.ers output-subset.nc
It may be a red herring but the segfault ONLY occurs after an 8GB NetCDF file has been almost entirely written.
This testing has been done under Debian Squeeze with GDAL trunk (rev 22206) built from source and the NetCDF 4.1.1 libraries.
I've attached the ERS header for the dataset I am attempting to translate.