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

Assertion `state() == s_executing || state() == s_prepared || state() == s_committing || state() == s_must_abort || state() == s_replaying' failed in int wsrep::transaction::before_commit(const wsrep::provider::seq_cb*)

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6, 10.11, 11.4, 11.7
    • 10.6, 10.11, 11.4, 11.7
    • Galera
    • None

    Description

      --source include/galera_cluster.inc
      --source include/have_sequence.inc
      --source include/have_log_bin.inc
       
      SET GLOBAL wsrep_max_ws_rows = 2;
      CREATE OR REPLACE TABLE t1 (c1 INT) ;
      SET AUTOCOMMIT=0;
      CREATE OR REPLACE TABLE t1 (a int) select seq from seq_1_to_10;
      

      Leads to:

      CS 10.6.21 07b77e862cd36a055a319458fef218eb58467599 (Debug)

      mysqld: /test/10.6_dbg/wsrep-lib/src/transaction.cpp:455: int wsrep::transaction::before_commit(const wsrep::provider::seq_cb*): Assertion `state() == s_executing || state() == s_prepared || state() == s_committing || state() == s_must_abort || state() == s_replaying' failed.
      

      CS 10.6.21 07b77e862cd36a055a319458fef218eb58467599 (Debug)

      Core was generated by `/test/GAL_MD020125-mariadb-10.6.21-linux-x86_64-dbg/bin/mysqld --defaults-file='.
      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 0x14a09431a700 (LWP 4138844))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x000055eb3b2216d6 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
      #2  0x000055eb3aac1628 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:298
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x000014a0c9dae859 in __GI_abort () at abort.c:79
      #6  0x000014a0c9dae729 in __assert_fail_base (fmt=0x14a0c9f44588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55eb3b965c08 "state() == s_executing || state() == s_prepared || state() == s_committing || state() == s_must_abort || state() == s_replaying", file=0x55eb3b964768 "/test/10.6_dbg/wsrep-lib/src/transaction.cpp", line=455, function=<optimized out>) at assert.c:92
      #7  0x000014a0c9dbffd6 in __GI___assert_fail (assertion=assertion@entry=0x55eb3b965c08 "state() == s_executing || state() == s_prepared || state() == s_committing || state() == s_must_abort || state() == s_replaying", file=file@entry=0x55eb3b964768 "/test/10.6_dbg/wsrep-lib/src/transaction.cpp", line=line@entry=455, function=function@entry=0x55eb3b965b88 "int wsrep::transaction::before_commit(const wsrep::provider::seq_cb*)") at assert.c:101
      #8  0x000055eb3b3e62f2 in wsrep::transaction::before_commit (this=this@entry=0x14a05c007488, seq_cb=seq_cb@entry=0x0) at /test/10.6_dbg/wsrep-lib/src/transaction.cpp:541
      #9  0x000055eb3b3c7dbe in wsrep::client_state::before_commit (this=this@entry=0x14a05c007420, seq_cb=seq_cb@entry=0x0) at /test/10.6_dbg/wsrep-lib/src/client_state.cpp:388
      #10 0x000055eb3aac3d16 in wsrep::client_state::before_commit (this=0x14a05c007420) at /test/10.6_dbg/wsrep-lib/include/wsrep/client_state.hpp:457
      #11 wsrep_before_commit (thd=thd@entry=0x14a05c000d48, all=all@entry=true) at /test/10.6_dbg/sql/wsrep_trans_observer.h:315
      #12 0x000055eb3aac7695 in ha_commit_trans (thd=thd@entry=0x14a05c000d48, all=all@entry=true) at /test/10.6_dbg/sql/handler.cc:1894
      #13 0x000055eb3a96162c in trans_commit_implicit (thd=thd@entry=0x14a05c000d48) at /test/10.6_dbg/sql/transaction.cc:338
      #14 0x000055eb3a8018df in mysql_execute_command (thd=thd@entry=0x14a05c000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:6262
      #15 0x000055eb3a7e8244 in mysql_parse (thd=thd@entry=0x14a05c000d48, rawbuf=rawbuf@entry=0x14a05c013230 "CREATE OR REPLACE TABLE t1 (a int) engine=InnoDB select seq from seq_1_to_10", length=length@entry=76, parser_state=parser_state@entry=0x14a094319330) at /test/10.6_dbg/sql/sql_parse.cc:8208
      #16 0x000055eb3a7e7b4a in wsrep_mysql_parse (thd=thd@entry=0x14a05c000d48, rawbuf=0x14a05c013230 "CREATE OR REPLACE TABLE t1 (a int) engine=InnoDB select seq from seq_1_to_10", length=76, parser_state=parser_state@entry=0x14a094319330) at /test/10.6_dbg/sql/sql_parse.cc:8019
      #17 0x000055eb3a7f67a2 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14a05c000d48, packet=packet@entry=0x14a05c00ae89 "CREATE OR REPLACE TABLE t1 (a int) engine=InnoDB select seq from seq_1_to_10", packet_length=packet_length@entry=76, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1419
      #18 0x000055eb3a7f8ed4 in do_command (thd=thd@entry=0x14a05c000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1421
      #19 0x000055eb3a94c6c7 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55eb3df271d8, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1386
      #20 0x000055eb3a94cb97 in handle_one_connection (arg=0x55eb3df271d8) at /test/10.6_dbg/sql/sql_connect.cc:1298
      #21 0x000014a0ca2da609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #22 0x000014a0c9eab133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.6.21 (dbg), 10.11.10 (dbg), 11.7.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.6.21 (opt), 10.11.10 (opt), 11.7.0 (opt)

      Attachments

        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.