Code used:https://www.boost.org/doc/libs/1_74_0/libs/beast/example/http/client/sync/http_client_sync.cpp
Boost version :1.74
Beast based simple http sync client crashing at boost_1_74_0/boost/asio/detail/object_pool.hpp:112 while integrating with application.
#0 alloc (arg=, this=0x7f275e73e480)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/detail/object_pool.hpp:112
112 free_list_ = object_pool_access::next(free_list_);
warning: File "/usr/local/lib64/libstdc++.so.6.0.21-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load:/usr/bin/mono-gdb.py".
To enable execution of this file add
add-auto-load-safe-path /usr/local/lib64/libstdc++.so.6.0.21-gdb.py
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
Missing separate debuginfos, use: debuginfo-install glibc-2.17-307.el7.1.x86_64 lksctp-tools-1.0.17-2.el7.x86_64
(gdb) bt full
#0 alloc (arg=, this=0x7f275e73e480)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/detail/object_pool.hpp:112
o = 0x9
#1 allocate_descriptor_state (this=0x7f275e73e3c0)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/detail/impl/epoll_reactor.ipp:629
descriptors_lock =
#2 register_descriptor (descriptor_data=@0x7f2748001540: 0x0, descriptor=9, this=0x7f275e73e3c0)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/detail/impl/epoll_reactor.ipp:154
ev = {events = 1584653008, data = {ptr = 0xbb0dda2931007f27, fd = 822116135, u32 = 822116135,
u64 = 13478669130240392999}}
result =
#3 do_open (ec=..., protocol=6, type=1, af=2, impl=..., this=)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/detail/impl/reactive_socket_service_base.ipp:186
sock = {boost::asio::detail::noncopyable = {}, socket_ = 9}
#4 open (ec=..., protocol=..., impl=..., this=)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/detail/reactive_socket_service.hpp:128
No locals.
#5 connect (ec=..., peer_endpoint=..., this=0x7f2748001530)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/basic_socket.hpp:890
No locals.
#6 boost::asio::connect<boost::asio::ip::tcp, boost::asio::execution::any_executor<boost::asio::execution::context_as_tboost::asio::execution_context&, boost::asio::execution::detail::blocking::never_t<0>, boost::asio::execution::prefer_only<boost::asio::execution::detail::blocking::possibly_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::outstanding_work::tracked_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::outstanding_work::untracked_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::relationship::fork_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::relationship::continuation_t<0> > >, boost::asio::ip::basic_resolver_iteratorboost::asio::ip::tcp, boost::asio::detail::default_connect_condition> (s=..., begin=..., end=..., connect_condition=..., ec=...)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/impl/connect.hpp:242
iter =
#7 0x0000000000acd695 in boost::asio::connect<boost::asio::ip::tcp, boost::asio::execution::any_executor<boost::asio::execution::context_as_tboost::asio::execution_context&, boost::asio::execution::detail::blocking::never_t<0>, boost::asio::execution::prefer_only<boost::asio::execution::detail::blocking::possibly_t<0> >, boost::asio::execution::prefer_only<boost::asio::exe---Type to continue, or q to quit---
cution::detail::outstanding_work::tracked_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::outstanding_work::untracked_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::relationship::fork_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::relationship::continuation_t<0> > >, boost::asio::ip::basic_resolver_resultsboost::asio::ip::tcp > (s=..., endpoints=..., ec=...)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/impl/connect.hpp:126
No locals.
#8 0x0000000000ac6f9d in connect<boost::asio::ip::tcp, boost::asio::execution::any_executor<boost::asio::execution::context_as_tboost::asio::execution_context&, boost::asio::execution::detail::blocking::never_t<0>, boost::asio::execution::prefer_only<boost::asio::execution::detail::blocking::possibly_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::outstanding_work::tracked_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::outstanding_work::untracked_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::relationship::fork_t<0> >, boost::asio::execution::prefer_only<boost::asio::execution::detail::relationship::continuation_t<0> > >, boost::asio::ip::basic_resolver_resultsboost::asio::ip::tcp > (endpoints=..., s=...) at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/asio/impl/connect.hpp:113
ec = {val_ = 1, failed_ = false, cat_ = 0x1000158c6}
#9 connect<boost::asio::ip::basic_resolver_resultsboost::asio::ip::tcp, void> (endpoints=..., this=0x7f2748000d60)
at /tmp/abc_boost_install_tmp/boost_1_74_0/boost/beast/core/basic_stream.hpp:597
''''
Aucun commentaire:
Enregistrer un commentaire