Opened 18 years ago

Closed 17 years ago

#981 closed defect (worksforme)

GDALOpen and GDALOpenShared locks corrupted tiff file

Reported by: tlikkhoo@… Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description (last modified by warmerdam)

Hi,

First, thank you for creating such a great library.

I tried loading a tiff file which was unfortunately corrupted. The function rightfully returns a NULL GDALDatasetH. However, when I try to rename or remove the corrupted file in my program, it is locked. I tried removing it using Windows Explorer while the program is still running but that doesn't work too. However it works when the program exits.

I can't provide you with the file because it is very huge (~700MB).

It might be a problem with the function failing to close the handle properly. I would appreciate it if you could look into the problem. Thanks.

Warmest Regards.

Toh Lik Khoong }}}

Change History (2)

comment:1 by warmerdam, 18 years ago

Toh Lik, 

What version of GDAL were you using?  Were you using the built in 
libtiff?  Could you possibly verify if you get the same issue with 
the latest FWTools builds (http://fwtools.maptools.org). 

I imagine the file isn't being closed, but there have been some fixes in this
area, and I don't want to try and reproduce it if the problem is already fixed.

Best regards,
Frank

comment:3 by warmerdam, 17 years ago

Description: modified (diff)
Priority: highnormal
Resolution: worksforme
Status: assignedclosed

Closing for lack of feedback. I suspect reproducing this might depend on the particulars of how the file is corrupt, and therefore at one point things fail.

Note: See TracTickets for help on using tickets.