[gdal-dev] GDALClose causing segfault

Even Rouault even.rouault at mines-paris.org
Tue May 19 14:00:44 EDT 2009


Wendy,

You could try to run Valgrind on your program to get an idea of what goes 
wrong. If you think that it is a GDAL bug and you have a way of reproducing 
it with a small program demonstrating the problem, you could post it as a 
Trac ticket.

Otherwise there is no required order for closing the input or output datasets. 
The only important thing is not to reuse it afterwards of course.

Best regards,
Even

Le Tuesday 19 May 2009 19:49:47 Wendy Fay Stevenson, vous avez écrit :
> 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?
>
> regards
> Wendy
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev




More information about the gdal-dev mailing list