[gdal-dev] Intermittent memory-corruption crashes in GRIB2 import

Andrew C Aitchison andrew at aitchison.me.uk
Sun Nov 14 21:23:25 PST 2021


On Sun, 14 Nov 2021, Simon Eves wrote:

> We have recently implemented a geo raster importer, and all seems fine,
> except that we hit an issue with a particular GRIB2 file from the NOAA
> website, where we get an inconsistent crash inside GDAL after a few hundred
> scanlines.
>
> We have seen two different crashes inside GDAL, and a third in one of our
> code paths, but given that there is a memory corruption, the latter is
> perhaps unsurprising.
>
> All crashes report "double free or corruption (fasttop)".
> We only get the crash occasionally, and have only been able to trap it in
> the Debugger a couple of times, with nothing obviously wrong.
>
> Here is a link to the GRIB2 file in question:
>
> https://drive.google.com/file/d/12Fo6jnIhxzCvnSsup9n0kHVKy9lrHD2l/view?usp=sharing

Is running under valgrind an option ?

-- 
Andrew C. Aitchison					Kendal, UK
 			andrew at aitchison.me.uk


More information about the gdal-dev mailing list