Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-5181

[PS8QA] Assertion `!drop_ctx->has_tmp_trans_tables()' failed in rm_table_eval_gtid_and_table_groups_state(THD*, Drop_tables_ctx*)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 8.0.13-3, Not 5.7.x
    • Fix Version/s: 8.0.18-9
    • Component/s: None

      Description

      Testcase

      rm -Rf /dev/shm/1545138080
      mkdir -p /dev/shm/1545138080/tmp
      
      /home/ramesh/pquery/PS181218-percona-server-8.0.13-2-linux-x86_64-debug/bin/mysqld --no-defaults --initialize-insecure --basedir=/home/ramesh/pquery/PS181218-percona-server-8.0.13-2-linux-x86_64-debug --datadir=/dev/shm/1545138080/data
      
      
      /home/ramesh/pquery/PS181218-percona-server-8.0.13-2-linux-x86_64-debug/bin/mysqld --no-defaults --basedir=/home/ramesh/pquery/PS181218-percona-server-8.0.13-2-linux-x86_64-debug --datadir=/dev/shm/1545138080/data --tmpdir=/dev/shm/1545138080/tmp --port=31407 --pid-file=/dev/shm/1545138080/pid.pid --core-file --socket=/dev/shm/1545138080/socket.sock  --plugin-load-add=RocksDB=ha_rocksdb.so --gtid_mode=ON --enforce_gtid_consistency=ON --log-error=/dev/shm/1545138080/error.log.out &
      
      SQL
      
      CREATE DATABASE test;
      USE test;
      CREATE TABLE t1(a INT,KEY(a)) ENGINE=RocksDB;
      CREATE TEMPORARY TABLE t2(a INT)ENGINE=InnoDB SELECT 1;
      SET SESSION GTID_NEXT='11111111-AAAA-2222-BBBB-000000000000:5';
      drop table t1,t2;
      

      GDB info

      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      #1  0x00000000045b09c6 in my_write_core (sig=6) at /home/ramesh/pquery/PS-8.0-new_dbg/mysys/stacktrace.cc:278
      #2  0x0000000003445073 in handle_fatal_signal (sig=6) at /home/ramesh/pquery/PS-8.0-new_dbg/sql/signal_handler.cc:254
      #3  <signal handler called>
      #4  0x00007f88b144a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5  0x00007f88b144c02a in __GI_abort () at abort.c:89
      #6  0x00007f88b1442bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x56e8fd8 "!drop_ctx->has_tmp_trans_tables()", file=file@entry=0x56e8b28 "/home/ramesh/pquery/PS-8.0-new_dbg/sql/sql_table.cc", line=line@entry=2066, function=function@entry=0x56ebe60 <rm_table_eval_gtid_and_table_groups_state(THD*, Drop_tables_ctx*)::__PRETTY_FUNCTION__> "bool rm_table_eval_gtid_and_table_groups_state(THD*, Drop_tables_ctx*)") at assert.c:92
      #7  0x00007f88b1442c82 in __GI___assert_fail (assertion=0x56e8fd8 "!drop_ctx->has_tmp_trans_tables()", file=0x56e8b28 "/home/ramesh/pquery/PS-8.0-new_dbg/sql/sql_table.cc", line=2066, function=0x56ebe60 <rm_table_eval_gtid_and_table_groups_state(THD*, Drop_tables_ctx*)::__PRETTY_FUNCTION__> "bool rm_table_eval_gtid_and_table_groups_state(THD*, Drop_tables_ctx*)") at assert.c:101
      #8  0x0000000003312293 in rm_table_eval_gtid_and_table_groups_state (thd=0x7f87b8000be0, drop_ctx=0x7f889c147da0) at /home/ramesh/pquery/PS-8.0-new_dbg/sql/sql_table.cc:2066
      #9  0x0000000003314c95 in mysql_rm_table_no_locks (thd=0x7f87b8000be0, tables=0x7f87b80fdd10, if_exists=false, drop_temporary=false, drop_database=false, dropped_non_atomic_flag=0x7f889c148dd1, post_ddl_htons=0x7f889c148e40, fk_invalidator=0x7f889c148e70, safe_to_release_mdl=0x7f889c148e00) at /home/ramesh/pquery/PS-8.0-new_dbg/sql/sql_table.cc:2903
      #10 0x0000000003311552 in mysql_rm_table (thd=0x7f87b8000be0, tables=0x7f87b80fdd10, if_exists=false, drop_temporary=false) at /home/ramesh/pquery/PS-8.0-new_dbg/sql/sql_table.cc:1481
      #11 0x0000000003270390 in mysql_execute_command (thd=0x7f87b8000be0, first_level=true) at /home/ramesh/pquery/PS-8.0-new_dbg/sql/sql_parse.cc:3483
      #12 0x0000000003276315 in mysql_parse (thd=0x7f87b8000be0, parser_state=0x7f889c14a300, update_userstat=false, force_primary_storage_engine=false) at /home/ramesh/pquery/PS-8.0-new_dbg/sql/sql_parse.cc:5259
      #13 0x000000000326b28b in dispatch_command (thd=0x7f87b8000be0, com_data=0x7f889c14acd0, command=COM_QUERY) at /home/ramesh/pquery/PS-8.0-new_dbg/sql/sql_parse.cc:1734
      #14 0x0000000003269802 in do_command (thd=0x7f87b8000be0) at /home/ramesh/pquery/PS-8.0-new_dbg/sql/sql_parse.cc:1290
      #15 0x000000000342e924 in handle_connection (arg=0x963da20) at /home/ramesh/pquery/PS-8.0-new_dbg/sql/conn_handler/connection_handler_per_thread.cc:317
      #16 0x00000000046a78d6 in pfs_spawn_thread (arg=0x9613320) at /home/ramesh/pquery/PS-8.0-new_dbg/storage/perfschema/pfs.cc:2836
      #17 0x00007f88b31746ba in start_thread (arg=0x7f889c14b700) at pthread_create.c:333
      #18 0x00007f88b151c41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kamil.holubicki Kamil Holubicki
              Reporter:
              ramesh.sivaraman Ramesh Sivaraman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days, 44 minutes
                  4d 44m

                    Smart Checklist