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

Assertion `err == 0' failed | virtual myrocks::ha_rocksdb::~ha_rocksdb()

    XMLWordPrintable

    Details

      Description

      GDB

      #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 0x00007ff38f3c8428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5 0x00007ff38f3ca02a in __GI_abort () at abort.c:89
      #6 0x00007ff38f3c0bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7ff365ea1891 "err == 0", file=file@entry=0x7ff365ea1858 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/./ha_rocksdb.h", line=line@entry=677, function=function@entry=0x7ff365eac260 <myrocks::ha_rocksdb::~ha_rocksdb()::__PRETTY_FUNCTION__> "virtual myrocks::ha_rocksdb::~ha_rocksdb()") at assert.c:92
      #7 0x00007ff38f3c0c82 in __GI___assert_fail (assertion=0x7ff365ea1891 "err == 0", file=0x7ff365ea1858 "/qa/work/PS-5.7-trunk_dbg/storage/rocksdb/./ha_rocksdb.h", line=677, function=0x7ff365eac260 <myrocks::ha_rocksdb::~ha_rocksdb()::__PRETTY_FUNCTION__> "virtual myrocks::ha_rocksdb::~ha_rocksdb()") at assert.c:101
      #8 0x00007ff365948a74 in myrocks::ha_rocksdb::~ha_rocksdb (this=0x7ff362829030, __in_chrg=<optimized out>) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/./ha_rocksdb.h:677
      #9 0x00007ff365948b74 in myrocks::ha_rocksdb::~ha_rocksdb (this=0x7ff362829030, __in_chrg=<optimized out>) at /qa/work/PS-5.7-trunk_dbg/storage/rocksdb/./ha_rocksdb.h:679
      #10 0x0000000001735fa6 in closefrm (table=0x7ff362908a20, free_share=true) at /qa/work/PS-5.7-trunk_dbg/sql/table.cc:3585
      #11 0x000000000159cdf7 in intern_close_table (table=0x7ff362908a20) at /qa/work/PS-5.7-trunk_dbg/sql/sql_base.cc:1109
      #12 0x00000000015b2bf9 in Table_cache::free_unused_tables_if_necessary (this=0x2e6b1b0 <table_cache_manager+720>, thd=0x7ff3628fc000) at /qa/work/PS-5.7-trunk_dbg/sql/table_cache.h:329
      #13 0x00000000015b3231 in Table_cache::release_table (this=0x2e6b1b0 <table_cache_manager+720>, thd=0x7ff3628fc000, table=0x7ff362908a20) at /qa/work/PS-5.7-trunk_dbg/sql/table_cache.h:545
      #14 0x000000000159e22f in close_thread_table (thd=0x7ff3628fc000, table_ptr=0x7ff3628fc068) at /qa/work/PS-5.7-trunk_dbg/sql/sql_base.cc:1784
      #15 0x000000000159d739 in close_open_tables (thd=0x7ff3628fc000) at /qa/work/PS-5.7-trunk_dbg/sql/sql_base.cc:1443
      #16 0x000000000159ded1 in close_thread_tables (thd=0x7ff3628fc000) at /qa/work/PS-5.7-trunk_dbg/sql/sql_base.cc:1722
      #17 0x0000000001638ec7 in mysql_execute_command (thd=0x7ff3628fc000, first_level=true) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:5307
      #18 0x000000000163a694 in mysql_parse (thd=0x7ff3628fc000, parser_state=0x7ff39195e4a0) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:5891
      #19 0x000000000162e623 in dispatch_command (thd=0x7ff3628fc000, com_data=0x7ff39195eda0, command=COM_QUERY) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:1493
      #20 0x000000000162d3c4 in do_command (thd=0x7ff3628fc000) at /qa/work/PS-5.7-trunk_dbg/sql/sql_parse.cc:1021
      #21 0x000000000177fc04 in handle_connection (arg=0x7ff362811040) at /qa/work/PS-5.7-trunk_dbg/sql/conn_handler/connection_handler_per_thread.cc:312
      #22 0x00000000019c1d89 in pfs_spawn_thread (arg=0x7ff384be8720) at /qa/work/PS-5.7-trunk_dbg/storage/perfschema/pfs.cc:2188
      #23 0x00007ff39000e6ba in start_thread (arg=0x7ff39195f700) at pthread_create.c:333
      #24 0x00007ff38f49a3dd 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 --sql_mode=ONLY_FULL_GROUP_BY
      CREATE TABLE t1(a int auto_increment,b int,PRIMARY KEY (a)) engine=rocksdb DEFAULT CHARSET=latin1;
      set rocksdb_bulk_load=1;
      INSERT INTO t1 VALUES(13,0);
      INSERT INTO t1 VALUES(2,'test 2');
      insert into t1 values(@id,@arg04);
      SET @@global.table_open_cache=FALSE;
      insert into t1 values(51479+0.333333333);
      

      MySQLD version

      
      

      ramesh@qaserver-05:/qa/work/244716/1939$ /qa/work/PS220817-percona-server-5.7.19-17-linux-x86_64-debug/bin/mysqld --version
      /qa/work/PS220817-percona-server-5.7.19-17-linux-x86_64-debug/bin/mysqld Ver 5.7.19-17-debug for Linux on x86_64 (MySQL Community Server (GPL))
      ramesh@qaserver-05:/qa/work/244716/1939${code}

        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: