Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Exception: cryptonote::BLOCK_DNE' on main net #3284

Closed
Sheastesx opened this issue Feb 18, 2018 · 11 comments
Closed

'Exception: cryptonote::BLOCK_DNE' on main net #3284

Sheastesx opened this issue Feb 18, 2018 · 11 comments
Labels

Comments

@Sheastesx
Copy link

Sheastesx commented Feb 18, 2018

Node on then-current master using main net.
Happens really often. Please catch exception its spamming log and I cant find other information in it.

2018-02-07 03:19:41.577 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:124  Exception: cryptonote::BLOCK_DNE
2018-02-07 03:19:41.578 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:125  Unwound call stack:
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [1] ./monerod:__cxa_throw+0x10e [0x7f1dce9bf06e]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [2] ./monerod+0x3676d9 [0x7f1dce8e66d9]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [3] ./monerod:cryptonote::BlockchainLMDB::get_block_height(crypto::hash const&) const+0x436 [0x7f1dce8f3fd6]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [4] ./monerod:cryptonote::BlockchainLMDB::get_block_blob[abi:cxx11](crypto::hash const&) const+0x143 [0x7f1dce8e7503]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [5] ./monerod:bool cryptonote::Blockchain::get_blocks<std::__cxx11::list<crypto::hash, std::allocator<crypto::hash> >, std::__cxx11::list<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, cryptonote::block>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, cryptonote::block> > >, std::__cxx11::list<crypto::hash, std::allocator<crypto::hash> > >(std::__cxx11::list<crypto::hash, std::allocator<crypto::hash> > const&, std::__cxx11::list<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, cryptonote::block>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, cryptonote::block> > >&,std::__cxx11::list<crypto::hash, std::allocator<crypto::hash> >&) const+0x1fa [0x7f1dce94ad3a]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [6] ./monerod:cryptonote::Blockchain::handle_get_objects(cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request&, cryptonote::NOTIFY_RESPONSE_GET_OBJECTS::request&)+0x1db [0x7f1dce9316fb]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [7] ./monerod:cryptonote::t_cryptonote_protocol_handler<cryptonote::core>::handle_request_get_objects(int, cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request&, cryptonote::cryptonote_connection_context&)+0x18b [0x7f1dce8acbfb]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [8] ./monerod:int epee::net_utils::buff_to_t_adapter<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>, cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request, cryptonote::cryptonote_connection_context, boost::_bi::bind_t<int, boost::_mfi::mf3<int, cryptonote::t_cryptonote_protocol_handler<cryptonote::core>, int, cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request&, cryptonote::cryptonote_connection_context&>, boost::_bi::list4<boost::_bi::value<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>*>, boost::arg<1>, boost::arg<2>, boost::arg<3> > > >(cryptonote::t_cryptonote_protocol_handler<cryptonote::core>*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::_bi::bind_t<int, boost::_mfi::mf3<int, cryptonote::t_cryptonote_protocol_handler<cryptonote::core>, int, cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request&, cryptonote::cryptonote_connection_context&>, boost::_bi::list4<boost::_bi::value<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>*>, boost::arg<1>, boost::arg<2>, boost::arg<3> > >, cryptonote::cryptonote_connection_context&)+0x24f [0x7f1dce766c3f]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [9] ./monerod:int cryptonote::t_cryptonote_protocol_handler<cryptonote::core>::handle_invoke_map<cryptonote::cryptonote_connection_context>(bool, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, cryptonote::cryptonote_connection_context&, bool&)+0x2aa [0x7f1dce77580a]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [10] ./monerod:int nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core> >::handle_invoke_map<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> >(bool, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context>&, bool&)+0x2aa [0x7f1dce775c7a]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [11] ./monerod:nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core> >::notify(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context>&)+0x50 [0x7f1dce775e80]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [12] ./monerod:epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> >::handle_recv(void const*, unsigned long)+0x565 [0x7f1dce8c7d55]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [13] ./monerod:epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >::handle_read(boost::system::error_code const&, unsigned long)+0x2a8 [0x7f1dce8dfc78]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [14] ./monerod:void boost::asio::detail::strand_service::dispatch<boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long> >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>&)+0x7a [0x7f1dce8a9c4a]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [15] ./monerod:boost::asio::detail::completion_handler<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> > > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x1bd [0x7f1dce8aa0ed]
2018-02-07 03:19:41.591 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [16] ./monerod:void boost::asio::detail::strand_service::dispatch<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> > > >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> > >&)+0x226 [0x7f1dce8aa486]
2018-02-07 03:19:41.592 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [17] ./monerod:boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running> >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x250 [0x7f1dce8aa770]
2018-02-07 03:19:41.592 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [18] ./monerod:boost::asio::detail::epoll_reactor::descriptor_state::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x15c [0x7f1dce72390c]
2018-02-07 03:19:41.592 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [19] ./monerod:epee::net_utils::boosted_tcp_server<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >::worker_thread()+0x864 [0x7f1dce88ee34]
2018-02-07 03:19:41.592 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [20] /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.62.0+0x12116 [0x7f1dcbeed116]
2018-02-07 03:19:41.592 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [21] /lib/x86_64-linux-gnu/libpthread.so.0+0x7494 [0x7f1dcb428494]
2018-02-07 03:19:41.592 [P2P4]  INFO    stacktrace      src/common/stack_trace.cpp:163      [22] /lib/x86_64-linux-gnu/libc.so.6:clone+0x3f [0x7f1dcb16aaff]
@moneromooo-monero
Copy link
Collaborator

What commit hash are you running ?

@Sheastesx
Copy link
Author

Can no longer check but I think it was 1dfed56
I am currently trying to reproduce using 4f80c50, newest master

@moneromooo-monero
Copy link
Collaborator

I can see how another node asking for blocks you don't have would do this. Since that's not a bug per se, the code should special case this to avoid the exception in that case.

@arnuschky
Copy link
Contributor

We're seeing this too on 0.12.0.0:


2018-04-09 04:41:09.828	[P2P5]	DEBUG	net.p2p	src/p2p/net_node.inl:750	[185.61.138.246:18080 OUT]  COMMAND_HANDSHAKE INVOKED OK
2018-04-09 04:41:09.828	[P2P8]	DEBUG	net.p2p	src/p2p/net_node.inl:968	[185.61.138.246:18080 OUT] CONNECTION HANDSHAKED OK.
2018-04-09 04:41:09.828	[P2P5]	INFO 	net.p2p.msg	src/cryptonote_protocol/cryptonote_protocol_handler.inl:1231	[185.61.138.246:18080 OUT] Received NOTIFY_REQUEST_CHAIN (31 blocks
2018-04-09 04:41:09.828	[P2P8]	DEBUG	net.p2p	src/p2p/net_node.inl:1109	Considering connecting (out) to peer: a7d459c5fc81edd8 138.197.202.152:18080
2018-04-09 04:41:09.828	[P2P8]	DEBUG	net.p2p	src/p2p/net_node.inl:1124	Selected peer: a7d459c5fc81edd8 138.197.202.152:18080[peer_list=2] last_seen: d11.h21.m39.s40
2018-04-09 04:41:09.828	[P2P8]	DEBUG	net.p2p	src/p2p/net_node.inl:912	Connecting to 138.197.202.152:18080(peer_type=2, last_seen: d11.h21.m39.s40)...
2018-04-09 04:41:09.828	[P2P8]	DEBUG	net.p2p	contrib/epee/src/connection_basic.cpp:163	Spawned connection p2p#221 to 0.0.0.0 currently we have sockets count:29
2018-04-09 04:41:09.829	[P2P5]	DEBUG	net.cn	src/cryptonote_protocol/cryptonote_protocol_handler.inl:1239	[185.61.138.246:18080 OUT] -->>NOTIFY_RESPONSE_CHAIN_ENTRY: m_start_height=1546450, m_total_height=1547092, m_block_ids.size()=642
2018-04-09 04:41:09.829	[P2P5]	DEBUG	cn.block_queue	src/cryptonote_protocol/cryptonote_protocol_handler.h:154	[185.61.138.246:18080 OUT] post N10cryptonote27NOTIFY_RESPONSE_CHAIN_ENTRYE -->
2018-04-09 04:41:09.900	[P2P8]	INFO 	net.p2p	src/p2p/net_node.inl:1768	[138.197.202.152:18080 1f2a4691-79bd-ee46-73b3-389b1c134e31 OUT] NEW CONNECTION
2018-04-09 04:41:10.016	[P2P2]	INFO 	net.p2p.msg	src/cryptonote_protocol/cryptonote_protocol_handler.inl:1231	[97.126.119.159:18080 OUT] Received NOTIFY_REQUEST_CHAIN (31 blocks
2018-04-09 04:41:10.024	[P2P2]	DEBUG	net.cn	src/cryptonote_protocol/cryptonote_protocol_handler.inl:1239	[97.126.119.159:18080 OUT] -->>NOTIFY_RESPONSE_CHAIN_ENTRY: m_start_height=1085432, m_total_height=1547092, m_block_ids.size()=10000
2018-04-09 04:41:10.024	[P2P2]	DEBUG	cn.block_queue	src/cryptonote_protocol/cryptonote_protocol_handler.h:154	[97.126.119.159:18080 OUT] post N10cryptonote27NOTIFY_RESPONSE_CHAIN_ENTRYE -->
2018-04-09 04:41:10.136	[P2P7]	INFO 	net.p2p.msg	src/cryptonote_protocol/cryptonote_protocol_handler.inl:1231	[98.113.213.148:18080 OUT] Received NOTIFY_REQUEST_CHAIN (32 blocks
2018-04-09 04:41:10.144	[P2P7]	DEBUG	net.cn	src/cryptonote_protocol/cryptonote_protocol_handler.inl:1239	[98.113.213.148:18080 OUT] -->>NOTIFY_RESPONSE_CHAIN_ENTRY: m_start_height=1239767, m_total_height=1547092, m_block_ids.size()=10000
2018-04-09 04:41:10.145	[P2P7]	DEBUG	cn.block_queue	src/cryptonote_protocol/cryptonote_protocol_handler.h:154	[98.113.213.148:18080 OUT] post N10cryptonote27NOTIFY_RESPONSE_CHAIN_ENTRYE -->
2018-04-09 04:41:10.355	[P2P0]	INFO 	net.p2p.msg	src/cryptonote_protocol/cryptonote_protocol_handler.inl:804	[185.61.138.246:18080 OUT] Received NOTIFY_REQUEST_GET_OBJECTS (20 blocks, 0 txes)
2018-04-09 04:41:10.355	[P2P0]	INFO 	blockchain.db.lmdb	src/blockchain_db/lmdb/db_lmdb.cpp:82	Attempted to retrieve non-existent block height
2018-04-09 04:41:10.355	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:124	Exception: cryptonote::BLOCK_DNE
2018-04-09 04:41:10.355	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:125	Unwound call stack:
2018-04-09 04:41:10.357	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [1] /usr/local/bin/monerod:__cxa_throw+0x90 [0x7f6c092df810]
2018-04-09 04:41:10.357	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [2] /usr/local/bin/monerod+0x3c0e21 [0x7f6c09214e21]
2018-04-09 04:41:10.357	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [3] /usr/local/bin/monerod:cryptonote::BlockchainLMDB::get_block_height(crypto::hash const&) const+0x366 [0x7f6c0921f746]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [4] /usr/local/bin/monerod:cryptonote::BlockchainLMDB::get_block_blob(crypto::hash const&) const+0x10f [0x7f6c092155df]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [5] /usr/local/bin/monerod:bool cryptonote::Blockchain::get_blocks<std::list<crypto::hash, std::allocator<crypto::hash> >, std::list<std::pair<std::string, cryptonote::block>, std::allocator<std::pair<std::string, cryptonote::block> > >, std::list<crypto::hash, std::allocator<crypto::hash> > >(std::list<crypto::hash, std::allocator<crypto::hash> > const&, std::list<std::pair<std::string, cryptonote::block>, std::allocator<std::pair<std::string, cryptonote::block> > >&, std::list<crypto::hash, std::allocator<crypto::hash> >&) const+0x206 [0x7f6c09275866]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [6] /usr/local/bin/monerod:cryptonote::Blockchain::handle_get_objects(cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request&, cryptonote::NOTIFY_RESPONSE_GET_OBJECTS::request&)+0x1d3 [0x7f6c0925e183]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [7] /usr/local/bin/monerod:cryptonote::t_cryptonote_protocol_handler<cryptonote::core>::handle_request_get_objects(int, cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request&, cryptonote::cryptonote_connection_context&)+0x19c [0x7f6c091de55c]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [8] /usr/local/bin/monerod:int epee::net_utils::buff_to_t_adapter<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>, cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request, cryptonote::cryptonote_connection_context, boost::_bi::bind_t<int, boost::_mfi::mf3<int, cryptonote::t_cryptonote_protocol_handler<cryptonote::core>, int, cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request&, cryptonote::cryptonote_connection_context&>, boost::_bi::list4<boost::_bi::value<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>*>, boost::arg<1>, boost::arg<2>, boost::arg<3> > > >(cryptonote::t_cryptonote_protocol_handler<cryptonote::core>*, int, std::string const&, boost::_bi::bind_t<int, boost::_mfi::mf3<int, cryptonote::t_cryptonote_protocol_handler<cryptonote::core>, int, cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request&, cryptonote::cryptonote_connection_context&>, boost::_bi::list4<boost::_bi::value<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>*>, boost::arg<1>, boost::arg<2>, boost::arg<3> > >, cryptonote::cryptonote_connection_context&)+0x237 [0x7f6c090a2287]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [9] /usr/local/bin/monerod:int nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core> >::handle_invoke_map<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> >(bool, int, std::string const&, std::string&, nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context>&, bool&)+0x621 [0x7f6c090a65c1]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [10] /usr/local/bin/monerod:nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core> >::notify(int, std::string const&, nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context>&)+0x42 [0x7f6c090a6852]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [11] /usr/local/bin/monerod:epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> >::handle_recv(void const*, unsigned long)+0x634 [0x7f6c091ba504]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [12] /usr/local/bin/monerod:epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >::handle_read(boost::system::error_code const&, unsigned long)+0x255 [0x7f6c091fdde5]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [13] /usr/local/bin/monerod:void boost::asio::detail::strand_service::dispatch<boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long> >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>&)+0x79 [0x7f6c091db319]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [14] /usr/local/bin/monerod:boost::asio::detail::completion_handler<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> > > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x19e [0x7f6c091db81e]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [15] /usr/local/bin/monerod:void boost::asio::detail::strand_service::dispatch<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> > > >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> > >&)+0x3b7 [0x7f6c091dbce7]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [16] /usr/local/bin/monerod:boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running> >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x257 [0x7f6c091dc037]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [17] /usr/local/bin/monerod:boost::asio::detail::epoll_reactor::descriptor_state::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x11e [0x7f6c0901990e]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [18] /usr/local/bin/monerod:boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service_thread_info&, boost::system::error_code const&)+0x2fd [0x7f6c0901560d]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [19] /usr/local/bin/monerod:epee::net_utils::boosted_tcp_server<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_t<cryptonote::cryptonote_connection_context> > >::worker_thread()+0x289 [0x7f6c091c2369]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [20] /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0+0xf77f [0x7f6c06cfd77f]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [21] /lib/x86_64-linux-gnu/libpthread.so.0+0x8184 [0x7f6c065be184]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	    [22] /lib/x86_64-linux-gnu/libc.so.6:clone+0x6d [0x7f6c062eb03d]
2018-04-09 04:41:10.358	[P2P0]	INFO 	stacktrace	src/common/stack_trace.cpp:163	

@ddobreff
Copy link

We are also observing this issue with 0.12.0.0:

error_code const&, unsigned long)+0x250 [0x557fa4a43930]
2018-04-12 19:07:37.515 [P2P0] INFO stacktrace src/common/stack_trace.cpp:163 [18] /media/raid6/coins/Daemons/monero/monerod:boost::asio::detail::epoll_reactor::descriptor_state::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x1f4 [0x557fa48612e4]
2018-04-12 19:07:37.515 [P2P0] INFO stacktrace src/common/stack_trace.cpp:163 [19] /media/raid6/coins/Daemons/monero/monerod:epee::net_utils::boosted_tcp_server<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_tcryptonote::cryptonote_connection_context > >::worker_thread()+0x854 [0x557fa4a27b54]
2018-04-12 19:07:37.515 [P2P0] INFO stacktrace src/common/stack_trace.cpp:163 [20] /media/raid6/coins/Daemons/monero/monerod+0x9870c5 [0x557fa4eed0c5]
2018-04-12 19:07:37.515 [P2P0] INFO stacktrace src/common/stack_trace.cpp:163 [21] /lib/x86_64-linux-gnu/libpthread.so.0+0x76ba [0x7f11864d36ba]
2018-04-12 19:07:37.515 [P2P0] INFO stacktrace src/common/stack_trace.cpp:163 [22] /lib/x86_64-linux-gnu/libc.so.6:clone+0x6d [0x7f118620941d]
2018-04-12 19:07:37.515 [P2P0] INFO stacktrace src/common/stack_trace.cpp:163
2018-04-12 19:07:48.090 [P2P2] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1167 [68.2.135.206:18080 OUT] Synced 1549736/1549764
2018-04-12 19:09:15.539 [P2P9] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:310 [163.172.20.17:52602 INC] Sync data returned a new top block candidate: 1549736 -> 1549765 [Your node is 29 blocks (0 days) behind]
SYNCHRONIZATION started
2018-04-12 19:09:46.747 [P2P7] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:310 [163.172.20.17:18082 OUT] Sync data returned a new top block candidate: 1549736 -> 1549765 [Your node is 29 blocks (0 days) behind]
SYNCHRONIZATION started

@moneromooo-monero
Copy link
Collaborator

Can you paste the start of that trace please ? There might also be a message immediately before it.

@jtgrassie
Copy link
Contributor

My logs filled with these stack traces also. Seems to be peers asking for blocks that are not on same chain (incorrect height). Should probably not be spitting out a stack trace but rather a simple info message.

@moneromooo-monero
Copy link
Collaborator

#3726

@elrippo
Copy link

elrippo commented May 12, 2018

Same Problem here, guided from bitcointalk.org
Running Ubuntu 16.04LTS Server 64bit 4TB HDD, Octacore AMD with 64GB RAM, v-0.12.0.0

bitmonero.log for download, the link will expire in 7 days

Kind regards,
elrippo

@dEBRUYNE-1
Copy link
Contributor

@elrippo - You should be able to fix your issue by building the release-v0.12 branch.

@moneromooo-monero
Copy link
Collaborator

I've silenced those when they come from handle_get_objects.

+resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants