Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ RUN ] DBMergeOperatorTest.TailingIteratorMemtableUnrefedBySomeoneElse [248/3740]
- =================================================================
- ==2189428==ERROR: AddressSanitizer: heap-use-after-free on address 0x61f00000665d at pc 0x7fb4c22fcc85 bp 0x7ffe2a428c00 sp 0x7ffe2a4283b0
- READ of size 8 at 0x61f00000665d thread T0
- #0 0x7fb4c22fcc84 in __asan_memcpy (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libasan.so.2+0x8ec84)
- #1 0x7fb4c1e0ccc9 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long) (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libstdc++.so.6+0x133cc9)
- #2 0xbd81f8 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned long) /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/bits/basic_string.h:1105
- #3 0xbd81f8 in rocksdb::StringAppendOperator::Merge(rocksdb::Slice const&, rocksdb::Slice const*, rocksdb::Slice const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, rocksdb::Logger*) const utilities/merge_operators/string_append/stringappend.cc:43
- #4 0x7c31b2 in rocksdb::AssociativeMergeOperator::FullMergeV2(rocksdb::MergeOperator::MergeOperationInput const&, rocksdb::MergeOperator::MergeOperationOutput*) const db/merge_operator.cc:62
- #5 0x7b77b6 in rocksdb::MergeHelper::TimedFullMerge(rocksdb::MergeOperator const*, rocksdb::Slice const&, rocksdb::Slice const*, std::vector<rocksdb::Slice, std::allocator<rocksdb::Slice> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, rocksdb::Logger*, rocksdb::Statistics*, rocksdb::Env*, rocksdb::Slice*,
- bool) db/merge_helper.cc:79
- #6 0x71ee22 in rocksdb::DBIter::MergeValuesNewToOld() db/db_iter.cc:678
- #7 0x722f70 in rocksdb::DBIter::FindNextUserEntryInternal(bool, bool) db/db_iter.cc:535
- #8 0x7253c2 in rocksdb::DBIter::FindNextUserEntry(bool, bool) db/db_iter.cc:394
- #9 0x7253c2 in rocksdb::DBIter::Seek(rocksdb::Slice const&) db/db_iter.cc:1177
- #10 0x52df0e in rocksdb::DBMergeOperatorTest_TailingIteratorMemtableUnrefedBySomeoneElse_Test::TestBody() db/db_merge_operator_test.cc:501
- #11 0xdbab85 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3824
- #12 0xdbab85 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3860
- #13 0xda90db in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3897
- #14 0xda94f8 in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3888
- #15 0xda94f8 in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4072
- #16 0xda99ab in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4047
- #17 0xda99ab in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4190
- #18 0xdaa633 in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6100
- #19 0xdaa633 in testing::internal::UnitTestImpl::RunAllTests() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6062
- #20 0xdbb3d5 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3824
- #21 0xdbb3d5 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3860
- #22 0xdaaf34 in testing::UnitTest::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:5680
- #23 0x40f1dc in RUN_ALL_TESTS() third-party/gtest-1.7.0/fused-src/gtest/gtest.h:20722
- #24 0x40f1dc in main db/db_merge_operator_test.cc:516
- #25 0x7fb4c0fe7857 in __libc_start_main (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libc.so.6+0x20857)
- #26 0x52093f (/data/users/kolmike/rocksdb/db_merge_operator_test+0x52093f)
- 0x61f00000665d is located 989 bytes inside of 2992-byte region [0x61f000006280,0x61f000006e30)
- freed by thread T0 here:
- #0 0x7fb4c23094ea in operator delete(void*) (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libasan.so.2+0x9b4ea)
- #1 0x5cc0f0 in rocksdb::SuperVersion::~SuperVersion() db/column_family.cc:300
- #2 0x65cbb1 in CleanupIteratorState db/db_impl.cc:892
- #3 0xa0e613 in rocksdb::Cleanable::DoCleanup() include/rocksdb/cleanable.h:69
- #4 0xa0e613 in rocksdb::Cleanable::~Cleanable() table/iterator.cc:22
- #5 0x730679 in rocksdb::DBIter::~DBIter() db/db_iter.cc:159
- #6 0x730679 in rocksdb::ArenaWrappedDBIter::~ArenaWrappedDBIter() db/db_iter.cc:1352
- #7 0x730870 in rocksdb::ArenaWrappedDBIter::~ArenaWrappedDBIter() db/db_iter.cc:1352
- #8 0x5225d9 in std::default_delete<rocksdb::Iterator>::operator()(rocksdb::Iterator*) const /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/bits/unique_ptr.h:76
- #9 0x5225d9 in std::unique_ptr<rocksdb::Iterator, std::default_delete<rocksdb::Iterator> >::reset(rocksdb::Iterator*) /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/bits/unique_ptr.h:347
- #10 0x5225d9 in operator() db/db_merge_operator_test.cc:494
- #11 0x5225d9 in _M_invoke /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/functional:1871
- #12 0xac349d in std::function<void (void*)>::operator()(void*) const /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/functional:2267
- #13 0xac349d in rocksdb::SyncPoint::Process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void*) util/sync_point.cc:160
- #14 0x71e9df in rocksdb::DBIter::MergeValuesNewToOld() db/db_iter.cc:619
- #15 0x722f70 in rocksdb::DBIter::FindNextUserEntryInternal(bool, bool) db/db_iter.cc:535
- #16 0x7253c2 in rocksdb::DBIter::FindNextUserEntry(bool, bool) db/db_iter.cc:394
- #17 0x7253c2 in rocksdb::DBIter::Seek(rocksdb::Slice const&) db/db_iter.cc:1177
- #18 0x52df0e in rocksdb::DBMergeOperatorTest_TailingIteratorMemtableUnrefedBySomeoneElse_Test::TestBody() db/db_merge_operator_test.cc:501
- #19 0xdbab85 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3824
- #20 0xdbab85 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3860
- #21 0xda90db in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3897
- #22 0xda94f8 in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3888
- #23 0xda94f8 in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4072
- #24 0xda99ab in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4047
- #25 0xda99ab in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4190
- #26 0xdaa633 in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6100
- #27 0xdaa633 in testing::internal::UnitTestImpl::RunAllTests() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6062
- #28 0xdbb3d5 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3824
- #29 0xdbb3d5 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3860
- #30 0xdaaf34 in testing::UnitTest::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:5680
- #31 0x40f1dc in RUN_ALL_TESTS() third-party/gtest-1.7.0/fused-src/gtest/gtest.h:20722
- #32 0x40f1dc in main db/db_merge_operator_test.cc:516
- #33 0x7fb4c0fe7857 in __libc_start_main (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libc.so.6+0x20857)
- #34 0x52093f (/data/users/kolmike/rocksdb/db_merge_operator_test+0x52093f)
- previously allocated by thread T0 here:
- #0 0x7fb4c2308f2a in operator new(unsigned long) (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libasan.so.2+0x9af2a)
- #1 0x5ce08d in rocksdb::ColumnFamilyData::ConstructNewMemtable(rocksdb::MutableCFOptions const&, unsigned long) db/column_family.cc:820
- #2 0x701e60 in rocksdb::DBImpl::SwitchMemtable(rocksdb::ColumnFamilyData*, rocksdb::DBImpl::WriteContext*) db/db_impl_write.cc:1279
- #3 0x68ebc7 in rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, rocksdb::FlushOptions const&, bool) db/db_impl_compaction_flush.cc:972
- #4 0x68f5a9 in rocksdb::DBImpl::Flush(rocksdb::FlushOptions const&, rocksdb::ColumnFamilyHandle*) db/db_impl_compaction_flush.cc:816
- #5 0x52da77 in rocksdb::DB::Flush(rocksdb::FlushOptions const&) include/rocksdb/db.h:867
- #6 0x52da77 in rocksdb::DBMergeOperatorTest_TailingIteratorMemtableUnrefedBySomeoneElse_Test::TestBody() db/db_merge_operator_test.cc:476
- #7 0xdbab85 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3824
- #8 0xdbab85 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3860
- #9 0xda90db in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3897
- #10 0xda94f8 in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3888
- #11 0xda94f8 in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4072
- #12 0xda99ab in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4047
- #13 0xda99ab in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4190
- #14 0xdaa633 in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6100
- #15 0xdaa633 in testing::internal::UnitTestImpl::RunAllTests() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6062
- #16 0xdbb3d5 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3824
- #17 0xdbb3d5 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3860
- #18 0xdaaf34 in testing::UnitTest::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:5680
- #19 0x40f1dc in RUN_ALL_TESTS() third-party/gtest-1.7.0/fused-src/gtest/gtest.h:20722
- #20 0x40f1dc in main db/db_merge_operator_test.cc:516
- #21 0x7fb4c0fe7857 in __libc_start_main (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libc.so.6+0x20857)
- #22 0x52093f (/data/users/kolmike/rocksdb/db_merge_operator_test+0x52093f)
- SUMMARY: AddressSanitizer: heap-use-after-free ??:0 __asan_memcpy
- Shadow bytes around the buggy address:
- 0x0c3e7fff8c70: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- 0x0c3e7fff8c80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- 0x0c3e7fff8c90: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- 0x0c3e7fff8ca0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- 0x0c3e7fff8cb0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- =>0x0c3e7fff8cc0: fd fd fd fd fd fd fd fd fd fd fd[fd]fd fd fd fd
- 0x0c3e7fff8cd0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- 0x0c3e7fff8ce0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- 0x0c3e7fff8cf0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- 0x0c3e7fff8d00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- 0x0c3e7fff8d10: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
- Shadow byte legend (one shadow byte represents 8 application bytes):
- Addressable: 00
- Partially addressable: 01 02 03 04 05 06 07
- Heap left redzone: fa
- Heap right redzone: fb
- Freed heap region: fd
- Stack left redzone: f1
- Stack mid redzone: f2
- Stack right redzone: f3
- Stack partial redzone: f4
- Stack after return: f5
- Stack use after scope: f8
- Global redzone: f9
- Global init order: f6
- Poisoned by user: f7
- Container overflow: fc
- Array cookie: ac
- Intra object redzone: bb
- ASan internal: fe
- ==2189428==ABORTING
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement