Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-29749

RocksDB does not refuse nopad collation in time, leaves corrupt schema

    XMLWordPrintable

    Details

      Description

      INSTALL SONAME 'ha_rocksdb';
       
      CREATE TABLE t (c CHAR(8)) ENGINE=RocksDB COLLATE utf8mb3_unicode_nopad_ci;
      ALTER TABLE t ADD UNIQUE(c);
      --error ER_MYROCKS_CANT_NOPAD_COLLATION
      TRUNCATE t;
      --source include/restart_mysqld.inc
      

      10.3 d099bcad

      CREATE TABLE t (c CHAR(8)) ENGINE=RocksDB COLLATE utf8mb3_unicode_nopad_ci;
      ALTER TABLE t ADD UNIQUE(c);
      TRUNCATE t;
      ERROR HY000: MyRocks doesn't currently support collations with "No pad" attribute.
      bug.rocks2                               [ fail ]  Found warnings/errors in server log file!
              Test ended at 2022-10-08 22:09:28
      line
      2022-10-08 22:09:28 0 [Warning] RocksDB: Schema mismatch - A .frm file exists for table test.t, but that table is not registered in RocksDB
      2022-10-08 22:09:28 0 [ERROR] RocksDB: Problems validating data dictionary against .frm files, exiting
      2022-10-08 22:09:28 0 [ERROR] RocksDB: Failed to initialize DDL manager.
      2022-10-08 22:09:28 0 [ERROR] Plugin 'ROCKSDB' init function returned error.
      2022-10-08 22:09:28 0 [ERROR] Plugin 'ROCKSDB' registration as a STORAGE ENGINE failed.
      

      So, RocksDB accepts CREATE and ALTER, and only throws the error about nopad collations on TRUNCATE. But then the data between the server and the engine diverges, and RocksDB fails to (re)start.

      Additionally, after it fails to restart, LeakSanitizer complains:

      Warning: Memory not freed: 8656
       
      =================================================================
      ==3924475==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 32 byte(s) in 1 object(s) allocated from:
          #0 0x7f477b291647 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
          #1 0x7f4771929c00 in rocksdb::DBImpl::Open(rocksdb::DBOptions const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<rocksdb::ColumnFamilyDescriptor, std::allocator<rocksdb::ColumnFamilyDescriptor> > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*, rocksdb::DB**, bool, bool) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl_open.cc:1442
          #2 0x7f4771f152d2 in rocksdb::TransactionDB::Open(rocksdb::DBOptions const&, rocksdb::TransactionDBOptions const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<rocksdb::ColumnFamilyDescriptor, std::allocator<rocksdb::ColumnFamilyDescriptor> > const&, std::vector<rocksdb::ColumnFamilyHandle*, std::allocator<rocksdb::ColumnFamilyHandle*> >*, rocksdb::TransactionDB**) /data/src/10.3/storage/rocksdb/rocksdb/utilities/transactions/pessimistic_transaction_db.cc:250
          #3 0x7f477156c06a in rocksdb_init_func /data/src/10.3/storage/rocksdb/ha_rocksdb.cc:5635
          #4 0x55ec6e26d0a6 in ha_initialize_handlerton(st_plugin_int*) /data/src/10.3/sql/handler.cc:549
          #5 0x55ec6db4b3da in plugin_initialize /data/src/10.3/sql/sql_plugin.cc:1435
          #6 0x55ec6db4d305 in plugin_init(int*, char**, int) /data/src/10.3/sql/sql_plugin.cc:1717
          #7 0x55ec6d84f7c4 in init_server_components /data/src/10.3/sql/mysqld.cc:5472
          #8 0x55ec6d8518da in mysqld_main(int, char**) /data/src/10.3/sql/mysqld.cc:6091
          #9 0x55ec6d839604 in main /data/src/10.3/sql/main.cc:25
          #10 0x7f477a833d09 in __libc_start_main ../csu/libc-start.c:308
       
      Indirect leak of 4096 byte(s) in 1 object(s) allocated from:
          #0 0x7f477b2917a7 in operator new[](unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:102
          #1 0x7f4771c1c4d4 in rocksdb::Arena::AllocateNewBlock(unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/memory/arena.cc:212
          #2 0x7f4771c1bbc6 in rocksdb::Arena::AllocateFallback(unsigned long, bool) /data/src/10.3/storage/rocksdb/rocksdb/memory/arena.cc:108
          #3 0x7f4771c1c336 in rocksdb::Arena::AllocateAligned(unsigned long, unsigned long, rocksdb::Logger*) /data/src/10.3/storage/rocksdb/rocksdb/memory/arena.cc:195
          #4 0x7f4771d3349e in rocksdb::BlockBasedTable::NewIterator(rocksdb::ReadOptions const&, rocksdb::SliceTransform const*, rocksdb::Arena*, bool, rocksdb::TableReaderCaller, unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/table/block_based/block_based_table_reader.cc:3225
          #5 0x7f4771ab3839 in rocksdb::TableCache::NewIterator(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::InternalKeyComparator const&, rocksdb::FileMetaData const&, rocksdb::RangeDelAggregator*, rocksdb::SliceTransform const*, rocksdb::TableReader**, rocksdb::HistogramImpl*, rocksdb::TableReaderCaller, rocksdb::Arena*, bool, int, rocksdb::InternalKey const*, rocksdb::InternalKey const*) /data/src/10.3/storage/rocksdb/rocksdb/db/table_cache.cc:214
          #6 0x7f4771adc89e in rocksdb::Version::AddIteratorsForLevel(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::MergeIteratorBuilder*, int, rocksdb::RangeDelAggregator*) /data/src/10.3/storage/rocksdb/rocksdb/db/version_set.cc:1587
          #7 0x7f4771adc4b5 in rocksdb::Version::AddIterators(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::MergeIteratorBuilder*, rocksdb::RangeDelAggregator*) /data/src/10.3/storage/rocksdb/rocksdb/db/version_set.cc:1561
          #8 0x7f47717817bb in rocksdb::DBImpl::NewInternalIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, rocksdb::SuperVersion*, rocksdb::Arena*, rocksdb::RangeDelAggregator*, unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:1471
          #9 0x7f477178d37c in rocksdb::DBImpl::NewIteratorImpl(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, unsigned long, rocksdb::ReadCallback*, bool, bool) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2567
          #10 0x7f477178cef2 in rocksdb::DBImpl::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2505
          #11 0x7f4771f1bf31 in rocksdb::StackableDB::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) (/mnt8t/bld/10.3-asan-nightly/lib/plugin/ha_rocksdb.so+0x1602f31)
          #12 0x7f47716e33b9 in myrocks::Rdb_dict_manager::new_iterator() const /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4773
          #13 0x7f47716dc4b0 in myrocks::Rdb_ddl_manager::init(myrocks::Rdb_dict_manager*, myrocks::Rdb_cf_manager*, unsigned int) /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4030
          #14 0x7f477156c2d9 in rocksdb_init_func /data/src/10.3/storage/rocksdb/ha_rocksdb.cc:5655
          #15 0x55ec6e26d0a6 in ha_initialize_handlerton(st_plugin_int*) /data/src/10.3/sql/handler.cc:549
          #16 0x55ec6db4b3da in plugin_initialize /data/src/10.3/sql/sql_plugin.cc:1435
          #17 0x55ec6db4d305 in plugin_init(int*, char**, int) /data/src/10.3/sql/sql_plugin.cc:1717
          #18 0x55ec6d84f7c4 in init_server_components /data/src/10.3/sql/mysqld.cc:5472
          #19 0x55ec6d8518da in mysqld_main(int, char**) /data/src/10.3/sql/mysqld.cc:6091
          #20 0x55ec6d839604 in main /data/src/10.3/sql/main.cc:25
          #21 0x7f477a833d09 in __libc_start_main ../csu/libc-start.c:308
       
      Indirect leak of 2368 byte(s) in 1 object(s) allocated from:
          #0 0x7f477b291647 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
          #1 0x7f4771fd9dfa in rocksdb::NewArenaWrappedDbIterator(rocksdb::Env*, rocksdb::ReadOptions const&, rocksdb::ImmutableCFOptions const&, rocksdb::MutableCFOptions const&, unsigned long const&, unsigned long, unsigned long, rocksdb::ReadCallback*, rocksdb::DBImpl*, rocksdb::ColumnFamilyData*, bool, bool) /data/src/10.3/storage/rocksdb/rocksdb/db/arena_wrapped_db_iter.cc:94
          #2 0x7f477178d28a in rocksdb::DBImpl::NewIteratorImpl(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, unsigned long, rocksdb::ReadCallback*, bool, bool) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2560
          #3 0x7f477178cef2 in rocksdb::DBImpl::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2505
          #4 0x7f4771f1bf31 in rocksdb::StackableDB::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) (/mnt8t/bld/10.3-asan-nightly/lib/plugin/ha_rocksdb.so+0x1602f31)
          #5 0x7f47716e33b9 in myrocks::Rdb_dict_manager::new_iterator() const /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4773
          #6 0x7f47716dc4b0 in myrocks::Rdb_ddl_manager::init(myrocks::Rdb_dict_manager*, myrocks::Rdb_cf_manager*, unsigned int) /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4030
          #7 0x7f477156c2d9 in rocksdb_init_func /data/src/10.3/storage/rocksdb/ha_rocksdb.cc:5655
          #8 0x55ec6e26d0a6 in ha_initialize_handlerton(st_plugin_int*) /data/src/10.3/sql/handler.cc:549
          #9 0x55ec6db4b3da in plugin_initialize /data/src/10.3/sql/sql_plugin.cc:1435
          #10 0x55ec6db4d305 in plugin_init(int*, char**, int) /data/src/10.3/sql/sql_plugin.cc:1717
          #11 0x55ec6d84f7c4 in init_server_components /data/src/10.3/sql/mysqld.cc:5472
          #12 0x55ec6d8518da in mysqld_main(int, char**) /data/src/10.3/sql/mysqld.cc:6091
          #13 0x55ec6d839604 in main /data/src/10.3/sql/main.cc:25
          #14 0x7f477a833d09 in __libc_start_main ../csu/libc-start.c:308
       
      Indirect leak of 272 byte(s) in 1 object(s) allocated from:
          #0 0x7f477b291647 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
          #1 0x7f47720e1100 in rocksdb::Block::NewIndexIterator(rocksdb::Comparator const*, rocksdb::Comparator const*, rocksdb::IndexBlockIter*, rocksdb::Statistics*, bool, bool, bool, bool, bool, rocksdb::BlockPrefixIndex*) /data/src/10.3/storage/rocksdb/rocksdb/table/block_based/block.cc:969
          #2 0x7f4771d600af in rocksdb::BinarySearchIndexReader::NewIterator(rocksdb::ReadOptions const&, bool, rocksdb::IndexBlockIter*, rocksdb::GetContext*, rocksdb::BlockCacheLookupContext*) (/mnt8t/bld/10.3-asan-nightly/lib/plugin/ha_rocksdb.so+0x14470af)
          #3 0x7f4771d2ce48 in rocksdb::BlockBasedTable::NewIndexIterator(rocksdb::ReadOptions const&, bool, rocksdb::IndexBlockIter*, rocksdb::GetContext*, rocksdb::BlockCacheLookupContext*) const /data/src/10.3/storage/rocksdb/rocksdb/table/block_based/block_based_table_reader.cc:1928
          #4 0x7f4771d33559 in rocksdb::BlockBasedTable::NewIterator(rocksdb::ReadOptions const&, rocksdb::SliceTransform const*, rocksdb::Arena*, bool, rocksdb::TableReaderCaller, unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/table/block_based/block_based_table_reader.cc:3228
          #5 0x7f4771ab3839 in rocksdb::TableCache::NewIterator(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::InternalKeyComparator const&, rocksdb::FileMetaData const&, rocksdb::RangeDelAggregator*, rocksdb::SliceTransform const*, rocksdb::TableReader**, rocksdb::HistogramImpl*, rocksdb::TableReaderCaller, rocksdb::Arena*, bool, int, rocksdb::InternalKey const*, rocksdb::InternalKey const*) /data/src/10.3/storage/rocksdb/rocksdb/db/table_cache.cc:214
          #6 0x7f4771adc89e in rocksdb::Version::AddIteratorsForLevel(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::MergeIteratorBuilder*, int, rocksdb::RangeDelAggregator*) /data/src/10.3/storage/rocksdb/rocksdb/db/version_set.cc:1587
          #7 0x7f4771adc4b5 in rocksdb::Version::AddIterators(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::MergeIteratorBuilder*, rocksdb::RangeDelAggregator*) /data/src/10.3/storage/rocksdb/rocksdb/db/version_set.cc:1561
          #8 0x7f47717817bb in rocksdb::DBImpl::NewInternalIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, rocksdb::SuperVersion*, rocksdb::Arena*, rocksdb::RangeDelAggregator*, unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:1471
          #9 0x7f477178d37c in rocksdb::DBImpl::NewIteratorImpl(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, unsigned long, rocksdb::ReadCallback*, bool, bool) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2567
          #10 0x7f477178cef2 in rocksdb::DBImpl::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2505
          #11 0x7f4771f1bf31 in rocksdb::StackableDB::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) (/mnt8t/bld/10.3-asan-nightly/lib/plugin/ha_rocksdb.so+0x1602f31)
          #12 0x7f47716e33b9 in myrocks::Rdb_dict_manager::new_iterator() const /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4773
          #13 0x7f47716dc4b0 in myrocks::Rdb_ddl_manager::init(myrocks::Rdb_dict_manager*, myrocks::Rdb_cf_manager*, unsigned int) /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4030
          #14 0x7f477156c2d9 in rocksdb_init_func /data/src/10.3/storage/rocksdb/ha_rocksdb.cc:5655
          #15 0x55ec6e26d0a6 in ha_initialize_handlerton(st_plugin_int*) /data/src/10.3/sql/handler.cc:549
          #16 0x55ec6db4b3da in plugin_initialize /data/src/10.3/sql/sql_plugin.cc:1435
          #17 0x55ec6db4d305 in plugin_init(int*, char**, int) /data/src/10.3/sql/sql_plugin.cc:1717
          #18 0x55ec6d84f7c4 in init_server_components /data/src/10.3/sql/mysqld.cc:5472
          #19 0x55ec6d8518da in mysqld_main(int, char**) /data/src/10.3/sql/mysqld.cc:6091
          #20 0x55ec6d839604 in main /data/src/10.3/sql/main.cc:25
          #21 0x7f477a833d09 in __libc_start_main ../csu/libc-start.c:308
       
      Indirect leak of 47 byte(s) in 1 object(s) allocated from:
          #0 0x7f477b291647 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
          #1 0x7f477ac9adde in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag) (/lib/x86_64-linux-gnu/libstdc++.so.6+0x135dde)
       
      Indirect leak of 40 byte(s) in 1 object(s) allocated from:
          #0 0x7f477b291647 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
          #1 0x55ec6e95af6e in __gnu_cxx::new_allocator<std::_Rb_tree_node<unsigned long> >::allocate(unsigned long, void const*) /usr/include/c++/10/ext/new_allocator.h:115
          #2 0x55ec6e95ae6b in std::allocator_traits<std::allocator<std::_Rb_tree_node<unsigned long> > >::allocate(std::allocator<std::_Rb_tree_node<unsigned long> >&, unsigned long) /usr/include/c++/10/bits/alloc_traits.h:460
          #3 0x55ec6e95ac2a in std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>, std::allocator<unsigned long> >::_M_get_node() /usr/include/c++/10/bits/stl_tree.h:584
          #4 0x55ec6e95a373 in std::_Rb_tree_node<unsigned long>* std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>, std::allocator<unsigned long> >::_M_create_node<unsigned long const&>(unsigned long const&) /usr/include/c++/10/bits/stl_tree.h:634
          #5 0x55ec6e9599d3 in std::_Rb_tree_node<unsigned long>* std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>, std::allocator<unsigned long> >::_Alloc_node::operator()<unsigned long const&>(unsigned long const&) const /usr/include/c++/10/bits/stl_tree.h:552
          #6 0x55ec6e958492 in std::_Rb_tree_iterator<unsigned long> std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>, std::allocator<unsigned long> >::_M_insert_<unsigned long const&, std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>, std::allocator<unsigned long> >::_Alloc_node>(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, unsigned long const&, std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>, std::allocator<unsigned long> >::_Alloc_node&) /usr/include/c++/10/bits/stl_tree.h:1816
          #7 0x55ec6e956792 in std::pair<std::_Rb_tree_iterator<unsigned long>, bool> std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>, std::allocator<unsigned long> >::_M_insert_unique<unsigned long const&>(unsigned long const&) /usr/include/c++/10/bits/stl_tree.h:2159
          #8 0x55ec6e953bd3 in std::set<unsigned long, std::less<unsigned long>, std::allocator<unsigned long> >::insert(unsigned long const&) /usr/include/c++/10/bits/stl_set.h:512
          #9 0x7f4771abcccf in rocksdb::RangeDelAggregator::AddFile(unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/db/range_del_aggregator.h:299
          #10 0x7f4771ab3a40 in rocksdb::TableCache::NewIterator(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::InternalKeyComparator const&, rocksdb::FileMetaData const&, rocksdb::RangeDelAggregator*, rocksdb::SliceTransform const*, rocksdb::TableReader**, rocksdb::HistogramImpl*, rocksdb::TableReaderCaller, rocksdb::Arena*, bool, int, rocksdb::InternalKey const*, rocksdb::InternalKey const*) /data/src/10.3/storage/rocksdb/rocksdb/db/table_cache.cc:231
          #11 0x7f4771adc89e in rocksdb::Version::AddIteratorsForLevel(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::MergeIteratorBuilder*, int, rocksdb::RangeDelAggregator*) /data/src/10.3/storage/rocksdb/rocksdb/db/version_set.cc:1587
          #12 0x7f4771adc4b5 in rocksdb::Version::AddIterators(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::MergeIteratorBuilder*, rocksdb::RangeDelAggregator*) /data/src/10.3/storage/rocksdb/rocksdb/db/version_set.cc:1561
          #13 0x7f47717817bb in rocksdb::DBImpl::NewInternalIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, rocksdb::SuperVersion*, rocksdb::Arena*, rocksdb::RangeDelAggregator*, unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:1471
          #14 0x7f477178d37c in rocksdb::DBImpl::NewIteratorImpl(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, unsigned long, rocksdb::ReadCallback*, bool, bool) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2567
          #15 0x7f477178cef2 in rocksdb::DBImpl::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2505
          #16 0x7f4771f1bf31 in rocksdb::StackableDB::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) (/mnt8t/bld/10.3-asan-nightly/lib/plugin/ha_rocksdb.so+0x1602f31)
          #17 0x7f47716e33b9 in myrocks::Rdb_dict_manager::new_iterator() const /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4773
          #18 0x7f47716dc4b0 in myrocks::Rdb_ddl_manager::init(myrocks::Rdb_dict_manager*, myrocks::Rdb_cf_manager*, unsigned int) /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4030
          #19 0x7f477156c2d9 in rocksdb_init_func /data/src/10.3/storage/rocksdb/ha_rocksdb.cc:5655
          #20 0x55ec6e26d0a6 in ha_initialize_handlerton(st_plugin_int*) /data/src/10.3/sql/handler.cc:549
          #21 0x55ec6db4b3da in plugin_initialize /data/src/10.3/sql/sql_plugin.cc:1435
          #22 0x55ec6db4d305 in plugin_init(int*, char**, int) /data/src/10.3/sql/sql_plugin.cc:1717
          #23 0x55ec6d84f7c4 in init_server_components /data/src/10.3/sql/mysqld.cc:5472
          #24 0x55ec6d8518da in mysqld_main(int, char**) /data/src/10.3/sql/mysqld.cc:6091
          #25 0x55ec6d839604 in main /data/src/10.3/sql/main.cc:25
          #26 0x7f477a833d09 in __libc_start_main ../csu/libc-start.c:308
       
      Indirect leak of 32 byte(s) in 1 object(s) allocated from:
          #0 0x7f477b291647 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
          #1 0x7f47717817d8 in rocksdb::DBImpl::NewInternalIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, rocksdb::SuperVersion*, rocksdb::Arena*, rocksdb::RangeDelAggregator*, unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:1478
          #2 0x7f477178d37c in rocksdb::DBImpl::NewIteratorImpl(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, unsigned long, rocksdb::ReadCallback*, bool, bool) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2567
          #3 0x7f477178cef2 in rocksdb::DBImpl::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2505
          #4 0x7f4771f1bf31 in rocksdb::StackableDB::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) (/mnt8t/bld/10.3-asan-nightly/lib/plugin/ha_rocksdb.so+0x1602f31)
          #5 0x7f47716e33b9 in myrocks::Rdb_dict_manager::new_iterator() const /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4773
          #6 0x7f47716dc4b0 in myrocks::Rdb_ddl_manager::init(myrocks::Rdb_dict_manager*, myrocks::Rdb_cf_manager*, unsigned int) /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4030
          #7 0x7f477156c2d9 in rocksdb_init_func /data/src/10.3/storage/rocksdb/ha_rocksdb.cc:5655
          #8 0x55ec6e26d0a6 in ha_initialize_handlerton(st_plugin_int*) /data/src/10.3/sql/handler.cc:549
          #9 0x55ec6db4b3da in plugin_initialize /data/src/10.3/sql/sql_plugin.cc:1435
          #10 0x55ec6db4d305 in plugin_init(int*, char**, int) /data/src/10.3/sql/sql_plugin.cc:1717
          #11 0x55ec6d84f7c4 in init_server_components /data/src/10.3/sql/mysqld.cc:5472
          #12 0x55ec6d8518da in mysqld_main(int, char**) /data/src/10.3/sql/mysqld.cc:6091
          #13 0x55ec6d839604 in main /data/src/10.3/sql/main.cc:25
          #14 0x7f477a833d09 in __libc_start_main ../csu/libc-start.c:308
       
      Indirect leak of 8 byte(s) in 1 object(s) allocated from:
          #0 0x7f477b291647 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
          #1 0x7f4771c20448 in __gnu_cxx::new_allocator<char*>::allocate(unsigned long, void const*) /usr/include/c++/10/ext/new_allocator.h:115
          #2 0x7f4771c1fb8e in std::allocator_traits<std::allocator<char*> >::allocate(std::allocator<char*>&, unsigned long) /usr/include/c++/10/bits/alloc_traits.h:460
          #3 0x7f4771c1f69f in std::_Vector_base<char*, std::allocator<char*> >::_M_allocate(unsigned long) /usr/include/c++/10/bits/stl_vector.h:346
          #4 0x7f4771c1e87e in void std::vector<char*, std::allocator<char*> >::_M_realloc_insert<decltype(nullptr)>(__gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >, decltype(nullptr)&&) /usr/include/c++/10/bits/vector.tcc:440
          #5 0x7f4771c1d852 in void std::vector<char*, std::allocator<char*> >::emplace_back<decltype(nullptr)>(decltype(nullptr)&&) /usr/include/c++/10/bits/vector.tcc:121
          #6 0x7f4771c1c4b4 in rocksdb::Arena::AllocateNewBlock(unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/memory/arena.cc:210
          #7 0x7f4771c1bbc6 in rocksdb::Arena::AllocateFallback(unsigned long, bool) /data/src/10.3/storage/rocksdb/rocksdb/memory/arena.cc:108
          #8 0x7f4771c1c336 in rocksdb::Arena::AllocateAligned(unsigned long, unsigned long, rocksdb::Logger*) /data/src/10.3/storage/rocksdb/rocksdb/memory/arena.cc:195
          #9 0x7f4771d3349e in rocksdb::BlockBasedTable::NewIterator(rocksdb::ReadOptions const&, rocksdb::SliceTransform const*, rocksdb::Arena*, bool, rocksdb::TableReaderCaller, unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/table/block_based/block_based_table_reader.cc:3225
          #10 0x7f4771ab3839 in rocksdb::TableCache::NewIterator(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::InternalKeyComparator const&, rocksdb::FileMetaData const&, rocksdb::RangeDelAggregator*, rocksdb::SliceTransform const*, rocksdb::TableReader**, rocksdb::HistogramImpl*, rocksdb::TableReaderCaller, rocksdb::Arena*, bool, int, rocksdb::InternalKey const*, rocksdb::InternalKey const*) /data/src/10.3/storage/rocksdb/rocksdb/db/table_cache.cc:214
          #11 0x7f4771adc89e in rocksdb::Version::AddIteratorsForLevel(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::MergeIteratorBuilder*, int, rocksdb::RangeDelAggregator*) /data/src/10.3/storage/rocksdb/rocksdb/db/version_set.cc:1587
          #12 0x7f4771adc4b5 in rocksdb::Version::AddIterators(rocksdb::ReadOptions const&, rocksdb::FileOptions const&, rocksdb::MergeIteratorBuilder*, rocksdb::RangeDelAggregator*) /data/src/10.3/storage/rocksdb/rocksdb/db/version_set.cc:1561
          #13 0x7f47717817bb in rocksdb::DBImpl::NewInternalIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, rocksdb::SuperVersion*, rocksdb::Arena*, rocksdb::RangeDelAggregator*, unsigned long) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:1471
          #14 0x7f477178d37c in rocksdb::DBImpl::NewIteratorImpl(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyData*, unsigned long, rocksdb::ReadCallback*, bool, bool) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2567
          #15 0x7f477178cef2 in rocksdb::DBImpl::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) /data/src/10.3/storage/rocksdb/rocksdb/db/db_impl/db_impl.cc:2505
          #16 0x7f4771f1bf31 in rocksdb::StackableDB::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*) (/mnt8t/bld/10.3-asan-nightly/lib/plugin/ha_rocksdb.so+0x1602f31)
          #17 0x7f47716e33b9 in myrocks::Rdb_dict_manager::new_iterator() const /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4773
          #18 0x7f47716dc4b0 in myrocks::Rdb_ddl_manager::init(myrocks::Rdb_dict_manager*, myrocks::Rdb_cf_manager*, unsigned int) /data/src/10.3/storage/rocksdb/rdb_datadic.cc:4030
          #19 0x7f477156c2d9 in rocksdb_init_func /data/src/10.3/storage/rocksdb/ha_rocksdb.cc:5655
          #20 0x55ec6e26d0a6 in ha_initialize_handlerton(st_plugin_int*) /data/src/10.3/sql/handler.cc:549
          #21 0x55ec6db4b3da in plugin_initialize /data/src/10.3/sql/sql_plugin.cc:1435
          #22 0x55ec6db4d305 in plugin_init(int*, char**, int) /data/src/10.3/sql/sql_plugin.cc:1717
          #23 0x55ec6d84f7c4 in init_server_components /data/src/10.3/sql/mysqld.cc:5472
          #24 0x55ec6d8518da in mysqld_main(int, char**) /data/src/10.3/sql/mysqld.cc:6091
          #25 0x55ec6d839604 in main /data/src/10.3/sql/main.cc:25
          #26 0x7f477a833d09 in __libc_start_main ../csu/libc-start.c:308
       
      SUMMARY: AddressSanitizer: 6895 byte(s) leaked in 8 allocation(s).
      

        Attachments

          Activity

            People

            Assignee:
            psergei Sergei Petrunia
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.