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

Assertion `thd->transaction.stmt.is_empty()' failed in Locked_tables_list::unlock_locked_tables upon CREATE OR REPLACE TEMPORARY TABLE

    XMLWordPrintable

    Details

      Description

      Note: might be related to, or be a duplicate of, MDEV-16794, but these assertion failures tend to be mixed up or partially fixed, so I'm filing it separately just in case.

      --source include/have_innodb.inc
       
      CREATE TEMPORARY TABLE t1 (a INT) ENGINE=InnoDB;
      CREATE TEMPORARY TABLE t2 (b INT);
      LOCK TABLE t2 READ;
      --error ER_INVALID_DEFAULT
      CREATE OR REPLACE TEMPORARY TABLE t1 (c INT DEFAULT '');
      

      10.0 1144acbcb

      mysqld: /data/src/10.0/sql/sql_base.cc:2793: void Locked_tables_list::unlock_locked_tables(THD*): Assertion `thd->transaction.stmt.is_empty()' failed.
      180927 20:56:43 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f233d38dee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x00000000005ec820 in Locked_tables_list::unlock_locked_tables (this=0x7f2331f40878, thd=0x7f2331f3d070) at /data/src/10.0/sql/sql_base.cc:2793
      #9  0x00000000005ec8a5 in Locked_tables_list::unlock_locked_table (this=0x7f2331f40878, thd=0x7f2331f3d070, mdl_ticket=0x0) at /data/src/10.0/sql/sql_base.cc:2836
      #10 0x00000000006fd492 in mysql_create_table (thd=0x7f2331f3d070, create_table=0x7f23290fa1a0, create_info=0x7f233f452d20, alter_info=0x7f233f452c90) at /data/src/10.0/sql/sql_table.cc:5096
      #11 0x000000000064e49b in mysql_execute_command (thd=0x7f2331f3d070) at /data/src/10.0/sql/sql_parse.cc:3035
      #12 0x0000000000657c14 in mysql_parse (thd=0x7f2331f3d070, rawbuf=0x7f23290fa088 "CREATE OR REPLACE TEMPORARY TABLE t1 (c INT DEFAULT '')", length=55, parser_state=0x7f233f453640) at /data/src/10.0/sql/sql_parse.cc:6637
      #13 0x000000000064a534 in dispatch_command (command=COM_QUERY, thd=0x7f2331f3d070, packet=0x7f2332260071 "CREATE OR REPLACE TEMPORARY TABLE t1 (c INT DEFAULT '')", packet_length=55) at /data/src/10.0/sql/sql_parse.cc:1300
      #14 0x0000000000649834 in do_command (thd=0x7f2331f3d070) at /data/src/10.0/sql/sql_parse.cc:1003
      #15 0x000000000076af50 in do_handle_one_connection (thd_arg=0x7f2331f3d070) at /data/src/10.0/sql/sql_connect.cc:1377
      #16 0x000000000076acc2 in handle_one_connection (arg=0x7f2331f3d070) at /data/src/10.0/sql/sql_connect.cc:1292
      #17 0x0000000000acc98e in pfs_spawn_thread (arg=0x7f2331e801f0) at /data/src/10.0/storage/perfschema/pfs.cc:1861
      #18 0x00007f233f091494 in start_thread (arg=0x7f233f454700) at pthread_create.c:333
      #19 0x00007f233d44a93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Reproducible on 10.0, 10.1.
      Couldn't reproduce on 10.2, 10.3.
      No visible problems on a non-debug build.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              svoj Sergey Vojtovich
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: