maidsafe-archive / MaidSafe

This is the super-project in which each MaidSafe library resides. Some information is common to all libraries, and is detailed here. Library-specific information can be found in each library's wiki.
Other
583 stars 102 forks source link

Tests using routing network sometimes hang #98

Closed ghost closed 11 years ago

ghost commented 11 years ago

The following gdb output is from running RoutingStandAloneTest.FUNC_RecursiveCall and manually interrupting it when there has been no new output for several minutes. Similar behaviour sometimes occurs when running the functional tests target.

Program received signal SIGINT, Interrupt.
0xb7fdd424 in __kernel_vsyscall ()
(gdb) where
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb7fb096b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x0882523c in boost::thread::join() ()
#3  0x0863b05f in maidsafe::AsioService::Stop (this=0x8c8f00c) at /home/alison/Development/Workspace/MaidSafe/src/common/src/maidsafe/common/asio_service.cc:121
#4  0x08582e11 in maidsafe::rudp::ManagedConnections::~ManagedConnections (this=0x8c8f00c, __in_chrg=<optimised out>)
    at /home/alison/Development/Workspace/MaidSafe/src/rudp/src/maidsafe/rudp/managed_connections.cc:85
#5  0x0853d43c in maidsafe::routing::NetworkUtils::~NetworkUtils (this=0x8c8efcc, __in_chrg=<optimised out>)
    at /home/alison/Development/Workspace/MaidSafe/src/routing/src/maidsafe/routing/network_utils.cc:56
#6  0x085481a7 in maidsafe::routing::Routing::Impl::~Impl (this=0x8c8ecb0, __in_chrg=<optimised out>) at /home/alison/Development/Workspace/MaidSafe/src/routing/src/maidsafe/routing/routing_impl.cc:89
#7  0x085477b3 in std::_Sp_counted_ptr<maidsafe::routing::Routing::Impl*, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=0x8c7a748) at /usr/include/c++/4.6/bits/shared_ptr_base.h:293
#8  0x084a2cf6 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x8c7a748) at /usr/include/c++/4.6/bits/shared_ptr_base.h:146
#9  0x084a1878 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0x8c5c8bc, __in_chrg=<optimised out>) at /usr/include/c++/4.6/bits/shared_ptr_base.h:551
#10 0x085093ca in std::__shared_ptr<maidsafe::routing::Routing::Impl, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x8c5c8b8, __in_chrg=<optimised out>)
    at /usr/include/c++/4.6/bits/shared_ptr_base.h:751
#11 0x08509411 in std::shared_ptr<maidsafe::routing::Routing::Impl>::~shared_ptr (this=0x8c5c8b8, __in_chrg=<optimised out>) at /usr/include/c++/4.6/bits/shared_ptr.h:93
#12 0x08510153 in maidsafe::routing::Routing::~Routing (this=0x8c5c8b8, __in_chrg=<optimised out>) at /home/alison/Development/Workspace/MaidSafe/src/routing/include/maidsafe/routing/routing_api.h:66
#13 0x085174c9 in std::_Sp_counted_ptr<maidsafe::routing::Routing*, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=0x8c6d2d8) at /usr/include/c++/4.6/bits/shared_ptr_base.h:293
#14 0x084a2cf6 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x8c6d2d8) at /usr/include/c++/4.6/bits/shared_ptr_base.h:146
#15 0x084a1878 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0x8c71048, __in_chrg=<optimised out>) at /usr/include/c++/4.6/bits/shared_ptr_base.h:551
#16 0x08507226 in std::__shared_ptr<maidsafe::routing::Routing, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x8c71044, __in_chrg=<optimised out>) at /usr/include/c++/4.6/bits/shared_ptr_base.h:751
#17 0x0850726d in std::shared_ptr<maidsafe::routing::Routing>::~shared_ptr (this=0x8c71044, __in_chrg=<optimised out>) at /usr/include/c++/4.6/bits/shared_ptr.h:93
#18 0x084eb1e1 in maidsafe::routing::test::GenericNode::~GenericNode (this=0x8c70f78, __in_chrg=<optimised out>)
    at /home/alison/Development/Workspace/MaidSafe/src/routing/src/maidsafe/routing/tests/routing_network.cc:186
#19 0x084eb28f in maidsafe::routing::test::GenericNode::~GenericNode (this=0x8c70f78, __in_chrg=<optimised out>)
    at /home/alison/Development/Workspace/MaidSafe/src/routing/src/maidsafe/routing/tests/routing_network.cc:186
#20 0x08517478 in std::_Sp_counted_ptr<maidsafe::routing::test::GenericNode*, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=0x8c5bc48) at /usr/include/c++/4.6/bits/shared_ptr_base.h:293
#21 0x084a2cf6 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x8c5bc48) at /usr/include/c++/4.6/bits/shared_ptr_base.h:146
#22 0x084a1878 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0xbfffedac, __in_chrg=<optimised out>) at /usr/include/c++/4.6/bits/shared_ptr_base.h:551
#23 0x084a052c in std::__shared_ptr<maidsafe::routing::test::GenericNode, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0xbfffeda8, __in_chrg=<optimised out>)
    at /usr/include/c++/4.6/bits/shared_ptr_base.h:751
#24 0x0851348a in std::__shared_ptr<maidsafe::routing::test::GenericNode, (__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<maidsafe::routing::test::GenericNode, (__gnu_cxx::_Lock_policy)2>&&) (
    this=0x8ca5658, __r=...) at /usr/include/c++/4.6/bits/shared_ptr_base.h:890
#25 0x08510ca0 in std::shared_ptr<maidsafe::routing::test::GenericNode>::operator=(std::shared_ptr<maidsafe::routing::test::GenericNode>&&) (this=0x8ca5658, __r=...)
    at /usr/include/c++/4.6/bits/shared_ptr.h:292
#26 0x08514af0 in std::__copy_move<true, false, std::random_access_iterator_tag>::__copy_m<std::shared_ptr<maidsafe::routing::test::GenericNode>*, std::shared_ptr<maidsafe::routing::test::GenericNode>*> (
    __first=0x8ca5660, __last=0x8ca5688, __result=0x8ca5658) at /usr/include/c++/4.6/bits/stl_algobase.h:348
#27 0x08513985 in std::__copy_move_a<true, std::shared_ptr<maidsafe::routing::test::GenericNode>*, std::shared_ptr<maidsafe::routing::test::GenericNode>*> (__first=0x8ca5660, __last=0x8ca5688, 
    __result=0x8ca5658) at /usr/include/c++/4.6/bits/stl_algobase.h:384
#28 0x0851188b in std::__copy_move_a2<true, __gnu_cxx::__normal_iterator<std::shared_ptr<maidsafe::routing::test::GenericNode>*, std::vector<std::shared_ptr<maidsafe::routing::test::GenericNode>, std::allocator<std::shared_ptr<maidsafe::routing::test::GenericNode> > > >, __gnu_cxx::__normal_iterator<std::shared_ptr<maidsafe::routing::test::GenericNode>*, std::vector<std::shared_ptr<maidsafe::routing::test::GenericNode>, std::allocator<std::shared_ptr<maidsafe::routing::test::GenericNode> > > > > (__first=..., __last=..., __result=...) at /usr/include/c++/4.6/bits/stl_algobase.h:422
#29 0x0850e31b in std::move<__gnu_cxx::__normal_iterator<std::shared_ptr<maidsafe::routing::test::GenericNode>*, std::vector<std::shared_ptr<maidsafe::routing::test::GenericNode>, std::allocator<std::shared_ptr<maidsafe::routing::test::GenericNode> > > >, __gnu_cxx::__normal_iterator<std::shared_ptr<maidsafe::routing::test::GenericNode>*, std::vector<std::shared_ptr<maidsafe::routing::test::GenericNode>, std::allocator<std::shared_ptr<maidsafe::routing::test::GenericNode> > > > > (__first=..., __last=..., __result=...) at /usr/include/c++/4.6/bits/stl_algobase.h:486
#30 0x0850aa6a in std::vector<std::shared_ptr<maidsafe::routing::test::GenericNode>, std::allocator<std::shared_ptr<maidsafe::routing::test::GenericNode> > >::erase (this=0x8b237c0, __position=...)
    at /usr/include/c++/4.6/bits/vector.tcc:139
#31 0x084efbb7 in maidsafe::routing::test::GenericNetwork::RemoveNode (this=0x8b23788, node_id=...)
    at /home/alison/Development/Workspace/MaidSafe/src/routing/src/maidsafe/routing/tests/routing_network.cc:586
#32 0x084edaa6 in maidsafe::routing::test::GenericNetwork::~GenericNetwork (this=0x8b23788, __in_chrg=<optimised out>)
    at /home/alison/Development/Workspace/MaidSafe/src/routing/src/maidsafe/routing/tests/routing_network.cc:466
#33 0x084b4937 in maidsafe::routing::test::RoutingStandAloneTest::~RoutingStandAloneTest (this=0x8b23788, __in_chrg=<optimised out>)
    at /home/alison/Development/Workspace/MaidSafe/src/routing/src/maidsafe/routing/tests/routing_stand_alone_test.cc:28
#34 0x084b8630 in maidsafe::routing::test::RoutingStandAloneTest_FUNC_RecursiveCall_Test::~RoutingStandAloneTest_FUNC_RecursiveCall_Test (this=0x8b23788, __in_chrg=<optimised out>)
    at /home/alison/Development/Workspace/MaidSafe/src/routing/src/maidsafe/routing/tests/routing_stand_alone_test.cc:194
#35 0x084b8673 in maidsafe::routing::test::RoutingStandAloneTest_FUNC_RecursiveCall_Test::~RoutingStandAloneTest_FUNC_RecursiveCall_Test (this=0x8b23788, __in_chrg=<optimised out>)