id summary reporter owner description type status milestone component version severity resolution keywords cc 593 shared_ptr<> causes memory leacks and crash vlazarenko Peter Dimov "{{{ I have written this small test to reproduce the bug. Please see.. #include #include #include using namespace std; using namespace boost; using namespace boost::unit_test_framework; class A; class B { public: B(boost::shared_ptr ptr) : ptr_(ptr) {} ~B() {} private: boost::shared_ptr ptr_; }; class A { public: A(int value) : value_(value) {} ~A() {} private: int value_; }; void test_shared_ptr() { BOOST_CHECKPOINT(""Testing shared pointer...""); shared_ptr a1(new A(10)); { shared_ptr b1 = a1->create(); } { shared_ptr b1 = a1->create(); } } }}}" Bugs closed smart_ptr None Invalid