Changing the 'createSolverThreadSupport', from 'Win32ThreadSupport' to 'SequentialThreadSupport', yields the following stacktrace:
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
0x00421ca7 in btSetupContactConstraint(PfxConstraintRow&, PfxConstraintRow&, PfxConstraintRow&, float, float, float, Vectormath::Aos::Vector3 const&, Vectormath::Aos::Vector3 const&, Vectormath::Aos::Vector3 const&, TrbState const&, TrbState const&, PfxSolverBody&, PfxSolverBody&, float, float) ()
(gdb) backtrace
#0 0x00421ca7 in btSetupContactConstraint(PfxConstraintRow&, PfxConstraintRow&, PfxConstraintRow&, float, float, float, Vectormath::Aos::Vector3 const&, Vectormath::Aos::Vector3 const&, Vectormath::Aos::Vector3 const&, TrbState const&, TrbState const&, PfxSolverBody&, PfxSolverBody&, float, float) ()
#1 0x00422206 in CustomSetupContactConstraintsTask(PfxSortData16*, unsigned int, TrbState*, PfxSolverBody*, unsigned int, float, float) ()
#2 0x0042234e in SolverThreadFunc(void*, void*) ()
#3 0x0042417e in btParallelConstraintSolver::solveGroup(btCollisionObject**, int, btPersistentManifold**, int, btTypedConstraint**, int, btContactSolverInfo const&, btIDebugDraw*, btStackAlloc*, btDispatcher*) ()
#4 0x00434f45 in btDiscreteDynamicsWorld::solveConstraints(btContactSolverInfo&) ()
#5 0x00431ce7 in btDiscreteDynamicsWorld::internalSingleStepSimulation(float) ()
#6 0x0042fbaa in btDiscreteDynamicsWorld::stepSimulation(float, int, float) ()
//ABOVE = BULLET
//BELOW = OUR ENGINE
Code: Select all
#7 0x004102e2 in OpenEngine::Bullet::BulletEngine::Process (this=0x325ce8, deltaTime=26601)
at Bullet\BulletEngine.cpp:304
#8 0x0040eedc in OpenEngine::Physics::PhysicsFacade::Handle (this=0x325cc0, arg=...)
at Physics\PhysicsFacade.cpp:35
#9 0x00638fc1 in OpenEngine::Core::Event<OpenEngine::Core::ProcessEventArg>::Notify (this=0x3248ec, arg=...)
at Core/Event.h:56
#10 0x004be783 in OpenEngine::Core::Engine::StartMainLoop (this=0x3248d8)
at Core\Engine.cpp:55
#11 0x004be8bb in OpenEngine::Core::Engine::Start (this=0x3248d8)
at Core\Engine.cpp:77
#12 0x00401fbf in SDL_main (argc=1, argv=0x321a08)
at main.cpp:268
#13 0x004be4e8 in console_main ()
#14 0x00320000 in ?? ()
#15 0x00000000 in ?? ()
Compiling the library for debug, yields a better backtrace: (Win32ThreadSupport)
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 12724.0x1d0c]
0x0063e598 in Vectormath::Aos::loadXYZ (vec=..., fptr=0xa37d3f8)
at C:/Users/Skeen/Desktop/bullet-2.77/src/vectormath/scalar/vec_aos.h:102
102 vec = Vector3( fptr[0], fptr[1], fptr[2] );
(gdb) backtrace
#0 0x0063e598 in Vectormath::Aos::loadXYZ (vec=..., fptr=0xa37d3f8)
at C:/Users/Skeen/Desktop/bullet-2.77/src/vectormath/scalar/vec_aos.h:102
#1 0x00420076 in read_Vector3 (p=0xa37d3f8)
at C:/Users/Skeen/Desktop/bullet-2.77/src/BulletMultiThreaded//TrbStateVec.h:30
#2 0x006a2c3e in TrbState::getAngularVelocity (this=0xa37d388)
at C:/Users/Skeen/Desktop/bullet-2.77/src/BulletMultiThreaded//TrbStateVec.h:177
#3 0x00420f65 in btSetupContactConstraint (constraintResponse=..., constraintFriction1=..., constraintFriction2=..., penetrationDepth=-0.231498778, restitution=0, friction=0, contactNormal=..., contactPointA=..., contactPointB=..., stateA=..., stateB=..., solverBodyA=..., solverBodyB=..., separateBias=0.100000001, timeStep=0.0166666675)
at C:\Users\Skeen\Desktop\bullet-2.77\src\BulletMultiThreaded\btParallelConstraintSolver.ccp:338
#4 0x00421556 in CustomSetupContactConstraintsTask (contactPairs=0x9bb74c0, numContactPairs=1, offsetRigStates=0x9bbd480, offsetSolverBodies=0x9bbcc50, numRigidBodies=16, separateBias=0.100000001, timeStep=0.0166666675)
at C:\Users\Skeen\Desktop\bullet-2.77\src\BulletMultiThreaded\btParallelConstraintSolver.ccp:447
#5 0x00421836 in SolverThreadFunc (userPtr=0x87d14f0, lsMemory=0x0)
at C:\Users\Skeen\Desktop\bullet-2.77\src\BulletMultiThreaded\btParallelConstraintSolver.ccp:524
#6 0x00424310 in Thread_no_1 (lpParam=0x87d0188)
at C:\Users\Skeen\Desktop\bullet-2.77\src\BulletMultiThreaded\Win32ThreadSupport.cpp:65
#7 0x77273677 in KERNEL32!BasepMapModuleHandle () from C:\Windows\syswow64\kernel32.dll
#8 0x087d0188 in ?? ()
#9 0x77b29d42 in ntdll!RtlpNtQueryValueKey () from C:\Windows\system32\ntdll.dll
#10 0x77b29d15 in ntdll!RtlpNtQueryValueKey () from C:\Windows\system32\ntdll.dll
#11 0x00000000 in ?? ()
I guess thats the backtrace you were looking for?
