Skip to content

Instantly share code, notes, and snippets.

@objmagic
Created July 14, 2017 04:39
Show Gist options
  • Save objmagic/13a59d0efcc7dcacd096dec59fd9d720 to your computer and use it in GitHub Desktop.
Save objmagic/13a59d0efcc7dcacd096dec59fd9d720 to your computer and use it in GitHub Desktop.
stack trace stream manager
(gdb) bt
#0 0x00007fa474c711d7 in raise () from /lib64/libc.so.6
#1 0x00007fa474c728c8 in abort () from /lib64/libc.so.6
#2 0x00007fa4759999d5 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6
#3 0x00007fa475997946 in ?? () from /lib64/libstdc++.so.6
#4 0x00007fa475997973 in std::terminate() () from /lib64/libstdc++.so.6
#5 0x00007fa475997b93 in __cxa_throw () from /lib64/libstdc++.so.6
#6 0x000000000040a27f in (anonymous namespace)::cpp_alloc (nothrow=false, size=1572832) at src/tcmalloc.cc:1458
#7 0x000000000062a4b5 in cpp_alloc (nothrow=false, size=1572832) at src/tcmalloc.cc:1466
#8 tc_new (size=1572832) at src/tcmalloc.cc:1612
#9 0x00007fa4759f6c79 in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)
() from /lib64/libstdc++.so.6
#10 0x00007fa4759f78bb in std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) ()
from /lib64/libstdc++.so.6
#11 0x00007fa4759f7964 in std::string::reserve(unsigned long) () from /lib64/libstdc++.so.6
#12 0x00007fa4759f7d46 in std::string::append(unsigned long, char) () from /lib64/libstdc++.so.6
#13 0x000000000055f291 in resize (__n=1404763, this=0x39e8678) at /usr/include/c++/4.8.2/bits/basic_string.h:754
#14 STLStringResizeUninitialized (new_size=1404763, s=0x39e8678) at ./google/protobuf/stubs/stl_util.h:68
#15 google::protobuf::MessageLite::AppendPartialToString (this=0x2ea4e20, output=0x39e8678)
at google/protobuf/message_lite.cc:280
#16 0x000000000045f1e9 in heron::stmgr::TupleCache::TupleList::add_data_tuple (this=0x3b83560, _streamid=...,
_tuple=0x2ea4e20, _total_size=0x29f2e60, _tuples_cache_max_tuple_size=0x29f2e70)
at heron/stmgr/src/cpp/util/tuple-cache.cpp:139
#17 0x000000000045eaf9 in heron::stmgr::TupleCache::add_data_tuple (this=0x29f2e00, _task_id=1000,
_streamid=..., _tuple=0x2ea4e20) at heron/stmgr/src/cpp/util/tuple-cache.cpp:56
---Type <return> to continue, or q <return> to quit---
#18 0x000000000041305d in heron::stmgr::StMgr::CopyDataOutBound (this=0x7ffffe37f330, _src_task_id=5,
_local_spout=true, _streamid=..., _tuple=0x2ea4e20, _out_tasks=std::vector of length 1, capacity 1 = {...})
at heron/stmgr/src/cpp/manager/stmgr.cpp:721
#19 0x0000000000412b6d in heron::stmgr::StMgr::HandleInstanceData (this=0x7ffffe37f330, _src_task_id=5,
_local_spout=true, _message=0x37fe2e0) at heron/stmgr/src/cpp/manager/stmgr.cpp:670
#20 0x000000000043adbe in heron::stmgr::StMgrServer::HandleTupleSetMessage (this=0x2abd040, _conn=0x2a13680,
_message=0x37fe2e0) at heron/stmgr/src/cpp/manager/stmgr-server.cpp:405
#21 0x000000000045605e in std::_Mem_fn<void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*)>::operator()<Connection*&, heron::proto::system::HeronTupleSet*&, void> (this=0x3bad7d0,
__object=0x2abd040) at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:601
#22 0x0000000000454818 in std::_Bind<std::_Mem_fn<void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*)> (heron::stmgr::StMgrServer*, Connection*, heron::proto::system::HeronTupleSet*)>::__call<void, , 0ul, 1ul, 2ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul, 2ul>) (this=0x3bad7d0,
__args=<unknown type in /var/lib/mesos/slaves/c343c7cd-a60f-4667-b9b7-a00cd6628bdf-S704/frameworks/201104070004-0000002563-0000/executors/thermos-iesource-prod-summingbird_tsar_interaction-counter-5-be989ecc-8275-4125-8f68-26498953c9dd/runs/fe23f81e-e6ba-4045-bc27-232a4796fa21/sandbox/heron-core/bin/heron-stmgr, CU 0x10306a, DIE 0x15b753>) at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:1296
#23 0x00000000004513e0 in std::_Bind<std::_Mem_fn<void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*)> (heron::stmgr::StMgrServer*, Connection*, heron::proto::system::HeronTupleSet*)>::operator()<, void>() (this=0x3bad7d0)
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:1355
#24 0x000000000044cf9c in std::_Function_handler<void (), std::_Bind<std::_Mem_fn<void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*)> (heron::stmgr::StMgrServer*, Connection*, heron::proto::system::HeronTupleSet*)> >::_M_invoke(std::_Any_data const&) (__functor=...)
---Type <return> to continue, or q <return> to quit---
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:2071
#25 0x000000000042824e in std::function<void ()>::operator()() const (this=0x7ffffe37eb10)
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:2471
#26 0x00000000004416fc in Server::dispatchMessage<heron::stmgr::StMgrServer, heron::proto::system::HeronTupleSet>
(this=0x2abd040, _t=0x2abd040, method=
(void (heron::stmgr::StMgrServer::*)(heron::stmgr::StMgrServer * const, Connection *, heron::proto::system::HeronTupleSet *)) 0x43abd6 <heron::stmgr::StMgrServer::HandleTupleSetMessage(Connection*, heron::proto::system::HeronTupleSet*)>, _conn=0x2a13680, _ipkt=0x2b45ce0) at heron/common/src/cpp/network/server.h:251
#27 0x0000000000456155 in std::_Mem_fn<void (Server::*)(heron::stmgr::StMgrServer*, void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*), Connection*, IncomingPacket*)>::operator()<heron::stmgr::StMgrServer*&, void (heron::stmgr::StMgrServer::*&)(Connection*, heron::proto::system::HeronTupleSet*), Connection*, IncomingPacket*, void>(Server*, heron::stmgr::StMgrServer*&, void (heron::stmgr::StMgrServer::*&)(Connection*, heron::proto::system::HeronTupleSet*), Connection*&&, IncomingPacket*&&) const (this=0x2a30370,
__object=0x2abd040) at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:601
#28 0x0000000000454a08 in std::_Bind<std::_Mem_fn<void (Server::*)(heron::stmgr::StMgrServer*, void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*), Connection*, IncomingPacket*)> (Server*, heron::stmgr::StMgrServer*, void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*), std::_Placeholder<1>, std::_Placeholder<2>)>::__call<void, Connection*&&, IncomingPacket*&&, 0ul, 1ul, 2ul, 3ul, 4ul>(std::tuple<Connection*&&, IncomingPacket*&&>&&, std::_Index_tuple<0ul, 1ul, 2ul, 3ul, 4ul>) (this=0x2a30370,
__args=<unknown type in /var/lib/mesos/slaves/c343c7cd-a60f-4667-b9b7-a00cd6628bdf-S704/frameworks/201104070004-0000002563-0000/executors/thermos-iesource-prod-summingbird_tsar_interaction-counter-5-be989ecc-8275-4125-8f68-26498953c9dd/runs/fe23f81e-e6ba-4045-bc27-232a4796fa21/sandbox/heron-core/bin/heron-stmgr, CU 0x10306a, DIE 0x16de31>) at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:1296
#29 0x000000000045156e in std::_Bind<std::_Mem_fn<void (Server::*)(heron::stmgr::StMgrServer*, void (heron::stmgr:---Type <return> to continue, or q <return> to quit---
:StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*), Connection*, IncomingPacket*)> (Server*, heron::stmgr::StMgrServer*, void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*), std::_Placeholder<1>, std::_Placeholder<2>)>::operator()<Connection*, IncomingPacket*, void>(Connection*&&, IncomingPacket*&&) (this=0x2a30370)
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:1355
#30 0x000000000044d11d in std::_Function_handler<void (Connection*, IncomingPacket*), std::_Bind<std::_Mem_fn<void (Server::*)(heron::stmgr::StMgrServer*, void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*), Connection*, IncomingPacket*)> (Server*, heron::stmgr::StMgrServer*, void (heron::stmgr::StMgrServer::*)(Connection*, heron::proto::system::HeronTupleSet*), std::_Placeholder<1>, std::_Placeholder<2>)> >::_M_invoke(std::_Any_data const&, Connection*, IncomingPacket*) (__functor=..., __args#0=0x2a13680, __args#1=0x2b45ce0)
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:2071
#31 0x000000000052eee1 in std::function<void (Connection*, IncomingPacket*)>::operator()(Connection*, IncomingPacket*) const (this=0x2a3ec10, __args#0=0x2a13680, __args#1=0x2b45ce0)
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:2471
#32 0x000000000052c5bb in Server::OnNewPacket (this=0x2abd040, _connection=0x2a13680, _packet=0x2b45ce0)
at heron/common/src/cpp/network/server.cpp:147
#33 0x000000000052bf50 in Server::__lambda0::operator() (__closure=0x29fea10, packet=0x2b45ce0)
at heron/common/src/cpp/network/server.cpp:97
#34 0x000000000052da2d in std::_Function_handler<void(IncomingPacket*), Server::CreateConnection(ConnectionEndPoint*, ConnectionOptions*, EventLoop*)::__lambda0>::_M_invoke(const std::_Any_data &, IncomingPacket *) (
__functor=..., __args#0=0x2b45ce0)
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:2071
#35 0x000000000051c361 in std::function<void (IncomingPacket*)>::operator()(IncomingPacket*) const (
this=0x2a13818, __args#0=0x2b45ce0)
---Type <return> to continue, or q <return> to quit---
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:2471
#36 0x000000000051ee2c in Connection::handleDataRead (this=0x2a13680)
at heron/common/src/cpp/network/connection.cpp:270
#37 0x00000000005183b4 in BaseConnection::handleRead (this=0x2a13680, status=EventLoop::READ_EVENT)
at heron/common/src/cpp/network/baseconnection.cpp:158
#38 0x000000000051760d in BaseConnection::__lambda0::operator() (__closure=0x2ec0fd0, s=EventLoop::READ_EVENT)
at heron/common/src/cpp/network/baseconnection.cpp:33
#39 0x0000000000518a30 in std::_Function_handler<void(EventLoop::Status), BaseConnection::BaseConnection(ConnectionEndPoint*, ConnectionOptions*, EventLoop*)::__lambda0>::_M_invoke(const std::_Any_data &, EventLoop::Status) (
__functor=..., __args#0=EventLoop::READ_EVENT)
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:2071
#40 0x0000000000526012 in std::function<void (EventLoop::Status)>::operator()(EventLoop::Status) const (
this=0x2db8610, __args#0=EventLoop::READ_EVENT)
at /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/functional:2471
#41 0x00000000005247f0 in EventLoopImpl::handleReadCallback (this=0x7ffffe37f270, fd=23, event=2)
at heron/common/src/cpp/network/event_loop_impl.cpp:317
#42 0x0000000000522cb4 in EventLoopImpl::eventLoopImplReadCallback (fd=23, event=2, arg=0x7ffffe37f270)
at heron/common/src/cpp/network/event_loop_impl.cpp:28
#43 0x0000000000539c6c in event_process_active_single_queue (activeq=0x29fe020, base=0x2a02000) at event.c:1350
#44 event_process_active (base=<optimized out>) at event.c:1420
#45 event_base_loop (base=0x2a02000, flags=0) at event.c:1621
#46 0x00000000005231a4 in EventLoopImpl::loop (this=0x7ffffe37f270)
at heron/common/src/cpp/network/event_loop_impl.cpp:78
#47 0x000000000040d4a0 in main (argc=13, argv=0x7ffffe37f5b8) at heron/stmgr/src/cpp/server/stmgr-main.cpp:87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment