Skip to content

Instantly share code, notes, and snippets.

@notlesh
Created July 10, 2020 18:30
Show Gist options
  • Save notlesh/6eb082cabe09f06c4774984a63def0f9 to your computer and use it in GitHub Desktop.
Save notlesh/6eb082cabe09f06c4774984a63def0f9 to your computer and use it in GitHub Desktop.
wtf lokinet stack
>>> bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007fe486ffa859 in __GI_abort () at abort.c:79
#2 0x00007fe486bf6951 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007fe486c0247c in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007fe486c024e7 in std::terminate() () from /lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007fe486ad1d03 in std::thread::~thread (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/9/thread:139
#6 lokimq::LokiMQ::run_info::~run_info (this=<optimized out>, __in_chrg=<optimized out>) at /home/stephen/dev/loki-network/external/loki-mq/lokimq/lokimq.h:656
#7 std::_Head_base<0ul, lokimq::LokiMQ::run_info, false>::~_Head_base (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/9/tuple:120
#8 std::_Tuple_impl<0ul, lokimq::LokiMQ::run_info, bool, std::queue<std::pair<lokimq::detail::Batch*, int>, std::deque<std::pair<lokimq::detail::Batch*, int>, std::allocator<std::pair<lokimq::detail::Batch*, int>
> > > >::~_Tuple_impl (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/9/tuple:185
#9 std::tuple<lokimq::LokiMQ::run_info, bool, std::queue<std::pair<lokimq::detail::Batch*, int>, std::deque<std::pair<lokimq::detail::Batch*, int>, std::allocator<std::pair<lokimq::detail::Batch*, int> > > > >::~
tuple (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/9/tuple:523
#10 std::_Destroy<std::tuple<lokimq::LokiMQ::run_info, bool, std::queue<std::pair<lokimq::detail::Batch*, int>, std::deque<std::pair<lokimq::detail::Batch*, int>, std::allocator<std::pair<lokimq::detail::Bat[0/69]
nt> > > > > > (__pointer=<optimized out>) at /usr/include/c++/9/bits/stl_construct.h:98
#11 std::_Destroy_aux<false>::__destroy<std::tuple<lokimq::LokiMQ::run_info, bool, std::queue<std::pair<lokimq::detail::Batch*, int>, std::deque<std::pair<lokimq::detail::Batch*, int>, std::allocator<std::pair<lok
imq::detail::Batch*, int> > > > >*> (__last=<optimized out>, __first=<optimized out>) at /usr/include/c++/9/bits/stl_construct.h:108
#12 std::_Destroy<std::tuple<lokimq::LokiMQ::run_info, bool, std::queue<std::pair<lokimq::detail::Batch*, int>, std::deque<std::pair<lokimq::detail::Batch*, int>, std::allocator<std::pair<lokimq::detail::Batch*, i
nt> > > > >*> (__last=<optimized out>, __first=<optimized out>) at /usr/include/c++/9/bits/stl_construct.h:137
#13 std::_Destroy<std::tuple<lokimq::LokiMQ::run_info, bool, std::queue<std::pair<lokimq::detail::Batch*, int>, std::deque<std::pair<lokimq::detail::Batch*, int>, std::allocator<std::pair<lokimq::detail::Batch*, i
nt> > > > >*, std::tuple<lokimq::LokiMQ::run_info, bool, std::queue<std::pair<lokimq::detail::Batch*, int>, std::deque<std::pair<lokimq::detail::Batch*, int>, std::allocator<std::pair<lokimq::detail::Batch*, int>
> > > > > (__last=<optimized out>, __first=<optimized out>) at /usr/include/c++/9/bits/stl_construct.h:206
#14 std::vector<std::tuple<lokimq::LokiMQ::run_info, bool, std::queue<std::pair<lokimq::detail::Batch*, int>, std::deque<std::pair<lokimq::detail::Batch*, int>, std::allocator<std::pair<lokimq::detail::Batch*, int
> > > > >, std::allocator<std::tuple<lokimq::LokiMQ::run_info, bool, std::queue<std::pair<lokimq::detail::Batch*, int>, std::deque<std::pair<lokimq::detail::Batch*, int>, std::allocator<std::pair<lokimq::detail::B
atch*, int> > > > > > >::~vector (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/9/bits/stl_vector.h:677
#15 lokimq::LokiMQ::~LokiMQ (this=0x7fe4800090a0, __in_chrg=<optimized out>) at /home/stephen/dev/loki-network/external/loki-mq/lokimq/lokimq.cpp:395
#16 0x00007fe486f3d7a8 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x7fe480009090) at /usr/include/c++/9/bits/shared_ptr_base.h:148
#17 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x7fe480009090) at /usr/include/c++/9/bits/shared_ptr_base.h:148
#18 0x00007fe486e125e0 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=<optimized out>, this=<optimized out>) at /usr/include/c++/9/bits/shared_ptr_base.h:1169
#19 std::__shared_ptr<lokimq::LokiMQ, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=<optimized out>, this=<optimized out>) at /usr/include/c++/9/bits/shared_ptr_base.h:1169
#20 std::shared_ptr<lokimq::LokiMQ>::~shared_ptr (this=<optimized out>, this=<optimized out>) at /usr/include/c++/9/bits/shared_ptr.h:103
#21 llarp::Router::Router (this=<optimized out>, __netloop=..., l=..., this=<optimized out>, __netloop=..., l=...) at /home/stephen/dev/loki-network/llarp/router/router.cpp:65
#22 0x00007fe486f45909 in std::make_unique<llarp::Router, std::shared_ptr<llarp_ev_loop>&, std::shared_ptr<llarp::Logic>&> () at /usr/include/c++/9/ext/atomicity.h:96
#23 llarp::Context::makeRouter (this=<optimized out>, netloop=..., logic=...) at /home/stephen/dev/loki-network/llarp/context.cpp:103
#24 0x00007fe486f45d05 in llarp::Context::Setup (this=0x7fe480006480, opts=...) at /usr/include/c++/9/ext/atomicity.h:96
#25 0x00005624477fe03f in run_main_context (confFile=filesystem::path "/home/stephen/.lokinet/lokinet.ini" = {...}, opts=...) at /usr/include/c++/9/bits/shared_ptr_base.h:1020
#26 0x00005624477e580d in std::__invoke_impl<void, void (*&)(std::filesystem::__cxx11::path, llarp::RuntimeOptions), std::filesystem::__cxx11::path&, llarp::RuntimeOptions&> (__f=<optimized out>) at /usr/include/c
++/9/bits/basic_string.h:936
#27 std::__invoke<void (*&)(std::filesystem::__cxx11::path, llarp::RuntimeOptions), std::filesystem::__cxx11::path&, llarp::RuntimeOptions&> (__fn=<optimized out>) at /usr/include/c++/9/bits/invoke.h:95
#28 std::_Bind<void (*(std::filesystem::__cxx11::path, llarp::RuntimeOptions))(std::filesystem::__cxx11::path, llarp::RuntimeOptions)>::__call<void, , 0ul, 1ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul>) (__args
=..., this=<optimized out>) at /usr/include/c++/9/functional:400
#29 std::_Bind<void (*(std::filesystem::__cxx11::path, llarp::RuntimeOptions))(std::filesystem::__cxx11::path, llarp::RuntimeOptions)>::operator()<, void>() (this=<optimized out>) at /usr/include/c++/9/functional:
484
#30 std::__invoke_impl<void, std::_Bind<void (*(std::filesystem::__cxx11::path, llarp::RuntimeOptions))(std::filesystem::__cxx11::path, llarp::RuntimeOptions)>>(std::__invoke_other, std::_Bind<void (*(std::filesys
tem::__cxx11::path, llarp::RuntimeOptions))(std::filesystem::__cxx11::path, llarp::RuntimeOptions)>&&) (__f=...) at /usr/include/c++/9/bits/invoke.h:60
#31 std::__invoke<std::_Bind<void (*(std::filesystem::__cxx11::path, llarp::RuntimeOptions))(std::filesystem::__cxx11::path, llarp::RuntimeOptions)>>(std::_Bind<void (*(std::filesystem::__cxx11::path, llarp::Runti
meOptions))(std::filesystem::__cxx11::path, llarp::RuntimeOptions)>&&) (__fn=...) at /usr/include/c++/9/bits/invoke.h:95
#32 std::thread::_Invoker<std::tuple<std::_Bind<void (*(std::filesystem::__cxx11::path, llarp::RuntimeOptions))(std::filesystem::__cxx11::path, llarp::RuntimeOptions)> > >::_M_invoke<0ul>(std::_Index_tuple<0ul>) (
this=<optimized out>) at /usr/include/c++/9/thread:244
#33 std::thread::_Invoker<std::tuple<std::_Bind<void (*(std::filesystem::__cxx11::path, llarp::RuntimeOptions))(std::filesystem::__cxx11::path, llarp::RuntimeOptions)> > >::operator()() (this=<optimized out>) at /
usr/include/c++/9/thread:251
#34 std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::_Bind<void (*(std::filesystem::__cxx11::path, llarp::RuntimeOptions))(std::filesystem::__cxx11::path, llarp::RuntimeOptions)> > > >::_M_run() (thi
s=0x562448fa3f80) at /usr/include/c++/9/thread:195
#35 0x00007fe486c2ecb4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#36 0x00007fe486b21609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#37 0x00007fe4870f7103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment