2017.05.21 19:28 "[Tiff] Libtiff 4.0.8 released", by Bob Friesenhahn

2017.05.26 14:32 "Re: [Tiff] Sporadic crash on Windows when appending images to TIFF file", by Dinesh Iyer

Hi Bob,

Just a quick follow up on this issue.

Full disclosure: I have not tried this on 4.0.8.

I was able to reproduce this issue by just calling TIFFOpenW(fileName, "a") followed by TIFFClose() repeatedly without writing any image data. The TIFF library error generated is:

TIFFOpen: myfile.tif: Cannot open.

which is generated when the call to CreateFileW in tif_win32.c fails? Again this failure happens sporadically.

I added a guard in my code to retry opening the file if an error occurs with a pause 0.1 seconds between retries (max 5 retries) and the errors seemed to have gone away.

This might be a Windows file handling issue.

Dinesh

On Wed, May 24, 2017 at 3:33 PM, Dinesh Iyer <dsi.maillist@gmail.com> wrote:

Thanks Bob!

That makes sense... I will upgrade to the latest version and let you know if this bug has been fixed as a side effect.

Dinesh

On Wed, May 24, 2017 at 3:19 PM, Bob Friesenhahn < bfriesen@simple.dallas.tx.us> wrote:

> Hi Bob,

Does that mean that this issue has been fixed in 4.0.8? The process of upgrading a library version is non-trivial in our workplace and so if

>>> this

bug has been indeed fixed, I would be happy to move to the latest

>>> version.

I am unable to tell you if the problem is fixed. What I can tell you is that active libtiff developers are not usually using Windows for development (although Windows is supported) so it is not getting as much developer testing under Windows as it should. We rely on the larger community to help assure that libtiff is working correctly under Windows.

A large number of bugs and security issues have been fixed since 4.0.0. The fixes we are aware of are mentioned in the change logs, but some issues which were fixed could have unknown side effects.

> To look at the change logs, first go to http://www.simplesystems.org/l > ibtiff/v4.0.8.html, and after reading that page, click on v4.0.7, read

that page, click on v4.0.6, etc.

Bob

Dinesh

On Wed, May 24, 2017 at 12:21 PM, Bob Friesenhahn < bfriesen@simple.dallas.tx.us> wrote:

>>> On Wed, 24 May 2017, Dinesh Iyer wrote:

>>> Hi everyone,
>>>
>>>> I am using libTIFF 4.0.0 and I am receiving a sporadic error/crash

>>>>> when I

>>>> am trying to write multiple images to a TIFF file only on Windows.
>>>>
>>>>
>>> Your first step should be to update to libtiff 4.0.8, which was released

>>> this past weekend. It does not make sense to use an old version which >>> contains many bugs which are already fixed.

Bob
--
Bob Friesenhahn

>>> bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/u
>>> sers/bfriesen/

GraphicsMagick Maintainer, http://www.GraphicsMagick.org/

>> sers/bfriesen/


GraphicsMagick Maintainer, http://www.GraphicsMagick.org/