mysqld: galerautils/src/gu_asio_stream_engine.cpp:298: gu::AsioStreamEngine::op_status AsioSslStreamEngine::map_status(int, int, const char*): Assertion `0' failed.
General
Escalation
General
Escalation
Description
Environment
None
Smart Checklist
Activity
Show:
Details
Details
Assignee
Unassigned
UnassignedReporter
mohit.joshi
mohit.joshiTime tracking
3h logged
Affects versions
Priority
Smart Checklist
Open Smart Checklist
Smart Checklist

Open Smart Checklist
Created June 1, 2022 at 2:33 AM
Updated March 6, 2024 at 8:55 PM
In PXC 8.0.27, a server hang is seen while executing the queries which later crashes the server.
Below is the stacktrace seen:
#0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56 56 ../sysdeps/unix/sysv/linux/pthread_kill.c: No such file or directory. [Current thread is 1 (Thread 0x7fe6c4dec700 (LWP 2003842))] (gdb) bt #0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56 #1 0x000055b7db36e7e4 in my_write_core (sig=6) at /home/mohit.joshi/pxc_8.0/mysys/stacktrace.cc:395 #2 0x000055b7da0ac8d1 in handle_fatal_signal (sig=6) at /home/mohit.joshi/pxc_8.0/sql/signal_handler.cc:205 #3 <signal handler called> #4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #5 0x00007fe6d3ba7859 in __GI_abort () at abort.c:79 #6 0x00007fe6d3ba7729 in __assert_fail_base (fmt=0x7fe6d3d3d588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7fe6c7616bc2 "0", file=0x7fe6c7616f00 "galerautils/src/gu_asio_stream_engine.cpp", line=298, function=<optimized out>) at assert.c:92 #7 0x00007fe6d3bb9006 in __GI___assert_fail (assertion=0x7fe6c7616bc2 "0", file=0x7fe6c7616f00 "galerautils/src/gu_asio_stream_engine.cpp", line=298, function=0x7fe6c7616ea8 "gu::AsioStreamEngine::op_status AsioSslStreamEngine::map_status(int, int, const char*)") at assert.c:101 #8 0x00007fe6c7435c70 in AsioSslStreamEngine::map_status (this=0x7fe6b0022d70, ssl_error=6, sys_error=0, op=0x7fe6c7616e9a "read") at galerautils/src/gu_asio_stream_engine.cpp:298 #9 0x00007fe6c7435a72 in AsioSslStreamEngine::do_read (this=0x7fe6b0022d70, buf=0x7fe6b00245e0, max_count=32776) at galerautils/src/gu_asio_stream_engine.cpp:210 #10 0x00007fe6c74358f4 in AsioSslStreamEngine::read (this=0x7fe6b0022d70, buf=0x7fe6b00245e0, max_count=32776) at galerautils/src/gu_asio_stream_engine.cpp:172 #11 0x00007fe6c741d5bf in gu::AsioStreamReact::read_handler (this=0x55b7e2b210d0, handler=std::shared_ptr<class gu::AsioSocketHandler> (use count 3, weak count 1) = {...}, ec=...) at galerautils/src/gu_asio_stream_react.cpp:449 #12 0x00007fe6c7433df8 in boost::_mfi::mf2<void, gu::AsioStreamReact, std::shared_ptr<gu::AsioSocketHandler> const&, std::error_code const&>::call<std::shared_ptr<gu::AsioStreamReact>, std::shared_ptr<gu::AsioSocketHandler> const, std::error_code const> (this=0x7fe6c4deb740, u=std::shared_ptr<class gu::AsioStreamReact> (use count 2, weak count 1) = {...}, b1=std::shared_ptr<class gu::AsioSocketHandler> (use count 3, weak count 1) = {...}, b2=...) at /usr/include/boost/bind/mem_fn_template.hpp:271 #13 0x00007fe6c7433af7 in boost::_mfi::mf2<void, gu::AsioStreamReact, std::shared_ptr<gu::AsioSocketHandler> const&, std::error_code const&>::operator()<std::shared_ptr<gu::AsioStreamReact> > (this=0x7fe6c4deb740, u=std::shared_ptr<class gu::AsioStreamReact> (use count 2, weak count 1) = {...}, a1=std::shared_ptr<class gu::AsioSocketHandler> (use count 3, weak count 1) = {...}, a2=...) at /usr/include/boost/bind/mem_fn_template.hpp:286 #14 0x00007fe6c7433595 in boost::_bi::list3<boost::_bi::value<std::shared_ptr<gu::AsioStreamReact> >, boost::_bi::value<std::shared_ptr<gu::AsioSocketHandler> >, boost::arg<1> (*)()>::operator()<boost::_mfi::mf2<void, gu::AsioStreamReact, std::shared_ptr<gu::AsioSocketHandler> const&, std::error_code const&>, boost::_bi::rrlist2<std::error_code const&, unsigned long const&> > (this=0x7fe6c4deb750, f=..., a=...) at /usr/include/boost/bind/bind.hpp:398 #15 0x00007fe6c74331e9 in boost::_bi::bind_t<void, boost::_mfi::mf2<void, gu::AsioStreamReact, std::shared_ptr<gu::AsioSocketHandler> const&, std::error_code const&>, boost::_bi::list3<boost::_bi::value<std::shared_ptr<gu::AsioStreamReact> >, boost::_bi::value<std::shared_ptr<gu::AsioSocketHandler> >, boost::arg<1> (*)()> >::operator()<std::error_code const&, unsigned long const&> (this=0x7fe6c4deb740, a1=..., a2=@0x7fe6c4deb780: 0) at /usr/include/boost/bind/bind.hpp:1318 #16 0x00007fe6c7432e45 in asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, gu::AsioStreamReact, std::shared_ptr<gu::AsioSocketHandler> const&, std::error_code const&>, boost::_bi::list3<boost::_bi::value<std::shared_ptr<gu::AsioStreamReact> >, boost::_bi::value<std::shared_ptr<gu::AsioSocketHandler> >, boost::arg<1> (*)()> >, std::error_code, unsigned long>::operator() (this=0x7fe6c4deb740) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/detail/bind_handler.hpp:126 #17 0x00007fe6c74327ce in asio::asio_handler_invoke<asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, gu::AsioStreamReact, std::shared_ptr<gu::AsioSocketHandler> const&, std::error_code const&>, boost::_bi::list3<boost::_bi::value<std::shared_ptr<gu::AsioStreamReact> >, boost::_bi::value<std::shared_ptr<gu::AsioSocketHandler> >, boost::arg<1> (*)()> >, std::error_code, unsigned long> > (function=...) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/handler_invoke_hook.hpp:68 #18 0x00007fe6c7431af5 in asio_handler_invoke_helpers::invoke<asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, gu::AsioStreamReact, std::shared_ptr<gu::AsioSocketHandler> const&, std::error_code const&>, boost::_bi::list3<boost::_bi::value<std::shared_ptr<gu::AsioStreamReact> >, boost::_bi::value<std::shared_ptr<gu::AsioSocketHandler> >, boost::arg<1> (*)()> >, std::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, gu::AsioStreamReact, std::shared_ptr<gu::AsioSocketHandler> const&, std::error_code const&>, boost::_bi::list3<boost::_bi::value<std::shared_ptr<gu::AsioStreamReact> >, boost::_bi::value<std::shared_ptr<gu::AsioSocketHandler> >, boost::arg<1> (*)()> > > (function=..., context=...) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/detail/handler_invoke_helpers.hpp:37 #19 0x00007fe6c743033d in asio::detail::reactive_null_buffers_op<boost::_bi::bind_t<void, boost::_mfi::mf2<void, gu::AsioStreamReact, std::shared_ptr<gu::AsioSocketHandler> const&, std::error_code const&>, boost::_bi::list3<boost::_bi::value<std::shared_ptr<gu::AsioStreamReact> >, boost::_bi::value<std::shared_ptr<gu::AsioSocketHandler> >, boost::arg<1> (*)()> > >::do_complete (owner=0x55b7e2acd010, base=0x7fe6b000cff0) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/detail/reactive_null_buffers_op.hpp:74 #20 0x00007fe6c73f947c in asio::detail::task_io_service_operation::complete (this=0x7fe6b000cff0, owner=..., ec=..., bytes_transferred=0) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/detail/task_io_service_operation.hpp:37 #21 0x00007fe6c74104b1 in asio::detail::epoll_reactor::descriptor_state::do_complete (owner=0x55b7e2acd010, base=0x55b7e2b2df80, ec=..., bytes_transferred=5) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/detail/impl/epoll_reactor.ipp:670 #22 0x00007fe6c73f947c in asio::detail::task_io_service_operation::complete (this=0x55b7e2b2df80, owner=..., ec=..., bytes_transferred=5) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/detail/task_io_service_operation.hpp:37 #23 0x00007fe6c73fb883 in asio::detail::task_io_service::do_run_one (this=0x55b7e2acd010, lock=..., this_thread=..., ec=...) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/detail/impl/task_io_service.ipp:371 #24 0x00007fe6c73fb121 in asio::detail::task_io_service::run (this=0x55b7e2acd010, ec=...) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/detail/impl/task_io_service.ipp:148 #25 0x00007fe6c73fbb66 in asio::io_service::run (this=0x55b7e2b15420) at /home/mohit.joshi/pxc_8.0/percona-xtradb-cluster-galera/asio/asio/impl/io_service.ipp:58 #26 0x00007fe6c73f52d6 in gu::AsioIoService::run (this=0x55b7e2b13608) at galerautils/src/gu_asio.cpp:705 #27 0x00007fe6c7537386 in gcomm::AsioProtonet::event_loop (this=0x55b7e2b13550, period=...) at gcomm/src/asio_protonet.cpp:103 #28 0x00007fe6c756521e in GCommConn::run (this=0x55b7e2b17750) at gcs/src/gcs_gcomm.cpp:528 #29 0x00007fe6c75641a4 in run_fn (arg=0x55b7e2b17750) at gcs/src/gcs_gcomm.cpp:388 #30 0x00007fe6d4586609 in start_thread (arg=<optimized out>) at pthread_create.c:477 #31 0x00007fe6d3ca4163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95