Crash in ~CcdPhysicsController on empty controller
Posted: Tue Sep 05, 2006 6:40 pm
For testing purpose I create a CcdPhysicsController without attaching it to a physics environment yet. Upon cleaning up ( "delete" ) I got a segmentation fault:
Looking at the source code I noticed that there is no NULL-Check on line CcdPhysicsController:107
Using the latest stable version from the homepage.
Code: Select all
(gdb) bt
#0 0xb6ed3023 in __gnu_cxx::__normal_iterator<TypedConstraint**, std::vector<TypedConstraint*, std::allocator<TypedConstraint*> > >::__normal_iterator ()
#1 0xb6ed23d9 in std::vector<TypedConstraint*, std::allocator<TypedConstraint*> >::begin ()
#2 0xb6ece7ef in CcdPhysicsEnvironment::removeCcdPhysicsController ()
#3 0xb6ecb9d4 in CcdPhysicsController::~CcdPhysicsController ()Code: Select all
m_cci.m_physicsEnv->removeCcdPhysicsController(this);