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

Assertion `(0)' failed in int wsrep_to_isolation_begin(THD*, const char*, const char*, const TABLE_LIST*, const Alter_info*, const key_array*, const HA_CREATE_INFO*)

    XMLWordPrintable

Details

    Description

      --source include/galera_cluster.inc
      --source include/have_innodb.inc
       
      SET SQL_MODE='';
      SET max_session_mem_used=0;
      CREATE TABLE t (a INT) ENGINE=none;
      

      Leads to

      11.4.0 be6d48fd53892e6a54d6cbf4dce29be914e78a9d (Debug)

      mysqld: /test/11.4_dbg/sql/wsrep_mysqld.cc:3002: int wsrep_to_isolation_begin(THD*, const char*, const char*, const TABLE_LIST*, const Alter_info*, const key_array*, const HA_CREATE_INFO*): Assertion `(0)' failed.
      

      11.4.0 be6d48fd53892e6a54d6cbf4dce29be914e78a9d (Debug)

      Core was generated by `/test/GAL_MD150124-mariadb-11.4.0-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 0x14c034154700 (LWP 1312305))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000556b0b1ff74e in my_write_core (sig=sig@entry=6) at /test/11.4_dbg/mysys/stacktrace.c:424
      #2  0x0000556b0aaea168 in handle_fatal_signal (sig=6) at /test/11.4_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  0x000014c0686b2859 in __GI_abort () at abort.c:79
      #6  0x000014c0686b2729 in __assert_fail_base (fmt=0x14c068848588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x556b0b653445 "(0)", file=0x556b0b5d2e70 "/test/11.4_dbg/sql/wsrep_mysqld.cc", line=3002, function=<optimized out>) at assert.c:92
      #7  0x000014c0686c3fd6 in __GI___assert_fail (assertion=assertion@entry=0x556b0b653445 "(0)", file=file@entry=0x556b0b5d2e70 "/test/11.4_dbg/sql/wsrep_mysqld.cc", line=line@entry=3002, function=function@entry=0x556b0b5d43c8 "int wsrep_to_isolation_begin(THD*, const char*, const char*, const TABLE_LIST*, const Alter_info*, const key_array*, const HA_CREATE_INFO*)") at assert.c:101
      #8  0x0000556b0adb32b2 in wsrep_to_isolation_begin (thd=thd@entry=0x14bffc000d48, db_=0x14bffc013b18 "test", table_=0x14bffc0133d0 "t", table_list=table_list@entry=0x14bffc013408, alter_info=alter_info@entry=0x14c034150ee0, fk_tables=fk_tables@entry=0x0, create_info=0x14c0341511c0) at /test/11.4_dbg/sql/wsrep_mysqld.cc:3002
      #9  0x0000556b0a8ca16b in Sql_cmd_create_table_like::execute (this=<optimized out>, thd=0x14bffc000d48) at /test/11.4_dbg/sql/sql_table.cc:13026
      #10 0x0000556b0a7e4150 in mysql_execute_command (thd=thd@entry=0x14bffc000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.4_dbg/sql/sql_parse.cc:5786
      #11 0x0000556b0a7cc7bf in mysql_parse (thd=thd@entry=0x14bffc000d48, rawbuf=rawbuf@entry=0x14bffc0132f0 "CREATE TABLE t (a INT) ENGINE=none", length=length@entry=34, parser_state=parser_state@entry=0x14c0341532c0) at /test/11.4_dbg/sql/sql_parse.cc:7798
      #12 0x0000556b0a7cc0c5 in wsrep_mysql_parse (thd=thd@entry=0x14bffc000d48, rawbuf=0x14bffc0132f0 "CREATE TABLE t (a INT) ENGINE=none", length=34, parser_state=parser_state@entry=0x14c0341532c0) at /test/11.4_dbg/sql/sql_parse.cc:7608
      #13 0x0000556b0a7da0f6 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14bffc000d48, packet=packet@entry=0x14bffc00afb9 "CREATE TABLE t (a INT) ENGINE=none", packet_length=packet_length@entry=34, blocking=blocking@entry=true) at /test/11.4_dbg/sql/sql_class.h:1552
      #14 0x0000556b0a7dc5c0 in do_command (thd=0x14bffc000d48, blocking=blocking@entry=true) at /test/11.4_dbg/sql/sql_parse.cc:1406
      #15 0x0000556b0a94dac4 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x556b0e4e8378, put_in_cache=put_in_cache@entry=true) at /test/11.4_dbg/sql/sql_connect.cc:1417
      #16 0x0000556b0a94df96 in handle_one_connection (arg=0x556b0e4e8378) at /test/11.4_dbg/sql/sql_connect.cc:1319
      #17 0x000014c068bc3609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #18 0x000014c0687af133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.4.33 (dbg), 10.5.24 (dbg), 10.6.17 (dbg), 10.11.7 (dbg), 11.0.5 (dbg), 11.1.4 (dbg), 11.2.3 (dbg), 11.3.2 (dbg), 11.4.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.4.33 (opt), 10.5.24 (opt), 10.6.17 (opt), 10.11.7 (opt), 11.0.5 (opt), 11.1.4 (opt), 11.2.3 (opt), 11.3.2 (opt), 11.4.0 (opt)

      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.