Details

    • Type: Bug
    • Status: On Hold
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Not 8.0, 5.7.23-24
    • Fix Version/s: None
    • Component/s: MyRocks
    • Labels:

      Description

      Test case is similar to PS-4979:

      # mysqld options required for replay: --plugin-load-add=RocksDB=ha_rocksdb.so
      CREATE DATABASE test;
      USE test;
      create table `#mysql50#q.q`(f1 int key)engine=RocksDB;
      DROP database test;
      

      gdb:

      (gdb) bt
      +bt
      #0  0x00007fb97b43b9d1 in pthread_kill () from /lib64/libpthread.so.0
      #1  0x0000000001917269 in my_write_core (sig=6) at /home/hrvoje/worktable/PS-5.7.25_dbg/mysys/stacktrace.c:249
      #2  0x000000000168f8fd in handle_fatal_signal (sig=6) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/signal_handler.cc:223
      #3  <signal handler called>
      #4  0x00007fb97953f207 in raise () from /lib64/libc.so.6
      #5  0x00007fb9795408f8 in abort () from /lib64/libc.so.6
      #6  0x00007fb979538026 in __assert_fail_base () from /lib64/libc.so.6
      #7  0x00007fb9795380d2 in __assert_fail () from /lib64/libc.so.6
      #8  0x0000000000f075f7 in native_part::get_db_table_name_from_canonical_name (canonical_name=0x7fb97ba28790 "./test/", db_name_buf=0x7fb97ba27420 "test", db_name_buf_len=513, table_name_buf=0x7fb97ba27210 "", table_name_buf_len=513) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/partitioning/partition_base.cc:113
      #9  0x0000000000f07b04 in native_part::get_part_str_for_table (name=0x7fb97ba28790 "./test/", result="") at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/partitioning/partition_base.cc:207
      #10 0x00007fb93ae88138 in myrocks::ha_rocksdb::delete_table (this=0x7fb92f934030, tablename=0x7fb97ba28790 "./test/") at /home/hrvoje/worktable/PS-5.7.25_dbg/storage/rocksdb/ha_rocksdb.cc:10432
      #11 0x0000000000f2f2e2 in handler::ha_delete_table (this=0x7fb92f934030, name=0x7fb97ba28790 "./test/") at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/handler.cc:5247
      #12 0x0000000000f286fd in ha_delete_table (thd=0x7fb92f819000, table_type=0x7fb9703f52e0, path=0x7fb97ba28790 "./test/", db=0x7fb92f8c8b20 "test", alias=0x7fb92f8c8b25 "", generate_warning=false) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/handler.cc:2766
      #13 0x00000000015caa31 in mysql_rm_table_no_locks (thd=0x7fb92f819000, tables=0x7fb92f8c8598, if_exists=true, drop_temporary=false, drop_view=true, dont_log_query=true) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/sql_table.cc:2684
      #14 0x00000000014eda32 in mysql_rm_db (thd=0x7fb92f819000, db=..., if_exists=false, silent=false) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/sql_db.cc:873
      #15 0x0000000001541171 in mysql_execute_command (thd=0x7fb92f819000, first_level=true) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/sql_parse.cc:4096
      #16 0x00000000015461f7 in mysql_parse (thd=0x7fb92f819000, parser_state=0x7fb97ba2b440, update_userstat=false) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/sql_parse.cc:5901
      #17 0x000000000153ac7c in dispatch_command (thd=0x7fb92f819000, com_data=0x7fb97ba2bc70, command=COM_QUERY) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/sql_parse.cc:1528
      #18 0x0000000001539a9d in do_command (thd=0x7fb92f819000) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/sql_parse.cc:1053
      #19 0x000000000166c292 in handle_connection (arg=0x7fb939fab430) at /home/hrvoje/worktable/PS-5.7.25_dbg/sql/conn_handler/connection_handler_per_thread.cc:318
      #20 0x000000000193af30 in pfs_spawn_thread (arg=0x7fb97741a120) at /home/hrvoje/worktable/PS-5.7.25_dbg/storage/perfschema/pfs.cc:2190
      #21 0x00007fb97b436dd5 in start_thread () from /lib64/libpthread.so.0
      #22 0x00007fb979606ead in clone () from /lib64/libc.so.6
      

      Reproduced on the debug build 5.7.23-24. Can't reproduce on the release build.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  hrvoje.matijakovic Hrvoje Matijakovic
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: