Advertisement
Guest User

Untitled

a guest
Jan 25th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.52 KB | None | 0 0
  1. [ RUN ] DBMergeOperatorTest.TailingIteratorMemtableUnrefedBySomeoneElse [248/3740]
  2. =================================================================
  3. ==2189428==ERROR: AddressSanitizer: heap-use-after-free on address 0x61f00000665d at pc 0x7fb4c22fcc85 bp 0x7ffe2a428c00 sp 0x7ffe2a4283b0
  4. READ of size 8 at 0x61f00000665d thread T0
  5. #0 0x7fb4c22fcc84 in __asan_memcpy (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libasan.so.2+0x8ec84)
  6. #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)
  7. #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
  8. #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
  9. #4 0x7c31b2 in rocksdb::AssociativeMergeOperator::FullMergeV2(rocksdb::MergeOperator::MergeOperationInput const&, rocksdb::MergeOperator::MergeOperationOutput*) const db/merge_operator.cc:62
  10. #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*,
  11. bool) db/merge_helper.cc:79
  12. #6 0x71ee22 in rocksdb::DBIter::MergeValuesNewToOld() db/db_iter.cc:678
  13. #7 0x722f70 in rocksdb::DBIter::FindNextUserEntryInternal(bool, bool) db/db_iter.cc:535
  14. #8 0x7253c2 in rocksdb::DBIter::FindNextUserEntry(bool, bool) db/db_iter.cc:394
  15. #9 0x7253c2 in rocksdb::DBIter::Seek(rocksdb::Slice const&) db/db_iter.cc:1177
  16. #10 0x52df0e in rocksdb::DBMergeOperatorTest_TailingIteratorMemtableUnrefedBySomeoneElse_Test::TestBody() db/db_merge_operator_test.cc:501
  17. #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
  18. #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
  19. #13 0xda90db in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3897
  20. #14 0xda94f8 in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3888
  21. #15 0xda94f8 in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4072
  22. #16 0xda99ab in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4047
  23. #17 0xda99ab in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4190
  24. #18 0xdaa633 in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6100
  25. #19 0xdaa633 in testing::internal::UnitTestImpl::RunAllTests() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6062
  26. #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
  27. #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
  28. #22 0xdaaf34 in testing::UnitTest::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:5680
  29. #23 0x40f1dc in RUN_ALL_TESTS() third-party/gtest-1.7.0/fused-src/gtest/gtest.h:20722
  30. #24 0x40f1dc in main db/db_merge_operator_test.cc:516
  31. #25 0x7fb4c0fe7857 in __libc_start_main (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libc.so.6+0x20857)
  32. #26 0x52093f (/data/users/kolmike/rocksdb/db_merge_operator_test+0x52093f)
  33.  
  34. 0x61f00000665d is located 989 bytes inside of 2992-byte region [0x61f000006280,0x61f000006e30)
  35. freed by thread T0 here:
  36. #0 0x7fb4c23094ea in operator delete(void*) (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libasan.so.2+0x9b4ea)
  37. #1 0x5cc0f0 in rocksdb::SuperVersion::~SuperVersion() db/column_family.cc:300
  38. #2 0x65cbb1 in CleanupIteratorState db/db_impl.cc:892
  39. #3 0xa0e613 in rocksdb::Cleanable::DoCleanup() include/rocksdb/cleanable.h:69
  40. #4 0xa0e613 in rocksdb::Cleanable::~Cleanable() table/iterator.cc:22
  41. #5 0x730679 in rocksdb::DBIter::~DBIter() db/db_iter.cc:159
  42. #6 0x730679 in rocksdb::ArenaWrappedDBIter::~ArenaWrappedDBIter() db/db_iter.cc:1352
  43. #7 0x730870 in rocksdb::ArenaWrappedDBIter::~ArenaWrappedDBIter() db/db_iter.cc:1352
  44. #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
  45. #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
  46. #10 0x5225d9 in operator() db/db_merge_operator_test.cc:494
  47. #11 0x5225d9 in _M_invoke /mnt/gvfs/third-party2/gcc/8219ec1bcedf8ad9da05e121e193364de2cc4f61/5.x/centos6-native/c447969/include/c++/5.4.1/functional:1871
  48. #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
  49. #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
  50. #14 0x71e9df in rocksdb::DBIter::MergeValuesNewToOld() db/db_iter.cc:619
  51. #15 0x722f70 in rocksdb::DBIter::FindNextUserEntryInternal(bool, bool) db/db_iter.cc:535
  52. #16 0x7253c2 in rocksdb::DBIter::FindNextUserEntry(bool, bool) db/db_iter.cc:394
  53. #17 0x7253c2 in rocksdb::DBIter::Seek(rocksdb::Slice const&) db/db_iter.cc:1177
  54. #18 0x52df0e in rocksdb::DBMergeOperatorTest_TailingIteratorMemtableUnrefedBySomeoneElse_Test::TestBody() db/db_merge_operator_test.cc:501
  55. #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
  56. #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
  57. #21 0xda90db in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3897
  58. #22 0xda94f8 in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3888
  59. #23 0xda94f8 in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4072
  60. #24 0xda99ab in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4047
  61. #25 0xda99ab in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4190
  62. #26 0xdaa633 in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6100
  63. #27 0xdaa633 in testing::internal::UnitTestImpl::RunAllTests() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6062
  64. #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
  65. #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
  66. #30 0xdaaf34 in testing::UnitTest::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:5680
  67. #31 0x40f1dc in RUN_ALL_TESTS() third-party/gtest-1.7.0/fused-src/gtest/gtest.h:20722
  68. #32 0x40f1dc in main db/db_merge_operator_test.cc:516
  69. #33 0x7fb4c0fe7857 in __libc_start_main (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libc.so.6+0x20857)
  70. #34 0x52093f (/data/users/kolmike/rocksdb/db_merge_operator_test+0x52093f)
  71.  
  72. previously allocated by thread T0 here:
  73. #0 0x7fb4c2308f2a in operator new(unsigned long) (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libasan.so.2+0x9af2a)
  74. #1 0x5ce08d in rocksdb::ColumnFamilyData::ConstructNewMemtable(rocksdb::MutableCFOptions const&, unsigned long) db/column_family.cc:820
  75. #2 0x701e60 in rocksdb::DBImpl::SwitchMemtable(rocksdb::ColumnFamilyData*, rocksdb::DBImpl::WriteContext*) db/db_impl_write.cc:1279
  76. #3 0x68ebc7 in rocksdb::DBImpl::FlushMemTable(rocksdb::ColumnFamilyData*, rocksdb::FlushOptions const&, bool) db/db_impl_compaction_flush.cc:972
  77. #4 0x68f5a9 in rocksdb::DBImpl::Flush(rocksdb::FlushOptions const&, rocksdb::ColumnFamilyHandle*) db/db_impl_compaction_flush.cc:816
  78. #5 0x52da77 in rocksdb::DB::Flush(rocksdb::FlushOptions const&) include/rocksdb/db.h:867
  79. #6 0x52da77 in rocksdb::DBMergeOperatorTest_TailingIteratorMemtableUnrefedBySomeoneElse_Test::TestBody() db/db_merge_operator_test.cc:476
  80. #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
  81. #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
  82. #9 0xda90db in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3897
  83. #10 0xda94f8 in testing::Test::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3888
  84. #11 0xda94f8 in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4072
  85. #12 0xda99ab in testing::TestInfo::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4047
  86. #13 0xda99ab in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4190
  87. #14 0xdaa633 in testing::TestCase::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6100
  88. #15 0xdaa633 in testing::internal::UnitTestImpl::RunAllTests() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6062
  89. #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
  90. #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
  91. #18 0xdaaf34 in testing::UnitTest::Run() third-party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:5680
  92. #19 0x40f1dc in RUN_ALL_TESTS() third-party/gtest-1.7.0/fused-src/gtest/gtest.h:20722
  93. #20 0x40f1dc in main db/db_merge_operator_test.cc:516
  94. #21 0x7fb4c0fe7857 in __libc_start_main (/usr/local/fbcode/gcc-5-glibc-2.23/lib/libc.so.6+0x20857)
  95. #22 0x52093f (/data/users/kolmike/rocksdb/db_merge_operator_test+0x52093f)
  96.  
  97. SUMMARY: AddressSanitizer: heap-use-after-free ??:0 __asan_memcpy
  98. Shadow bytes around the buggy address:
  99. 0x0c3e7fff8c70: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  100. 0x0c3e7fff8c80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  101. 0x0c3e7fff8c90: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  102. 0x0c3e7fff8ca0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  103. 0x0c3e7fff8cb0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  104. =>0x0c3e7fff8cc0: fd fd fd fd fd fd fd fd fd fd fd[fd]fd fd fd fd
  105. 0x0c3e7fff8cd0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  106. 0x0c3e7fff8ce0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  107. 0x0c3e7fff8cf0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  108. 0x0c3e7fff8d00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  109. 0x0c3e7fff8d10: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  110. Shadow byte legend (one shadow byte represents 8 application bytes):
  111. Addressable: 00
  112. Partially addressable: 01 02 03 04 05 06 07
  113. Heap left redzone: fa
  114. Heap right redzone: fb
  115. Freed heap region: fd
  116. Stack left redzone: f1
  117. Stack mid redzone: f2
  118. Stack right redzone: f3
  119. Stack partial redzone: f4
  120. Stack after return: f5
  121. Stack use after scope: f8
  122. Global redzone: f9
  123. Global init order: f6
  124. Poisoned by user: f7
  125. Container overflow: fc
  126. Array cookie: ac
  127. Intra object redzone: bb
  128. ASan internal: fe
  129. ==2189428==ABORTING
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement