Repository navigation
Closed
Labels
Description
Be aware that valgrind catches a few issues when stellar-core is quitting.
2015-08-19T13:38:54.747 71e160 [] [default] INFO Application destructing
2015-08-19T13:38:54.808 71e160 [] [default] INFO Application destroyed
==5118== Invalid read of size 8
==5118== at 0x63C2CC: asio::basic_io_object<asio::waitable_timer_service<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> >, false>::~basic_io_object() (deadline_timer_service.hpp:107)
==5118== by 0x63CE46: stellar::ProcessExitEvent::Impl::~Impl() (shared_ptr_base.h:149)
==5118== by 0x63F934: std::_Rb_tree<int, std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> >, std::_Select1st<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > >, std::less<int>, std::allocator<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > > >::_M_erase(std::_Rb_tree_node<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > >*) (shared_ptr_base.h:149)
==5118== by 0x5E11258: __run_exit_handlers (exit.c:82)
==5118== by 0x5E112A4: exit (exit.c:104)
==5118== by 0x5DF6ECB: (below main) (libc-start.c:321)
==5118== Address 0xa8d8618 is 88 bytes inside a block of size 96 free'd
==5118== at 0x4C2C2BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5118== by 0x7A5D99: asio::io_service::~io_service() (service_registry.ipp:100)
==5118== by 0x5B6E26: stellar::startApp(std::string, stellar::Config&) (main.cpp:254)
==5118== by 0x5B87D0: main (main.cpp:409)
==5118==
==5118== Invalid read of size 4
==5118== at 0x5BC1414: pthread_mutex_lock (pthread_mutex_lock.c:66)
==5118== by 0x63BCE5: unsigned long asio::detail::epoll_reactor::cancel_timer<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >(asio::detail::timer_queue<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >&, asio::detail::timer_queue<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >::per_timer_data&, unsigned long) (posix_mutex.hpp:51)
==5118== by 0x63C2E4: asio::basic_io_object<asio::waitable_timer_service<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> >, false>::~basic_io_object() (deadline_timer_service.hpp:107)
==5118== by 0x63CE46: stellar::ProcessExitEvent::Impl::~Impl() (shared_ptr_base.h:149)
==5118== by 0x63F934: std::_Rb_tree<int, std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> >, std::_Select1st<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > >, std::less<int>, std::allocator<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > > >::_M_erase(std::_Rb_tree_node<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > >*) (shared_ptr_base.h:149)
==5118== by 0x5E11258: __run_exit_handlers (exit.c:82)
==5118== by 0x5E112A4: exit (exit.c:104)
==5118== by 0x5DF6ECB: (below main) (libc-start.c:321)
==5118== Address 0xa8d86a0 is 64 bytes inside a block of size 176 free'd
==5118== at 0x4C2C2BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5118== by 0x7A5D99: asio::io_service::~io_service() (service_registry.ipp:100)
==5118== by 0x5B6E26: stellar::startApp(std::string, stellar::Config&) (main.cpp:254)
==5118== by 0x5B87D0: main (main.cpp:409)
==5118==
==5118== Invalid read of size 4
==5118== at 0x5BBCA03: __pthread_mutex_lock_full (pthread_mutex_lock.c:177)
==5118== by 0x63BCE5: unsigned long asio::detail::epoll_reactor::cancel_timer<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >(asio::detail::timer_queue<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >&, asio::detail::timer_queue<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >::per_timer_data&, unsigned long) (posix_mutex.hpp:51)
==5118== by 0x63C2E4: asio::basic_io_object<asio::waitable_timer_service<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> >, false>::~basic_io_object() (deadline_timer_service.hpp:107)
==5118== by 0x63CE46: stellar::ProcessExitEvent::Impl::~Impl() (shared_ptr_base.h:149)
==5118== by 0x63F934: std::_Rb_tree<int, std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> >, std::_Select1st<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > >, std::less<int>, std::allocator<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > > >::_M_erase(std::_Rb_tree_node<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > >*) (shared_ptr_base.h:149)
==5118== by 0x5E11258: __run_exit_handlers (exit.c:82)
==5118== by 0x5E112A4: exit (exit.c:104)
==5118== by 0x5DF6ECB: (below main) (libc-start.c:321)
==5118== Address 0xa8d86a0 is 64 bytes inside a block of size 176 free'd
==5118== at 0x4C2C2BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5118== by 0x7A5D99: asio::io_service::~io_service() (service_registry.ipp:100)
==5118== by 0x5B6E26: stellar::startApp(std::string, stellar::Config&) (main.cpp:254)
==5118== by 0x5B87D0: main (main.cpp:409)
==5118==
==5118== Invalid read of size 8
==5118== at 0x63BE11: asio::detail::timer_queue<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >::cancel_timer(asio::detail::timer_queue<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >::per_timer_data&, asio::detail::op_queue<asio::detail::task_io_service_operation>&, unsigned long) (timer_queue.hpp:175)
==5118== by 0x63BD01: unsigned long asio::detail::epoll_reactor::cancel_timer<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >(asio::detail::timer_queue<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >&, asio::detail::timer_queue<asio::detail::chrono_time_traits<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> > >::per_timer_data&, unsigned long) (epoll_reactor.hpp:63)
==5118== by 0x63C2E4: asio::basic_io_object<asio::waitable_timer_service<std::chrono::_V2::system_clock, asio::wait_traits<std::chrono::_V2::system_clock> >, false>::~basic_io_object() (deadline_timer_service.hpp:107)
==5118== by 0x63CE46: stellar::ProcessExitEvent::Impl::~Impl() (shared_ptr_base.h:149)
==5118== by 0x63F934: std::_Rb_tree<int, std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> >, std::_Select1st<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > >, std::less<int>, std::allocator<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > > >::_M_erase(std::_Rb_tree_node<std::pair<int const, std::shared_ptr<stellar::ProcessExitEvent::Impl> > >*) (shared_ptr_base.h:149)
==5118== by 0x5E11258: __run_exit_handlers (exit.c:82)
==5118== by 0x5E112A4: exit (exit.c:104)
==5118== by 0x5DF6ECB: (below main) (libc-start.c:321)
==5118== Address 0xa8d85f8 is 56 bytes inside a block of size 96 free'd
==5118== at 0x4C2C2BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5118== by 0x7A5D99: asio::io_service::~io_service() (service_registry.ipp:100)
==5118== by 0x5B6E26: stellar::startApp(std::string, stellar::Config&) (main.cpp:254)
==5118== by 0x5B87D0: main (main.cpp:409)
Activity
MonsieurNicolas commentedon Oct 29, 2015
Is this still the case? If so, can you tell us what you're doing to trigger this?
I tried to run both a validator and non validator node that performs catchup and didn't see this.
FredericHeem commentedon Nov 9, 2015
With the current source code, the error seems to be gone, I'll reopen if it happens again.
Merge pull request stellar#705 from stellar/dedupe-query-messages