On 31/07/07, Nathaniel Troutman <loc...@ya...> wrote:
> Hello,
>
> I'm getting frequent crashes from ODE on my mac with this error:
> Exception: EXC_BAD_ACCESS (0x0001)
> Codes: KERN_INVALID_ADDRESS (0x0001) at 0xafff6b44
>
> Checking the stack the crashs frequently happen in the function: dInternalStepIsland_x2
>
> Any clue as to where things might be going wrong?
Maybe running out of stack space? Not sure how big OSX stack size is.
I've never used a Mac so not sure if this will work, but under linux
with bash you can change the stack size with "ulimit -s 16384" (or
higher) from a bash shell before running your code (from the same
shell).
If that doesn't work, your code might be corrupting memory
somewhere... could be anything if you're using C, Python is a bit more
limited (possibly a wrapper bug, possibly something you do in an odd
order - the wrappers aren't bullet proof). Running valgrind with the
python suppressions file should report see any memory issues.
svn.python.org/projects/python/trunk/Misc/valgrind-python.supp
Probably best to update to all the latest versions of ode, pyode to
make sure this but isn't already fixed first.
|