Re: [GD-DEVEL] gd-png error: setjmp returns error condition 2
| From: | Per Jessen | Date: | Fri, 27 Mar 2009 06:18:26 +0000 |
| Subject: | Re: [GD-DEVEL] gd-png error: setjmp returns error condition 2 | ||
| References: | 1 2 3 4 5 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-551@lists.php.net to get a copy of this message | ||
Pierre Joye wrote:
> On Thu, Mar 26, 2009 at 9:51 PM, Per Jessen <per@computer.org> wrote:
>> Pierre Joye wrote:
>>
>>> hi,
>>>
>>> On Thu, Mar 26, 2009 at 9:44 PM, Per Jessen <per@computer.org>
>>> 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.
>
> Do you have a backtrace?
I have a few core dumps, but it looks like the stack is being clobbered..
I'll check and see what I've got.
/Per Jessen, Zürich