Opened 7 years ago

Closed 7 years ago

Last modified 6 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 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by abarton

Attachment: DM_68350_14450_50_50_1.pix added

comment:1 Changed 7 years ago by Even Rouault

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 Changed 6 years ago by Even Rouault

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.