With 2k BGPaaS peers, upon restarting config services, CN crash could occur with the following bt:
#0 0x00007f996ad3cc37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f996ad40028 in __GI_abort () at abort.c:89
#2 0x00007f996ad35bf6 in __assert_fail_base (fmt=0x7f996ae863b8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x110649c "!deleted_",
file=file@entry=0x1106450 "controller/src/base/lifetime.cc", line=line@entry=129,
function=function@entry=0x1106920 <LifetimeActor::DependencyAdd(DependencyRef<LifetimeRefBase, LifetimeActor>*)::__PRETTY_FUNCTION__> "void LifetimeActor::DependencyAdd(DependencyRef<LifetimeRefBase, LifetimeActor>*)") at assert.c:92
#3 0x00007f996ad35ca2 in __GI___assert_fail (assertion=0x110649c "!deleted_", file=0x1106450 "controller/src/base/lifetime.cc", line=129,
function=0x1106920 <LifetimeActor::DependencyAdd(DependencyRef<LifetimeRefBase, LifetimeActor>*)::__PRETTY_FUNCTION__> "void LifetimeActor::DependencyAdd(DependencyRef<LifetimeRefBase, LifetimeActor>*)") at assert.c:101
#4 0x000000000076fa45 in LifetimeActor::DependencyAdd (this=0x7f99181c5030, node=0x7f98c4acb230) at controller/src/base/lifetime.cc:129
#5 0x00000000007701a5 in DependencyRef<LifetimeRefBase, LifetimeActor>::DependencyRef (this=0x7f98c4acb230, self=0x7f98c4acb228, ptr=0x7f99181c5030)
at controller/src/base/dependency.h:22
#6 0x000000000076f47a in LifetimeRefBase::LifetimeRefBase (this=0x7f98c4acb228, actor=0x7f99181c5030) at controller/src/base/lifetime.cc:12
#7 0x0000000000a139c5 in LifetimeRef<BgpPeer>::LifetimeRef (this=0x7f98c4acb228, ptr=0x7f98c4ac2ff0, actor=0x7f99181c5030)
at controller/src/base/lifetime.h:103
#8 0x00000000009eb032 in BgpPeer::BgpPeer (this=0x7f98c4ac2ff0, server=0x26e1e70, instance=0x7f991892c1b0, config=0x7f98c4b15950)
at controller/src/bgp/bgp_peer.cc:598
#9 0x00000000009af838 in boost::factory<BgpPeer*, int boost::detail::none_helper::*, (boost::factory_alloc_propagation)0>::operator()<BgpServer*, RoutingInstance*, BgpNeighborConfig const*> (this=0x2686948, a0=@0x7f98f2bf8be0: 0x26e1e70, a1=@0x7f98f2bf8bd8: 0x7f991892c1b0, a2=@0x7f98f2bf8bd0: 0x7f98c4b15950)
at /usr/include/boost/functional/factory.hpp:141
#10 0x00000000009ad67e in boost::detail::function::function_obj_invoker3<boost::factory<BgpPeer*, int boost::detail::none_helper::*, (boost::factory_alloc_propagation)0>, BgpPeer*, BgpServer*, RoutingInstance*, BgpNeighborConfig const*>::invoke (function_obj_ptr=..., a0=0x26e1e70, a1=0x7f991892c1b0, a2=0x7f98c4b15950)
at /usr/include/boost/function/function_template.hpp:132
#11 0x00000000006699d9 in boost::function3<BgpPeer*, BgpServer*, RoutingInstance*, BgpNeighborConfig const*>::operator() (this=0x2686940, a0=0x26e1e70,
a1=0x7f991892c1b0, a2=0x7f98c4b15950) at /usr/include/boost/function/function_template.hpp:767
#12 0x000000000066839b in BgpObjectFactory::Create<BgpPeer> (a0=0x26e1e70, a1=0x7f991892c1b0, a2=0x7f98c4b15950) at controller/src/bgp/bgp_factory.h:66
#13 0x000000000065afc7 in PeerManager::PeerLocate (this=0x7f992c3499c0, server=0x26e1e70, config=0x7f98c4b15950)
at controller/src/bgp/routing-instance/peer_manager.cc:41
#14 0x0000000000afcdff in BgpServer::ConfigUpdater::ProcessNeighborConfig (this=0x26ea690, neighbor_config=0x7f98c4b15950, event=BgpConfigManager::CFG_ADD)
at controller/src/bgp/bgp_server.cc:202
#15 0x0000000000b08b98 in boost::_mfi::mf2<void, BgpServer::ConfigUpdater, BgpNeighborConfig const*, BgpConfigManager::EventType>::operator() (
this=0x7f98f2bf9428, p=0x26ea690, a1=0x7f98c4b15950, a2=BgpConfigManager::CFG_ADD) at /usr/include/boost/bind/mem_fn_template.hpp:280
#16 0x0000000000b07d88 in boost::_bi::list3<boost::_bi::value<BgpServer::ConfigUpdater*>, boost::arg<1>, boost::arg<2> >::operator()<boost::_mfi::mf2<void, BgpServer::ConfigUpdater, BgpNeighborConfig const*, BgpConfigManager::EventType>, boost::_bi::list2<BgpNeighborConfig const*&, BgpConfigManager::EventType&> > (
this=0x7f98f2bf9438, f=..., a=...) at /usr/include/boost/bind/bind.hpp:392
#17 0x0000000000b0710e in boost::_bi::bind_t<void, boost::_mfi::mf2<void, BgpServer::ConfigUpdater, BgpNeighborConfig const*, BgpConfigManager::EventType>, boost::_bi::list3<boost::_bi::value<BgpServer::ConfigUpdater*>, boost::arg<1>, boost::arg<2> > >::operator()<BgpNeighborConfig const*, BgpConfigManager::EventType>
(this=0x7f98f2bf9428, a1=@0x7f98f2bf92f0: 0x7f98c4b15950, a2=@0x7f98f2bf92ec: BgpConfigManager::CFG_ADD) at /usr/include/boost/bind/bind_template.hpp:61
#18 0x0000000000b063f2 in boost::detail::function::void_function_obj_invoker2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, BgpServer::ConfigUpdater, BgpNeighborConfig const*, BgpConfigManager::EventType>, boost::_bi::list3<boost::_bi::value<BgpServer::ConfigUpdater*>, boost::arg<1>, boost::arg<2> > >, void, BgpNeighborConfig const*, BgpConfigManager::EventType>::invoke (function_obj_ptr=..., a0=0x7f98c4b15950, a1=BgpConfigManager::CFG_ADD)
at /usr/include/boost/function/function_template.hpp:153
#19 0x0000000000990860 in boost::function2<void, BgpNeighborConfig const*, BgpConfigManager::EventType>::operator() (this=0x7f98f2bf9420, a0=0x7f98c4b15950,
a1=BgpConfigManager::CFG_ADD) at /usr/include/boost/function/function_template.hpp:767
#20 0x000000000098e5a7 in BgpConfigManager::Notify<BgpNeighborConfig> (this=0x26ea190, config=0x7f98c4b15950, event=BgpConfigManager::CFG_ADD)
at controller/src/bgp/bgp_config.cc:471
#21 0x0000000000bb2f22 in BgpIfmapInstanceConfig::AddNeighbor (this=0x7f98c4b09750, manager=0x26ea190, neighbor=0x7f98c4b15950)
at controller/src/bgp/bgp_config_ifmap.cc:1158
Review in progress for https:/ /review. opencontrail. org/29147
Submitter: Nischal Sheth (<email address hidden>)