Patrick, with your updated script, the good & bad news is that I can reproduce it quite reliably, including with GDAL master on a debug build. I strongly suspect a subtle race issue in the global GDAL block cache or in the way the GTiff driver interacts with it, rather than something Python specific.
Even -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev