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

Assertion `covers_key(b)' failed in int myrocks::Rdb_key_def::cmp_full_keys(const rocks db::Slice&, const rocksdb::Slice&)

    XMLWordPrintable

    Details

      Description

      GDB info

      #0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      #1 0x000000000199cc45 in my_write_core (sig=6) at /qa/work/PS-5.7-trunk_dbg/mysys/stacktrace.c:249
      #2 0x0000000000f16a96 in handle_fatal_signal (sig=6) at /qa/work/PS-5.7-trunk_dbg/sql/signal_handler.cc:223
      #3 <signal handler called>
      #4 0x00007f6f5ebf7428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5 0x00007f6f5ebf902a in __GI_abort () at abort.c:89
      #6 0x00007f6f5ebefbd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7f6f35aa0a88 "covers_key(b)", file=file@entry=0x7f6f35aa0a40 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/./rdb_datadic.h", line=line@entry=230, function=function@entry=0x7f6f35aa88e0 <myrocks::Rdb_key_def::cmp_full_keys(rocksdb::Slice const&, rocksdb::Slice const&) const::__PRETTY_FUNCTION__> "int myrocks::Rdb_key_def::cmp_full_keys(const rocksdb::Slice&, const rocksdb::Slice&) const") at assert.c:92
      #7 0x00007f6f5ebefc82 in __GI___assert_fail (assertion=0x7f6f35aa0a88 "covers_key(b)", file=0x7f6f35aa0a40 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/./rdb_datadic.h", line=230, function=0x7f6f35aa88e0 <myrocks::Rdb_key_def::cmp_full_keys(rocksdb::Slice const&, rocksdb::Slice const&) const::__PRETTY_FUNCTION__> "int myrocks::Rdb_key_def::cmp_full_keys(const rocksdb::Slice&, const rocksdb::Slice&) const") at assert.c:101
      #8 0x00007f6f35549182 in myrocks::Rdb_key_def::cmp_full_keys (this=0x7f6f318741d0, a=..., b=...) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/./rdb_datadic.h:230
      #9 0x00007f6f355492b0 in myrocks::Rdb_key_def::value_matches_prefix (this=0x7f6f318741d0, value=..., prefix=...) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/./rdb_datadic.h:254
      #10 0x00007f6f3552cd09 in myrocks::ha_rocksdb::read_before_key (this=0x7f6f31829030, kd=..., full_key_match=@0x7f6f61189c4d: true, key_slice=...) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:5833
      #11 0x00007f6f3552d06f in myrocks::ha_rocksdb::position_to_correct_key (this=0x7f6f31829030, kd=..., find_flag=@0x7f6f61189c1c: HA_READ_PREFIX_LAST_OR_PREV, full_key_match=@0x7f6f61189c4d: true, key=0x7f6f31c29068 "\177", keypart_map=@0x7f6f61189c20: 1, key_slice=..., move_forward=0x7f6f61189c5c) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:5906
      #12 0x00007f6f3552e36e in myrocks::ha_rocksdb::index_read_map_impl (this=0x7f6f31829030, buf=0x7f6f31816830 "\377\177", key=0x7f6f31c29068 "\177", keypart_map=1, find_flag=HA_READ_PREFIX_LAST_OR_PREV, end_key=0x0) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:6338
      #13 0x00007f6f3552dd9b in myrocks::ha_rocksdb::index_read_map (this=0x7f6f31829030, buf=0x7f6f31816830 "\377\177", key=0x7f6f31c29068 "\177", keypart_map=1, find_flag=HA_READ_PREFIX_LAST_OR_PREV) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/ha_rocksdb.cc:6208
      #14 0x0000000000fb3777 in handler::ha_index_read_map (this=0x7f6f31829030, buf=0x7f6f31816830 "\377\177", key=0x7f6f31c29068 "\177", keypart_map=1, find_flag=HA_READ_PREFIX_LAST_OR_PREV) at /qa/work/PS-5.7-trunk_dbg/sql/handler.cc:3238
      #15 0x0000000001830092 in QUICK_SELECT_DESC::get_next (this=0x7f6f31cb7580) at /qa/work/PS-5.7-trunk_dbg/sql/opt_range.cc:11579
      #16 0x0000000001548433 in rr_quick (info=0x7f6f3187ba00) at /qa/work/PS-5.7-trunk_dbg/sql/records.cc:398
      #17 0x00000000015eb45b in join_init_read_record (tab=0x7f6f3187b9b0) at /qa/work/PS-5.7-trunk_dbg/sql/sql_executor.cc:2481
      #18 0x00000000015e843b in sub_select (join=0x7f6f3187b198, qep_tab=0x7f6f3187b9b0, end_of_records=false) at /qa/work/PS-5.7-trunk_dbg/sql/sql_executor.cc:1271
      #19 0x00000000015e7d4e in do_select (join=0x7f6f3187b198) at /qa/work/PS-5.7-trunk_dbg/sql/sql_executor.cc:944
      #20 0x00000000015e5b4a in JOIN::exec (this=0x7f6f3187b198) at /qa/work/PS-5.7-trunk_dbg/sql/sql_executor.cc:199
      #21 0x000000000168ba09 in handle_query (thd=0x7f6f318fc000, lex=0x7f6f318fe5e8, result=0x7f6f31afeaf8, added_options=0, removed_options=0) at /qa/work/PS-5.7-trunk_dbg/sql/sql_select.cc:185
      #22 0x0000000001639584 in execute_sqlcom_select (thd=0x7f6f318fc000, all_tables=0x7f6f31afe0d0) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:5445
      #23 0x0000000001631e32 in mysql_execute_command (thd=0x7f6f318fc000, first_level=true) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:2942
      #24 0x000000000163a694 in mysql_parse (thd=0x7f6f318fc000, parser_state=0x7f6f6118b4a0) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:5891
      #25 0x000000000162e623 in dispatch_command (thd=0x7f6f318fc000, com_data=0x7f6f6118bda0, command=COM_QUERY) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:1493
      #26 0x000000000162d3c4 in do_command (thd=0x7f6f318fc000) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:1021
      #27 0x000000000177fc04 in handle_connection (arg=0x7f6f31811040) at /qa/work/PS-5.7-trunk_dbg/sql/conn_handler/connection_handler_per_thread.cc:312
      #28 0x00000000019c1d89 in pfs_spawn_thread (arg=0x7f6f543e8720) at /qa/work/PS-5.7-trunk_dbg/storage/perfschema/pfs.cc:2188
      #29 0x00007f6f5f83b6ba in start_thread (arg=0x7f6f6118c700) at pthread_create.c:333
      #30 0x00007f6f5ecc93dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

      Testcase

      # mysqld options required for replay: --plugin-load-add=rocksdb=ha_rocksdb.so --default-storage-engine=RocksDB --server-id=1
      CREATE TABLE t2(c1 TINYINT SIGNED KEY,c2 TINYINT UNSIGNED,c3 INT);
      create TEMPORARY TABLE t2(a int)engine=heap;
      drop table t2;
      INSERT INTO t2(c1)VALUES(0);
      SELECT * FROM t2 WHERE c1<=127 ORDER BY c1 DESC;
      

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              george.lorch George Lorch
              Reporter:
              ramesh.sivaraman Ramesh Sivaraman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: