Ticket #2897 (closed defect: fixed)
Closing a dataset opened with GDALOpenShared in another thread causes later corruption
|Reported by:||rouault||Owned by:||rouault|
The following sequence is currently broken :
hDS = GDALOpenShared("foo.tif", GA_ReadOnly); (done in thread T1) GDALClose(hDS); (done in thread T2) --> doesn't remove hDS from the set of shared dataset hDS = GDALOpenShared("foo.tif", GA_ReadOnly); (done in thread T1) --> returns previous pointer on destroy object... GDALGetDescription(hDS); --> crash or big Valgrind warnings
Note: See TracTickets for help on using tickets.