Re: [GD-DEVEL] gd-png error: setjmp returns error condition 2

[email protected] (Per Jessen) Thu, 26 Mar 2009 21:51:19 +0100
Newsgroups php.gd.devel
Organization Per Jessens personal news-server
Message-ID <[email protected]>
Pierre Joye wrote:

> hi,
> 
> On Thu, Mar 26, 2009 at 9:44 PM, Per Jessen <[email protected]> wrote:
>> Per Jessen wrote:
>>
>>> I'm using ImageCreateFromPngPtr() on data that is apparently
>>> incomplete, i.e. not a valid PNG, and I'm getting the error as in
>>> the subject. My own code handles the problem on my end, but after a
>>> couple of more times with the same problem (in the same process), I
>>> get a segfault.
>>
>> I should clarify - the code using ImageCreateFromPngPtr() is a
>> daemon, so after a problematic PNG, ImageCreateFromPngPtr() will be
>> called repeatedly, which is what appears to cause the problem.
> 
> Multithreaded?
> 

Yep, also multithreaded. 


/Per Jessen, Zürich