boost::asio::detail::do_throw_error(boost::system::error_code const&, char const*) (err=..., locatio

有时候会报boost相关的错误,如下:

此时需要重新编译程序即可以解决 

 bt
#0  0x00007feb7ad2470f in raise () at /lib64/libc.so.6
#1  0x00007feb7ad0eb25 in abort () at /lib64/libc.so.6
#2  0x00007feb7b8f909b in __gnu_cxx::__verbose_terminate_handler() [clone .cold.1] () at /lib64/libstdc++.so.6
#3  0x00007feb7b8ff53c in __cxxabiv1::__terminate(void (*)()) () at /lib64/libstdc++.so.6
#4  0x00007feb7b8ff597 in  () at /lib64/libstdc++.so.6
#5  0x00007feb7b8ff7f8 in  () at /lib64/libstdc++.so.6
#6  0x00007feb80c670f3 in boost::throw_exception(boost::system::system_error const&) (e=...) at /usr/local/boost/include/boost/throw_exception.hpp:70
#7  0x00007feb80c63328 in boost::asio::detail::do_throw_error(boost::system::error_code const&, char const*) (err=..., location=0x7feb80d6191a "mutex") at /usr/local/boost/include/boost/asio/detail/impl/throw_error.ipp:38
#8  0x00007feb80c63218 in boost::asio::detail::throw_error(boost::system::error_code const&, char const*) (err=..., location=0x7feb80d6191a "mutex") at /usr/local/boost/include/boost/asio/detail/throw_error.hpp:42
#9  0x00007feb80c633c9 in boost::asio::detail::posix_mutex::posix_mutex() (this=0x28979e8) at /usr/local/boost/include/boost/asio/detail/impl/posix_mutex.ipp:37
#10 0x00007feb80c63a7a in boost::asio::detail::conditionally_enabled_mutex::conditionally_enabled_mutex(bool) (this=0x28979e0, enabled=true) at /usr/local/boost/include/boost/asio/detail/conditionally_enabled_mutex.hpp:109
#11 0x00007feb80c6451b in boost::asio::detail::epoll_reactor::epoll_reactor(boost::asio::execution_context&) (this=0x28979b0, ctx=...) at /usr/local/boost/include/boost/asio/detail/impl/epoll_reactor.ipp:47
#12 0x00007feb80c6d42b in boost::asio::detail::service_registry::create(void*) (owner=0x2898430) at /usr/local/boost/include/boost/asio/detail/impl/service_registry.hpp:87
#13 0x00007feb80c635b0 in boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* (*)(void*), void*) (this=0x2898d60, key=..., factory=0x7feb80c6d400 (void*)>, owner=0x2898430) at /usr/local/boost/include/boost/asio/detail/impl/service_registry.ipp:132
#14 0x00007feb80c6a513 in boost::asio::detail::service_registry::use_service(boost::asio::io_context&) (this=0x2898d60, owner=...) at /usr/local/boost/include/boost/asio/detail/impl/service_registry.hpp:39
#15 0x00007feb80c681bb in boost::asio::use_service(boost::asio::io_context&) (ioc=...) at /usr/local/boost/include/boost/asio/impl/io_context.hpp:39
#16 0x00007feb80c72ec2 in boost::asio::detail::deadline_timer_service >::deadline_timer_service(boost::asio::io_context&) (this=0x288f450, io_context=...) at /usr/local/boost/include/boost/asio/detail/deadline_timer_service.hpp:69
#17 0x00007feb80c721ad in boost::asio::detail::service_registry::create >, boost::asio::io_context>(void*) (owner=0x2898430) at /usr/local/boost/include/boost/asio/detail/impl/service_registry.hpp:87
#18 0x00007feb80c635b0 in boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* (*)(void*), void*) (this=0x2898d60, key=..., factory=0x7feb80c72182

你可能感兴趣的:(c/c++)