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

Assertion `state_ == s_idle || state_ == s_exec || state_ == s_result || state_ == s_quitting' failed in int wsrep::client_state::before_rollback()

    XMLWordPrintable

Details

    Description

      The crash is from galera multi-thread pquery run.

      7 fa3ad2467b53a06c50b0329fbaf2e59d28085370

      mysqld: /test/10.6_dbg/wsrep-lib/include/wsrep/client_state.hpp:522: int wsrep::client_state::before_rollback(): Assertion `state_ == s_idle || state_ == s_exec || state_ == s_result || state_ == s_quitting' failed.
      

      7 fa3ad2467b53a06c50b0329fbaf2e59d28085370

      Core was generated by `/test/GAL_EMD140223-mariadb-10.6.12-7-linux-x86_64-dbg/bin/mysqld --defaults-fi'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      [Current thread is 1 (Thread 0x1524c0364700 (LWP 4192181))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000558f10c807d5 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
      #2  0x0000558f10533097 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:357
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x000015250cd21859 in __GI_abort () at abort.c:79
      #6  0x000015250cd21729 in __assert_fail_base (fmt=0x15250ceb7588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x558f10e823a0 "state_ == s_idle || state_ == s_exec || state_ == s_result || state_ == s_quitting", file=0x558f10e238e8 "/test/10.6_dbg/wsrep-lib/include/wsrep/client_state.hpp", line=522, function=<optimized out>) at assert.c:92
      #7  0x000015250cd32fd6 in __GI___assert_fail (assertion=assertion@entry=0x558f10e823a0 "state_ == s_idle || state_ == s_exec || state_ == s_result || state_ == s_quitting", file=file@entry=0x558f10e238e8 "/test/10.6_dbg/wsrep-lib/include/wsrep/client_state.hpp", line=line@entry=522, function=function@entry=0x558f10e82370 "int wsrep::client_state::before_rollback()") at assert.c:101
      #8  0x0000558f10832400 in wsrep::client_state::before_rollback (this=0x1524082eb4f8) at /test/10.6_dbg/wsrep-lib/include/wsrep/transaction_id.hpp:42
      #9  Wsrep_storage_service::commit (this=0x15240805ef30, ws_handle=<optimized out>, ws_meta=<optimized out>) at /test/10.6_dbg/sql/wsrep_storage_service.cc:166
      #10 0x0000558f10de85e2 in wsrep::transaction::after_commit (this=this@entry=0x152408007390) at /test/10.6_dbg/wsrep-lib/include/wsrep/transaction_id.hpp:34
      #11 0x0000558f1049d315 in wsrep::client_state::after_commit (this=0x152408007328) at /test/10.6_dbg/wsrep-lib/include/wsrep/client_state.hpp:516
      #12 wsrep_after_commit (all=true, thd=0x152408000d48) at /test/10.6_dbg/sql/wsrep_trans_observer.h:452
      #13 trans_xa_commit (thd=thd@entry=0x152408000d48) at /test/10.6_dbg/sql/xa.cc:789
      #14 0x0000558f1026d0c8 in mysql_execute_command (thd=thd@entry=0x152408000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:5868
      #15 0x0000558f102553e5 in mysql_parse (thd=thd@entry=0x152408000d48, rawbuf=rawbuf@entry=0x1524080130a0 "XA COMMIT 'a'", length=length@entry=13, parser_state=parser_state@entry=0x1524c03632f0) at /test/10.6_dbg/sql/sql_parse.cc:8048
      #16 0x0000558f10254d55 in wsrep_mysql_parse (thd=thd@entry=0x152408000d48, rawbuf=0x1524080130a0 "XA COMMIT 'a'", length=13, parser_state=parser_state@entry=0x1524c03632f0) at /test/10.6_dbg/sql/sql_parse.cc:7860
      #17 0x0000558f102632a1 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x152408000d48, packet=packet@entry=0x15240800acc9 "XA COMMIT 'a';", packet_length=packet_length@entry=14, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1391
      #18 0x0000558f1026589c in do_command (thd=0x152408000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1416
      #19 0x0000558f103bd942 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x558f136ace78, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1416
      #20 0x0000558f103bde14 in handle_one_connection (arg=0x558f136ace78) at /test/10.6_dbg/sql/sql_connect.cc:1318
      #21 0x000015250d232609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #22 0x000015250ce1e133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        1. bt_all.txt
          304 kB
          Ramesh Sivaraman

        Activity

          People

            janlindstrom Jan Lindström
            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.