[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Openexr-devel] stack overflow in openexr
From: |
Luc-Eric Rousseau |
Subject: |
RE: [Openexr-devel] stack overflow in openexr |
Date: |
Wed, 8 Mar 2006 15:37:01 -0500 |
We actually had this stack overflow problem on Linux, as the OpenEXR code was
running a secondary thumbnail thread which didn't have enough stack. We
changed it to use the Windows code. I don't think it's a great candidate for a
platform define, it just assumes a lot of stack is available no matter the
plateform. Ideally it should be changed to allocate from the heap after a
certain threshold.
------------------
Luc-Eric Rousseau
Team Leader, User Interface
Softimage|XSI
> -----Original Message-----
> From: Drew Hess
> Sent: Wednesday, March 08, 2006 2:36 PM
> To: Nicholas Chapman
> Cc: address@hidden
> Subject: Re: [Openexr-devel] stack overflow in openexr
>
>
>
> Sorry for the mess. We're going to try to clean up the couple of
> remaining PLATFORM_* defines that are needed to compile the code; it's
> a leftover of our internal build system.
> >
> >>
> >> The stack-overflow problem occurred on Windows as well as the Mac
> >> (both OS X and OS 9). Make sure that PLATFORM_WINDOWS is being
> >> defined in your build system, so that the large arrays will be
> >> allocated in the heap instead of the stack. See ImfAutoArray.h for
> >> details.