Segfault with multiple bodies?

t0tAl_mElTd0wN

08-06-2008 22:12:10

I'm having an issue at the moment that only makes itself apparent on Windows. It seems as though Newton/OgreNewt is working fine, but then the application segfaults when a second body is added to the world. More specifically, it's during the physics tick just after creating a new OgreNewt::Body. Here is a backtrace of the segfault:


(gdb) bt
#0 0x00510828 in dgSystemMatrixParamSSE::GraphSpanningTree ()
at C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:77
#1 0x3f800000 in ?? ()


As far as I can tell this problem only happens on Windows/MinGW. Any idea what could be causing this?

[edit] The scene I'm currently testing consists of two spheres in an otherwise empty world. The app segfaults even if the spheres are not touching.

t0tAl_mElTd0wN

09-06-2008 04:27:53

Alright, I've managed to solve the problem. For future reference, despite posting them, the static libraries provided for MinGW do /not/ work. Use the DLL.