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

Martin C. Martin martin at metahuman.org
Wed Feb 11 08:02:01 MST 2004


Search the docs for "stack," and you'll see at least two things you can do.

- Martin

Olivier Michel wrote:

> Hi there,
> 
> 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 ? Shall I try to 
> replace it by something like:
> 
> dLCP *lcp = new dLCP(...);
> 
> Any hint would be appreciated.
> 
> -Olivier
> 
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list