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

Assertion `transactional_table || !changed || thd->transaction.stmt.modified_non_trans_table' failed.

    XMLWordPrintable

    Details

      Description

      CREATE TABLE t1 (col INT);
      INSERT INTO t1 VALUES (0xF4AB);
      CREATE TEMPORARY TABLE t1 (c1 INT) ENGINE=mrg_myisam UNION=(t1) insert_method=FIRST;
      SET GLOBAL wsrep_max_ws_rows=1;
      DROP TABLES t1;
      INSERT INTO t1 VALUES (6373);
      CREATE TABLE t2 ENGINE=heap SELECT * FROM t1;
      

      10.4.19 57caff245cbdcbdfda6f022de7f354f05a790656 (Debug)

      mysqld: /test/10.4_dbg/sql/sql_insert.cc:4194: virtual void select_insert::abort_result_set(): Assertion `transactional_table || !changed || thd->transaction.stmt.modified_non_trans_table' failed.
      

      10.4.19 57caff245cbdcbdfda6f022de7f354f05a790656 (Debug)

      Core was generated by `/test/GAL_MD200421-mariadb-10.4.19-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 0x15091c59b700 (LWP 1691927))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000560fd4da519d in my_write_core (sig=sig@entry=6) at /test/10.4_dbg/mysys/stacktrace.c:386
      #2  0x0000560fd44adcda in handle_fatal_signal (sig=6) at /test/10.4_dbg/sql/signal_handler.cc:356
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x0000150960fbc859 in __GI_abort () at abort.c:79
      #6  0x0000150960fbc729 in __assert_fail_base (fmt=0x150961152588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x560fd4e79978 "transactional_table || !changed || thd->transaction.stmt.modified_non_trans_table", file=0x560fd4e79658 "/test/10.4_dbg/sql/sql_insert.cc", line=4194, function=<optimized out>) at assert.c:92
      #7  0x0000150960fcdf36 in __GI___assert_fail (assertion=assertion@entry=0x560fd4e79978 "transactional_table || !changed || thd->transaction.stmt.modified_non_trans_table", file=file@entry=0x560fd4e79658 "/test/10.4_dbg/sql/sql_insert.cc", line=line@entry=4194, function=function@entry=0x560fd4e79948 "virtual void select_insert::abort_result_set()") at assert.c:101
      #8  0x0000560fd41910fd in select_insert::abort_result_set (this=this@entry=0x1508d80150c8) at /test/10.4_dbg/sql/sql_insert.cc:4194
      #9  0x0000560fd41911ad in select_create::abort_result_set (this=0x1508d80150c8) at /test/10.4_dbg/sql/sql_insert.cc:4853
      #10 0x0000560fd425b40e in handle_select (thd=thd@entry=0x1508d8000d90, lex=lex@entry=0x1508d8004c08, result=result@entry=0x1508d80150c8, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.4_dbg/sql/sql_select.cc:430
      #11 0x0000560fd42a94d1 in Sql_cmd_create_table_like::execute (this=0x1508d80132e0, thd=0x1508d8000d90) at /test/10.4_dbg/sql/sql_table.cc:11489
      #12 0x0000560fd41df21e in mysql_execute_command (thd=thd@entry=0x1508d8000d90) at /test/10.4_dbg/sql/sql_parse.cc:6192
      #13 0x0000560fd41e1a34 in mysql_parse (thd=thd@entry=0x1508d8000d90, rawbuf=rawbuf@entry=0x1508d8013228 "CREATE TABLE t2 ENGINE=heap SELECT * FROM t1", length=length@entry=44, parser_state=parser_state@entry=0x15091c59a490, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:7995
      #14 0x0000560fd41e2ae9 in wsrep_mysql_parse (thd=thd@entry=0x1508d8000d90, rawbuf=0x1508d8013228 "CREATE TABLE t2 ENGINE=heap SELECT * FROM t1", length=44, parser_state=parser_state@entry=0x15091c59a490, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:7799
      #15 0x0000560fd41e4452 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1508d8000d90, packet=packet@entry=0x1508d801b661 "CREATE TABLE t2 ENGINE=heap SELECT * FROM t1", packet_length=packet_length@entry=44, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_class.h:1183
      #16 0x0000560fd41e7cde in do_command (thd=0x1508d8000d90) at /test/10.4_dbg/sql/sql_parse.cc:1373
      #17 0x0000560fd432288f in do_handle_one_connection (connect=connect@entry=0x560fd72c0db0) at /test/10.4_dbg/sql/sql_connect.cc:1412
      #18 0x0000560fd43229ae in handle_one_connection (arg=0x560fd72c0db0) at /test/10.4_dbg/sql/sql_connect.cc:1316
      #19 0x0000150961579609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #20 0x00001509610b9293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

        Attachments

          Activity

            People

            Assignee:
            jplindst Jan Lindström
            Reporter:
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration