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

Valgrind crash #2

Open
daigo opened this issue Mar 29, 2015 · 0 comments
Open

Valgrind crash #2

daigo opened this issue Mar 29, 2015 · 0 comments

Comments

@daigo
Copy link
Owner

daigo commented Mar 29, 2015

==29085== Invalid read of size 8
==29085== at 0x18C0D2: gpsshogi::SearchTree::nodeProgress(std::shared_ptrgpsshogi::UsiSlave, std::string, osl::search::InterimReport) (searchTree.cc:123)
==29085== by 0x18C4AF: ZNSt17_Function_handlerIFvN3osl6search13InterimReportEEZN8gpsshogi10SearchTree6goNodeERKSt10shared_ptrINS4_8UsiSlaveEERNS4_10SearchNodeEiEUlS2_E_E9_M_invokeERKSt9_Any_dataS2 (searchTree.cc:993)
==29085== by 0x185E55: std::_Function_handler<void ()(), std::_Bind<std::function<void ()(osl::search::InterimReport)> ()(osl::search::InterimReport)> >::M_invoke(std::Any_data const&) (functional:2439)
==29085== by 0x183A03: boost::asio::detail::completion_handler<std::function<void ()()> >::do_complete(boost::asio::detail::task_io_service
, boost::asio::detail::task_io_service_operation
, boost::system::error_code const&, unsigned long) (functional:2439)
==29085== by 0x16E390: boost::asio::detail::task_io_service::run(boost::system::error_code&) (task_io_service_operation.hpp:38)
==29085== by 0x1693BC: gpsshogi::Coordinator::start() (io_service.ipp:59)
==29085== by 0x143B5D: main (csagame.cc:184)
==29085== Address 0x70912c8 is 24 bytes inside a block of size 32 free'd
==29085== at 0x4C279DC: operator delete(void*) (vg_replace_malloc.c:457)
==29085== by 0x1A7834: boost::detail::function::functor_managerboost::algorithm::detail::token_finderF<boost::algorithm::detail::is_any_ofF >::manage(boost::detail::function::function_buffer const&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) (function_base.hpp:389)
==29085== by 0x1B2AB6: std::vector<std::string, std::allocatorstd::string >& boost::algorithm::iter_split<std::vector<std::string, std::allocatorstd::string >, std::string, boost::algorithm::detail::token_finderFboost::algorithm::detail::is_any_ofF >(std::vector<std::string, std::allocatorstd::string >&, std::string&, boost::algorithm::detail::token_finderFboost::algorithm::detail::is_any_ofF) (function_template.hpp:504)
==29085== by 0x1BEDD9: gpsshogi::SearchNode::find(std::string const&) (split.hpp:149)
==29085== by 0x1BF0EF: gpsshogi::SearchNode::findLeaf(std::string const&) (searchNode.cc:330)
==29085== by 0x18C157: gpsshogi::SearchTree::nodeProgress(std::shared_ptrgpsshogi::UsiSlave, std::string, osl::search::InterimReport) (searchTree.cc:126)
==29085== by 0x18C4AF: ZNSt17_Function_handlerIFvN3osl6search13InterimReportEEZN8gpsshogi10SearchTree6goNodeERKSt10shared_ptrINS4_8UsiSlaveEERNS4_10SearchNodeEiEUlS2_E_E9_M_invokeERKSt9_Any_dataS2 (searchTree.cc:993)
==29085== by 0x185E55: std::_Function_handler<void ()(), std::_Bind<std::function<void ()(osl::search::InterimReport)> ()(osl::search::InterimReport)> >::M_invoke(std::Any_data const&) (functional:2439)
==29085== by 0x183A03: boost::asio::detail::completion_handler<std::function<void ()()> >::do_complete(boost::asio::detail::task_io_service
, boost::asio::detail::task_io_service_operation
, boost::system::error_code const&, unsigned long) (functional:2439)
==29085== by 0x16E390: boost::asio::detail::task_io_service::run(boost::system::error_code&) (task_io_service_operation.hpp:38)
==29085== by 0x1693BC: gpsshogi::Coordinator::start() (io_service.ipp:59)
==29085== by 0x143B5D: main (csagame.cc:184)
==29085==
==29085== Invalid read of size 4
==29085== at 0x18C0FC: gpsshogi::SearchTree::nodeProgress(std::shared_ptrgpsshogi::UsiSlave, std::string, osl::search::InterimReport) (stl_tree.h:1277)
==29085== by 0x18C4AF: ZNSt17_Function_handlerIFvN3osl6search13InterimReportEEZN8gpsshogi10SearchTree6goNodeERKSt10shared_ptrINS4_8UsiSlaveEERNS4_10SearchNodeEiEUlS2_E_E9_M_invokeERKSt9_Any_dataS2 (searchTree.cc:993)
==29085== by 0x185E55: std::_Function_handler<void ()(), std::_Bind<std::function<void ()(osl::search::InterimReport)> ()(osl::search::InterimReport)> >::M_invoke(std::Any_data const&) (functional:2439)
==29085== by 0x183A03: boost::asio::detail::completion_handler<std::function<void ()()> >::do_complete(boost::asio::detail::task_io_service
, boost::asio::detail::task_io_service_operation
, boost::system::error_code const&, unsigned long) (functional:2439)
==29085== by 0x16E390: boost::asio::detail::task_io_service::run(boost::system::error_code&) (task_io_service_operation.hpp:38)
==29085== by 0x1693BC: gpsshogi::Coordinator::start() (io_service.ipp:59)
==29085== by 0x143B5D: main (csagame.cc:184)
==29085== Address 0x21 is not stack'd, malloc'd or (recently) free'd
==29085==
==29085==
==29085== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==29085== Access not within mapped region at address 0x21
==29085== at 0x18C0FC: gpsshogi::SearchTree::nodeProgress(std::shared_ptrgpsshogi::UsiSlave, std::string, osl::search::InterimReport) (stl_tree.h:1277)
==29085== by 0x18C4AF: ZNSt17_Function_handlerIFvN3osl6search13InterimReportEEZN8gpsshogi10SearchTree6goNodeERKSt10shared_ptrINS4_8UsiSlaveEERNS4_10SearchNodeEiEUlS2_E_E9_M_invokeERKSt9_Any_dataS2 (searchTree.cc:993)
==29085== by 0x185E55: std::_Function_handler<void ()(), std::_Bind<std::function<void ()(osl::search::InterimReport)> ()(osl::search::InterimReport)> >::M_invoke(std::Any_data const&) (functional:2439)
==29085== by 0x183A03: boost::asio::detail::completion_handler<std::function<void ()()> >::do_complete(boost::asio::detail::task_io_service
, boost::asio::detail::task_io_service_operation
, boost::system::error_code const&, unsigned long) (functional:2439)
==29085== by 0x16E390: boost::asio::detail::task_io_service::run(boost::system::error_code&) (task_io_service_operation.hpp:38)
==29085== by 0x1693BC: gpsshogi::Coordinator::start() (io_service.ipp:59)
==29085== by 0x143B5D: main (csagame.cc:184)
==29085== If you believe this happened as a result of a stack
==29085== overflow in your program's main thread (unlikely but
==29085== possible), you can try to increase the size of the
==29085== main thread stack using the --main-stacksize= flag.
==29085== The main thread stack size used in this run was 16777216.

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

No branches or pull requests

1 participant