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

MyRocks assertion=assertion@entry=0x7f60e55e8c13 "whitelist != nullptr"

    Details

      Description

      sql:

      # mysqld options required for replay:  --plugin-load-add=RocksDB=ha_rocksdb.so
      CREATE DATABASE test;
      USE test;
      CREATE DEFINER=root@localhost EVENT e1 ON SCHEDULE EVERY '1' SECOND COMMENT 'e_second_comment' DO DELETE FROM t1;
      set global rocksdb_read_free_rpl_tables=@save_rocksdb_read_free_rpl_tables;
      CREATE TABLE t1(a int key)ENGINE=RocksDB;
      SET @@global.event_scheduler=ON;
      

      gdb info:

      (gdb) bt
      +bt
      #0  0x00007f61230bf9b1 in __pthread_kill (threadid=<optimized out>, signo=6) at ../nptl/sysdeps/unix/sysv/linux/pthread_kill.c:61
      #1  0x0000000001899706 in my_write_core (sig=6) at /home/hrvoje/worktable/PS-5.7.21_dbg/mysys/stacktrace.c:249
      #2  0x0000000000ebc0af in handle_fatal_signal (sig=6) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/signal_handler.cc:223
      #3  <signal handler called>
      #4  0x00007f612189e1f7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
      #5  0x00007f612189f8e8 in __GI_abort () at abort.c:90
      #6  0x00007f6121897266 in __assert_fail_base (fmt=0x7f61219e9e68 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f60e55e8c13 "whitelist != nullptr", file=file@entry=0x7f60e55e4718 "/home/hrvoje/worktable/PS-5.7.21_dbg/storage/rocksdb/ha_rocksdb.cc", line=line@entry=5613, function=function@entry=0x7f60e55edfa0 <myrocks::ha_rocksdb::set_use_read_free_rpl(char const*)::__PRETTY_FUNCTION__> "void myrocks::ha_rocksdb::set_use_read_free_rpl(const char*)") at assert.c:92
      #7  0x00007f6121897312 in __GI___assert_fail (assertion=0x7f60e55e8c13 "whitelist != nullptr", file=0x7f60e55e4718 "/home/hrvoje/worktable/PS-5.7.21_dbg/storage/rocksdb/ha_rocksdb.cc", line=5613, function=0x7f60e55edfa0 <myrocks::ha_rocksdb::set_use_read_free_rpl(char const*)::__PRETTY_FUNCTION__> "void myrocks::ha_rocksdb::set_use_read_free_rpl(const char*)") at assert.c:101
      #8  0x00007f60e4f91bfd in myrocks::ha_rocksdb::set_use_read_free_rpl (this=0x7f60db87f030, whitelist=0x0) at /home/hrvoje/worktable/PS-5.7.21_dbg/storage/rocksdb/ha_rocksdb.cc:5613
      #9  0x00007f60e4f92196 in myrocks::ha_rocksdb::open (this=0x7f60db87f030, name=0x7f60db926500 "./test/t1", mode=2, test_if_locked=2) at /home/hrvoje/worktable/PS-5.7.21_dbg/storage/rocksdb/ha_rocksdb.cc:5734
      #10 0x0000000000f4956e in handler::ha_open (this=0x7f60db87f030, table_arg=0x7f60db81bc20, name=0x7f60db926500 "./test/t1", mode=2, test_if_locked=2) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/handler.cc:2937
      #11 0x0000000001654dd3 in open_table_from_share (thd=0x7f60db49c000, share=0x7f60db926130, alias=0x7f60db8a5db0 "t1", db_stat=39, prgflag=8, ha_open_flags=0, outparam=0x7f60db81bc20, is_create_table=false) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/table.cc:3459
      #12 0x00000000014d1fc7 in open_table (thd=0x7f60db49c000, table_list=0x7f60db8ad030, ot_ctx=0x7f6123631570) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sql_base.cc:3566
      #13 0x00000000014d4ac0 in open_and_process_table (thd=0x7f60db49c000, lex=0x7f60db8a4968, tables=0x7f60db8ad030, counter=0x7f60db8a4a28, flags=0, prelocking_strategy=0x7f6123631670, has_prelocking_list=false, ot_ctx=0x7f6123631570) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sql_base.cc:5177
      #14 0x00000000014d5bd3 in open_tables (thd=0x7f60db49c000, start=0x7f6123631630, counter=0x7f60db8a4a28, flags=0, prelocking_strategy=0x7f6123631670) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sql_base.cc:5795
      #15 0x00000000014d6f01 in open_tables_for_query (thd=0x7f60db49c000, tables=0x7f60db8ad030, flags=0) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sql_base.cc:6570
      #16 0x0000000001772379 in Sql_cmd_delete::mysql_delete (this=0x7f60db8a5dc8, thd=0x7f60db49c000, limit=18446744073709551615) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sql_delete.cc:76
      #17 0x00000000017767b6 in Sql_cmd_delete::execute (this=0x7f60db8a5dc8, thd=0x7f60db49c000) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sql_delete.cc:1386
      #18 0x000000000155d810 in mysql_execute_command (thd=0x7f60db49c000, first_level=false) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sql_parse.cc:3756
      #19 0x00000000014a52fe in sp_instr_stmt::exec_core (this=0x7f60db8a5de0, thd=0x7f60db49c000, nextp=0x7f6123633518) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sp_instr.cc:1058
      #20 0x00000000014a3f42 in sp_lex_instr::reset_lex_and_exec_core (this=0x7f60db8a5de0, thd=0x7f60db49c000, nextp=0x7f6123633518, open_tables=false) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sp_instr.cc:447
      #21 0x00000000014a49e7 in sp_lex_instr::validate_lex_and_execute_core (this=0x7f60db8a5de0, thd=0x7f60db49c000, nextp=0x7f6123633518, open_tables=false) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sp_instr.cc:749
      #22 0x00000000014a4f7f in sp_instr_stmt::execute (this=0x7f60db8a5de0, thd=0x7f60db49c000, nextp=0x7f6123633518) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sp_instr.cc:945
      #23 0x000000000149d4a7 in sp_head::execute (this=0x7f60db8a4030, thd=0x7f60db49c000, merge_da_on_success=true) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sp_head.cc:790
      #24 0x000000000149f47e in sp_head::execute_procedure (this=0x7f60db8a4030, thd=0x7f60db49c000, args=0x7f6123633ae0) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/sp_head.cc:1526
      #25 0x00000000016a064f in Event_job_data::execute (this=0x7f6123633bb0, thd=0x7f60db49c000, drop=false) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/event_data_objects.cc:1444
      #26 0x00000000017a4b6b in Event_worker_thread::run (this=0x7f6123633e6f, thd=0x7f60db49c000, event=0x7f60db02f190) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/event_scheduler.cc:338
      #27 0x00000000017a48da in event_worker_thread (arg=0x7f60db02f190) at /home/hrvoje/worktable/PS-5.7.21_dbg/sql/event_scheduler.cc:283
      #28 0x00000000018be259 in pfs_spawn_thread (arg=0x7f60db4cc120) at /home/hrvoje/worktable/PS-5.7.21_dbg/storage/perfschema/pfs.cc:2190
      #29 0x00007f61230bae25 in start_thread (arg=0x7f6123634700) at pthread_create.c:308
      #30 0x00007f612196134d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
      

      Reproduced on 5.7.21-21 release

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                george.lorch George Lorch
                Reporter:
                hrvoje.matijakovic Hrvoje Matijakovic
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 2 hours, 45 minutes
                  2h 45m