Opened 11 years ago

Closed 11 years ago

#5103 closed defect (fixed)

HDF5 file descriptor remains after closed

Reported by: tomyun Owned by: Even Rouault
Priority: normal Milestone: 1.10.1
Component: GDAL_Raster Version: 1.10.0
Severity: normal Keywords: hdf5
Cc: antonio


It is suspicious that HDF5 files are not properly closed when GDALClose() is called. A snippet below may reproduce the issue.

from osgeo import gdal
ds = gdal.Open('test.h5')
# at this point, `lsof | grep test.h5` should show an open descriptor.
ds = None
# at this point, `lsof | grep test.h5` should show nothing, but it persists.

Same test with other formats like tiff worked flawlessly. It doesn't look like Python-only, as multiple gdal_translate calls from a process still showed a bunch of open descriptors, even after each command had been terminated.

It might be relevant to the delayed close described in HDF5 API, though I have no clue to address it.

Change History (3)

comment:1 by antonio, 11 years ago

Cc: antonio added

comment:2 by Even Rouault, 11 years ago

Owner: changed from warmerdam to Even Rouault
Status: newassigned

comment:3 by Even Rouault, 11 years ago

Milestone: 1.10.1
Resolution: fixed
Status: assignedclosed

Fixed in trunk (r26061) and branches/1.10 (r26062)

Note: See TracTickets for help on using tickets.