Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5729 closed defect (fixed)

PCIDSK: File handle is left open upon in case of exception in LLOpen()

Reported by: abarton Owned by: hobu
Priority: normal Milestone: 2.0.0
Component: GDAL_Raster Version:
Severity: normal Keywords: pcidsk
Cc:

Description

A file handle will remain open after an error is thrown when opening a dataset. The file handle will remain open until process termination.

To reproduce

Call gdal.Open() on the attached file. Also occurs with gdal.OpenShared() and using the readonly flag.

Attachments (1)

DM_68350_14450_50_50_1.pix (102.0 KB ) - added by abarton 9 years ago.

Download all attachments as: .zip

Change History (3)

by abarton, 9 years ago

Attachment: DM_68350_14450_50_50_1.pix added

comment:1 by Even Rouault, 9 years ago

Component: PythonBindingsGDAL_Raster
Keywords: pcidsk added; python bindings removed
Milestone: 2.0
Resolution: fixed
Status: newclosed
Summary: File handle is left open upon gdal error using python bindingsPCIDSK: File handle is left open upon in case of exception in LLOpen()
Version: 1.11.0

trunk r27926 "PCIDSK: close dataset in case of exception in PCIDSK2Dataset::LLOpen() (#5729)"

Could be potentially backported although there's some risk in case the exception would leave the dataset in a unstable state.

comment:2 by Even Rouault, 9 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.