[gdal-dev] GDALClose causing segfault
Frank Warmerdam
warmerdam at pobox.com
Tue May 19 14:05:58 EDT 2009
Wendy Fay Stevenson wrote:
> Hi
>
> I'm using the GDAL api on LINUX to warp an image. I open a GIF image, warp it and save it as a Geotiff virtual file. Then I use CreateCopy to create a GIF file. Everything works fine except occasionally it gives a segfault when I attempt to call GDALClose on the original dataset (opened with GDALOpen). It happens about every 1 in six times I run it.
>
> Has anybody else encountered this problem?
> Is there a specific order in which the datasets should be closed?
Wendy,
No reason for this is immediately obvious, but if you are working on
Linux I would strongly encourage you to try your program under valgrind.
It is very good at identifying heap corruption, memory overwrite, post-free
memory use and similar problems.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list