[ODE] ODE / Mac OS X Crash

Kevin Reid kpreid at attglobal.net
Sun Apr 14 06:50:01 2002


> On Fri, 5 Apr 2002, Kevin Reid wrote:
> 
> >   Thread 0 Crashed:
> >    #0   0x0001a028 in dSolveLCP(int, double *, double *, double *, double
> > *, int, double *, double *, int *)
> >    #1   0x000047b4 in processIslands(dxWorld *, double)
> 
> This sounds an awful lot like the crashes I was getting under Windows, due
> to ODE's use of stack (rather than heap) allocation.  I had code working
> on Linux (because Linux grows the stack automatically to satisfy the
> allocation request), but failing on Win 2k (because the stack size is
> fixed under Win 2k).
> 
> Do you know if OS X will grow the stack automatically?  If there's a
> linker option to set the stack size, try doubling or tripling it from the
> current size.

I tried setting the stack size larger and it didn't crash. Strange, I
thought Mac OS X would grow the stack. Maybe it's a matter of the
maximum size of the stack's address space.

-- 
Kevin Reid