Ticket #2897 (closed defect: fixed)
Closing a dataset opened with GDALOpenShared in another thread causes later corruption
| Reported by: | rouault | Owned by: | rouault |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6.1 |
| Component: | GDAL_Raster | Version: | 1.6.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
