Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-30857

SIGSEGV in THD::store_globals | wsrep_store_threadvars

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.0(EOL)
    • 11.0(EOL)
    • Galera
    • None

    Description

      Could not generate reduced testcase from pquery SQL as the crash occurred on secondary node. Attached backtrace from all threads.

      11.0.2 d77aaa6994b30660bd8788d3415ae4a44f55d9a0

      Core was generated by `/test/GAL_MD130323-mariadb-11.0.2-linux-x86_64-dbg/bin/mysqld --defaults-file=/'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=11)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      [Current thread is 1 (Thread 0x14a36ae35700 (LWP 3067205))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000555e691d69d3 in my_write_core (sig=sig@entry=11) at /test/11.0_dbg/mysys/stacktrace.c:424
      #2  0x0000555e68ad1cf9 in handle_fatal_signal (sig=11) at /test/11.0_dbg/sql/signal_handler.cc:357
      #3  <signal handler called>
      #4  0x0000555e6877a3f8 in THD::store_globals (this=this@entry=0x14a40c04ca58) at /test/11.0_dbg/sql/sql_class.cc:2182
      #5  0x0000555e68d9be68 in wsrep_store_threadvars (thd=0x14a40c04ca58) at /test/11.0_dbg/sql/wsrep_thd.cc:479
      #6  0x0000555e68d7fded in Wsrep_high_priority_service::store_globals (this=0x14a40c026b30) at /test/11.0_dbg/sql/wsrep_high_priority_service.cc:447
      #7  0x0000555e69344c2c in wsrep::high_priority_switch::high_priority_switch (current_service=@0x14a40c026b30: {_vptr.high_priority_service = 0x555e69c53ac8 <vtable for Wsrep_applier_service+16>, server_state_ = @0x555e6b62be80, must_exit_ = false}, orig_service=@0x14a36ae34c00: {_vptr.high_priority_service = 0x555e69c53ac8 <vtable for Wsrep_applier_service+16>, server_state_ = @0x555e6b62be80, must_exit_ = false}, this=<synthetic pointer>) at /test/11.0_dbg/wsrep-lib/include/wsrep/high_priority_service.hpp:253
      #8  wsrep::server_state::close_transactions_at_disconnect (this=this@entry=0x555e6b62be80, high_priority_service=@0x14a36ae34c00: {_vptr.high_priority_service = 0x555e69c53ac8 <vtable for Wsrep_applier_service+16>, server_state_ = @0x555e6b62be80, must_exit_ = false}) at /test/11.0_dbg/wsrep-lib/src/server_state.cpp:1579
      #9  0x0000555e693485e0 in wsrep::server_state::go_final (this=this@entry=0x555e6b62be80, lock=@0x14a36ae33a50: {_M_device = 0x555e6b62c168, _M_owns = true}, view=@0x14a36ae33e10: {state_id_ = {static undefined_ = {static undefined_ = <same as static member of an already seen type>, id_ = {static undefined_ = {static undefined_ = <same as static member of an already seen type>, data_ = {buf = '\000' <repeats 15 times>}}, data_ = {buf = '\000' <repeats 15 times>}}, seqno_ = {seqno_ = -1}}, id_ = {static undefined_ = {static undefined_ = <same as static member of an already seen type>, data_ = {buf = '\000' <repeats 15 times>}}, data_ = {buf = "\021\234\242j\303\035\021\355\274\267J\036\262\213\230e"}}, seqno_ = {seqno_ = 150}}, view_seqno_ = {seqno_ = -1}, status_ = wsrep::view::non_primary, capabilities_ = 184703, own_index_ = -1, protocol_version_ = 4, members_ = std::vector of length 0, capacity 0}, hps=hps@entry=0x14a36ae34c00) at /test/11.0_dbg/wsrep-lib/src/server_state.cpp:1019
      #10 0x0000555e6934b240 in wsrep::server_state::on_non_primary_view (this=this@entry=0x555e6b62be80, view=@0x14a36ae33e10: {state_id_ = {static undefined_ = {static undefined_ = <same as static member of an already seen type>, id_ = {static undefined_ = {static undefined_ = <same as static member of an already seen type>, data_ = {buf = '\000' <repeats 15 times>}}, data_ = {buf = '\000' <repeats 15 times>}}, seqno_ = {seqno_ = -1}}, id_ = {static undefined_ = {static undefined_ = <same as static member of an already seen type>, data_ = {buf = '\000' <repeats 15 times>}}, data_ = {buf = "\021\234\242j\303\035\021\355\274\267J\036\262\213\230e"}}, seqno_ = {seqno_ = 150}}, view_seqno_ = {seqno_ = -1}, status_ = wsrep::view::non_primary, capabilities_ = 184703, own_index_ = -1, protocol_version_ = 4, members_ = std::vector of length 0, capacity 0}, high_priority_service=high_priority_service@entry=0x14a36ae34c00) at /test/11.0_dbg/wsrep-lib/src/server_state.cpp:1002
      #11 0x0000555e6934b667 in wsrep::server_state::on_view (this=this@entry=0x555e6b62be80, view=@0x14a36ae33e10: {state_id_ = {static undefined_ = {static undefined_ = <same as static member of an already seen type>, id_ = {static undefined_ = {static undefined_ = <same as static member of an already seen type>, data_ = {buf = '\000' <repeats 15 times>}}, data_ = {buf = '\000' <repeats 15 times>}}, seqno_ = {seqno_ = -1}}, id_ = {static undefined_ = {static undefined_ = <same as static member of an already seen type>, data_ = {buf = '\000' <repeats 15 times>}}, data_ = {buf = "\021\234\242j\303\035\021\355\274\267J\036\262\213\230e"}}, seqno_ = {seqno_ = 150}}, view_seqno_ = {seqno_ = -1}, status_ = wsrep::view::non_primary, capabilities_ = 184703, own_index_ = -1, protocol_version_ = 4, members_ = std::vector of length 0, capacity 0}, high_priority_service=high_priority_service@entry=0x14a36ae34c00) at /test/11.0_dbg/wsrep-lib/src/server_state.cpp:1043
      #12 0x0000555e69362b0c in (anonymous namespace)::view_cb (app_ctx=0x555e6b62be80, recv_ctx=0x14a36ae34c00, view_info=<optimized out>) at /test/11.0_dbg/wsrep-lib/src/wsrep_provider_v26.cpp:404
      #13 0x000014a4332ac70d in galera::ReplicatorSMM::submit_view_info (this=<optimized out>, recv_ctx=<optimized out>, view_info=<optimized out>) at /test/galera_4x_dbg/galera/src/replicator_smm.cpp:2437
      #14 0x000014a4332b9692 in galera::ReplicatorSMM::process_non_prim_conf_change (this=0x555e6b642810, recv_ctx=0x14a36ae34c00, conf=<optimized out>, my_index=-1) at /test/galera_4x_dbg/galera/src/replicator_smm.cpp:2530
      #15 0x000014a4332bd28e in galera::ReplicatorSMM::process_conf_change (this=0x555e6b642810, recv_ctx=0x14a36ae34c00, conf=@0x14a36ae34430: {memb = std::vector of length 0, capacity 0, uuid = {data = "\021\234\242j\303\035\021\355\274\267J\036\262\213\230e", alignment = 17082467586737871889}, seqno = 150, conf_id = -1, vote_seqno = -1, vote_res = 0, repl_proto_ver = 10, appl_proto_ver = 4}, cc=@0x14a36ae34620: {seqno_g = -1, seqno_l = 152, buf = 0x14a424011868, size = 72, type = GCS_ACT_CCHANGE}) at /test/galera_4x_dbg/galera/src/replicator_smm.cpp:2461
      #16 0x000014a4332ede5b in galera::GcsActionSource::dispatch (this=0x555e6b67ca60, recv_ctx=0x14a36ae34c00, act=@0x14a36ae34620: {seqno_g = -1, seqno_l = 152, buf = 0x14a424011868, size = 72, type = GCS_ACT_CCHANGE}, exit_loop=<optimized out>) at /test/galera_4x_dbg/galera/src/gcs_action_source.cpp:127
      #17 0x000014a4332ee322 in galera::GcsActionSource::process (this=0x555e6b67ca60, recv_ctx=0x14a36ae34c00, exit_loop=@0x14a36ae3482f: false) at /test/galera_4x_dbg/galera/src/gcs_action_source.cpp:186
      #18 0x000014a4332b8d50 in galera::ReplicatorSMM::async_recv (this=0x555e6b642810, recv_ctx=0x14a36ae34c00) at /test/galera_4x_dbg/galera/src/replicator_smm.cpp:402
      #19 0x000014a43328d641 in galera_recv (gh=<optimized out>, recv_ctx=<optimized out>) at /test/galera_4x_dbg/galera/src/wsrep_provider.cpp:264
      #20 0x0000555e69361a12 in wsrep::wsrep_provider_v26::run_applier (this=<optimized out>, applier_ctx=<optimized out>) at /test/11.0_dbg/wsrep-lib/src/wsrep_provider_v26.cpp:858
      #21 0x0000555e68d9d593 in wsrep_replication_process (thd=0x14a318000f88, arg=<optimized out>) at /test/11.0_dbg/sql/wsrep_server_state.h:56
      #22 0x0000555e68d8a434 in start_wsrep_THD (arg=0x555e6bacb400) at /test/11.0_dbg/sql/wsrep_mysqld.h:541
      #23 0x000014a433d4d609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #24 0x000014a433939133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        Activity

          People

            sysprg Julius Goryavsky
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.