[ODE] SIGSEGV in dSolveLCP() at ode/src/lcp.cpp:1137

Adam D. Moss adam at gimp.org
Wed Feb 11 11:51:43 MST 2004

Olivier Michel wrote:
> I have a bug in my ODE simulation which occurs in ODE dSolveLCP() 
> function after a while and when two objects enter in collision, but I 
> don't understand why a SIGSEGV occurs while creating a stack object in 
> ode/src/lcp.cpp:1137. Here is what I get from gdb (under Linux/woody):
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 6180)]
> 0x0817333e in dSolveLCP (n=351, A=0xbfef1630, x=0xbfeef480, b=0xbfeeff90,
>   w=0xbfeee970, nub=0, lo=0xbfff9af0, hi=0xbfff8fe0, findex=0xbfff8a54)
>   at ode/src/lcp.cpp:1137
> 1137      dLCP lcp 
> (n,nub,A,x,b,w,lo,hi,L,d,Dell,ell,delta_w,state,findex,p,C,Arows);
> How can the creation of a dLCP object cause a SIGSEGV ?

Excessive stack usage.  dWorldStep()'ll do that do you.
See the manual about stack usage.

Adam D. Moss   . ,,^^   adam at gimp.org   http://www.foxbox.org/   co:3
"At this point the rocket becomes engorged with astronauts."

More information about the ODE mailing list