Skip to content

Instantly share code, notes, and snippets.

@chfast
Created June 12, 2015 09:28
Show Gist options
  • Save chfast/01aca976f9be03135412 to your computer and use it in GitHub Desktop.
Save chfast/01aca976f9be03135412 to your computer and use it in GitHub Desktop.
Assertion `_peer->m_asking == Asking::Nothing' failed
alethzero: /home/chfast/Projects/ethereum/cpp-ethereum/libethereum/EthereumHost.cpp:621: void dev::eth::EthereumHost::continueSync(dev::eth::EthereumPeer*): Assertion `_peer->m_asking == Asking::Nothing' failed.
[New Thread 0x7fff377f5700 (LWP 14688)]
[New Thread 0x7fff2cffc700 (LWP 14690)]
[New Thread 0x7fff36bf4700 (LWP 14689)]
[New Thread 0x7fff457fa700 (LWP 14680)]
[New Thread 0x7fff45ffb700 (LWP 14679)]
[New Thread 0x7fff467fc700 (LWP 14678)]
[New Thread 0x7fff46ffd700 (LWP 14677)]
[New Thread 0x7fff477fe700 (LWP 14676)]
[New Thread 0x7fff47fff700 (LWP 14675)]
[New Thread 0x7fff50ff9700 (LWP 14674)]
[New Thread 0x7fff517fa700 (LWP 14673)]
[New Thread 0x7fff51ffb700 (LWP 14672)]
[New Thread 0x7fff527fc700 (LWP 14671)]
[New Thread 0x7fff52ffd700 (LWP 14670)]
[New Thread 0x7fff537fe700 (LWP 14667)]
[New Thread 0x7fff53fff700 (LWP 14666)]
[New Thread 0x7fff70ff8700 (LWP 14665)]
[New Thread 0x7fff717f9700 (LWP 14664)]
[New Thread 0x7fff71ffa700 (LWP 14663)]
[New Thread 0x7fff72ffc700 (LWP 14661)]
[New Thread 0x7fff737fd700 (LWP 14660)]
[New Thread 0x7fff73ffe700 (LWP 14659)]
[New Thread 0x7fff88f25700 (LWP 14658)]
[New Thread 0x7fff89726700 (LWP 14657)]
[New Thread 0x7fff89f27700 (LWP 14656)]
[New Thread 0x7fff8bfff700 (LWP 14655)]
[New Thread 0x7fffa897a700 (LWP 14652)]
[New Thread 0x7fffa917b700 (LWP 14651)]
[New Thread 0x7fffa997c700 (LWP 14649)]
[New Thread 0x7fffaaffd700 (LWP 14648)]
[New Thread 0x7fffabfff700 (LWP 14646)]
[New Thread 0x7fffc4c89700 (LWP 14645)]
[New Thread 0x7fffc548a700 (LWP 14644)]
[New Thread 0x7fffc5c8b700 (LWP 14643)]
[New Thread 0x7fffc648c700 (LWP 14642)]
[New Thread 0x7fffc7fff700 (LWP 14641)]
[New Thread 0x7fffcc958700 (LWP 14638)]
[New Thread 0x7fffcfe5e700 (LWP 14636)]
[New Thread 0x7fffd989e700 (LWP 14635)]
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff377f5700 (LWP 14688)]
0x00007ffff105b267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff105b267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#1 0x00007ffff105ceca in __GI_abort () at abort.c:89
#2 0x00007ffff105403d in __assert_fail_base (fmt=0x7ffff11b6028 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x7ffff68bc8c8 "_peer->m_asking == Asking::Nothing",
file=file@entry=0x7ffff68bc878 "/home/chfast/Projects/ethereum/cpp-ethereum/libethereum/EthereumHost.cpp", line=line@entry=621,
function=function@entry=0x7ffff68bde80 <dev::eth::EthereumHost::continueSync(dev::eth::EthereumPeer*)::__PRETTY_FUNCTION__> "void dev::eth::EthereumHost::continueSync(dev::eth::EthereumPeer*)") at assert.c:92
#3 0x00007ffff10540f2 in __GI___assert_fail (assertion=0x7ffff68bc8c8 "_peer->m_asking == Asking::Nothing",
file=0x7ffff68bc878 "/home/chfast/Projects/ethereum/cpp-ethereum/libethereum/EthereumHost.cpp", line=621,
function=0x7ffff68bde80 <dev::eth::EthereumHost::continueSync(dev::eth::EthereumPeer*)::__PRETTY_FUNCTION__> "void dev::eth::EthereumHost::continueSync(dev::eth::EthereumPeer*)") at assert.c:101
#4 0x00007ffff6835d25 in dev::eth::EthereumHost::continueSync (this=0x14d1fe0, _peer=0x7fff3043fe80)
at /home/chfast/Projects/ethereum/cpp-ethereum/libethereum/EthereumHost.cpp:621
#5 0x00007ffff6834f8e in dev::eth::EthereumHost::onPeerBlocks (this=0x14d1fe0, _peer=0x7fff3043fe80, _r=...)
at /home/chfast/Projects/ethereum/cpp-ethereum/libethereum/EthereumHost.cpp:494
#6 0x00007ffff67bcdbc in dev::eth::EthereumPeer::interpret (this=0x7fff3043fe80, _id=6, _r=...)
at /home/chfast/Projects/ethereum/cpp-ethereum/libethereum/EthereumPeer.cpp:314
#7 0x00007ffff4778b77 in dev::p2p::Session::interpret (this=0x230dc60, _t=22, _r=...)
at /home/chfast/Projects/ethereum/cpp-ethereum/libp2p/Session.cpp:256
#8 0x00007ffff477a0ed in dev::p2p::Session::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)>::operator()(boost::system::error_code, std::size_t) const (__closure=0x7fff377f4a88, ec=..., length=99600)
at /home/chfast/Projects/ethereum/cpp-ethereum/libp2p/Session.cpp:483
#9 0x00007ffff477b3b4 in boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >::operator()(const boost::system::error_code &, std::size_t, int) (this=0x7fff377f4a60, ec=..., bytes_transferred=40775, start=0)
at /usr/include/boost/asio/impl/read.hpp:282
#10 0x00007ffff477d3c8 in boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >, boost::system::error_code, long unsigned int>::operator()(void) (this=0x7fff377f4a60)
at /usr/include/boost/asio/detail/bind_handler.hpp:127
#11 0x00007ffff477d2f9 in boost::asio::asio_handler_invoke<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp>, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >, boost::system::error_code, long unsigned int> >(boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >, boost::system::error_code, long unsigned int> &, ...) (function=...) at /usr/include/boost/asio/handler_invoke_hook.hpp:69
#12 0x00007ffff477d1a5 in boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp>, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >, boost::system::error_code, long unsigned int>, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >(boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >, boost::system::error_code, long unsigned int> &, dev::p2p::Session::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> &) (function=..., context=...) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#13 0x00007ffff477d031 in boost::asio::detail::asio_handler_invoke<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp>, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >, boost::system::error_code, long unsigned int>, boost::asio::basic_stream_socket<boost::asio::ip::tcp>, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std---Type <return> to continue, or q <return> to quit---
::size_t)> >(boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >, boost::system::error_code, long unsigned int> &, boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> > *) (function=...,
this_handler=0x7fff377f4a60) at /usr/include/boost/asio/impl/read.hpp:502
#14 0x00007ffff477ce31 in boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp>, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >, boost::system::error_code, long unsigned int>, boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp>, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> > >(boost::asio::detail::binder2<boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> >, boost::system::error_code, long unsigned int> &, boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> > &) (function=..., context=...) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#15 0x00007ffff477c8df in boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, dev::p2p::Session::doRead()::<lambda(boost::system::error_code, std::size_t)>::<lambda(boost::system::error_code, std::size_t)> > >::do_complete(boost::asio::detail::io_service_impl *, boost::asio::detail::operation *, const boost::system::error_code &, std::size_t) (owner=0x8cae70, base=0x7fff3066b6c0)
at /usr/include/boost/asio/detail/reactive_socket_recv_op.hpp:110
#16 0x00007ffff4715c90 in boost::asio::detail::task_io_service_operation::complete (this=0x7fff3066b6c0, owner=..., ec=...,
bytes_transferred=0) at /usr/include/boost/asio/detail/task_io_service_operation.hpp:38
#17 0x00007ffff4716ad9 in boost::asio::detail::epoll_reactor::descriptor_state::do_complete (owner=0x8cae70, base=0x7fff300256a0,
ec=..., bytes_transferred=5) at /usr/include/boost/asio/detail/impl/epoll_reactor.ipp:651
#18 0x00007ffff4715c90 in boost::asio::detail::task_io_service_operation::complete (this=0x7fff300256a0, owner=..., ec=...,
bytes_transferred=5) at /usr/include/boost/asio/detail/task_io_service_operation.hpp:38
#19 0x00007ffff47174ee in boost::asio::detail::task_io_service::do_run_one (this=0x8cae70, lock=..., this_thread=..., ec=...)
at /usr/include/boost/asio/detail/impl/task_io_service.ipp:384
#20 0x00007ffff471709b in boost::asio::detail::task_io_service::run (this=0x8cae70, ec=...)
at /usr/include/boost/asio/detail/impl/task_io_service.ipp:153
#21 0x00007ffff47178ae in boost::asio::io_service::run (this=0x147b230) at /usr/include/boost/asio/impl/io_service.ipp:59
#22 0x00007ffff478db74 in dev::p2p::Host::doWork (this=0x147b140) at /home/chfast/Projects/ethereum/cpp-ethereum/libp2p/Host.cpp:695
#23 0x00007ffff2779ebc in dev::Worker::workLoop (this=0x147b140)
at /home/chfast/Projects/ethereum/cpp-ethereum/libdevcore/Worker.cpp:115
#24 0x00007ffff277980f in dev::Worker::<lambda()>::operator()(void) const (__closure=0x1ebb578)
at /home/chfast/Projects/ethereum/cpp-ethereum/libdevcore/Worker.cpp:55
#25 0x00007ffff277b17a in std::_Bind_simple<dev::Worker::startWorking()::<lambda()>()>::_M_invoke<>(std::_Index_tuple<>) (
this=0x1ebb578) at /usr/include/c++/4.9/functional:1700
#26 0x00007ffff277b0ac in std::_Bind_simple<dev::Worker::startWorking()::<lambda()>()>::operator()(void) (this=0x1ebb578)
at /usr/include/c++/4.9/functional:1688
#27 0x00007ffff277b01a in std::thread::_Impl<std::_Bind_simple<dev::Worker::startWorking()::<lambda()>()> >::_M_run(void) (
this=0x1ebb560) at /usr/include/c++/4.9/thread:115
#28 0x00007ffff19c8e30 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#29 0x00007ffff1c246aa in start_thread (arg=0x7fff377f5700) at pthread_create.c:333
#30 0x00007ffff112ceed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment