Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] BE UT BetaRowsetTest failed #11499

Closed
3 tasks done
xinyiZzz opened this issue Aug 4, 2022 · 0 comments · Fixed by #11500
Closed
3 tasks done

[Bug] BE UT BetaRowsetTest failed #11499

xinyiZzz opened this issue Aug 4, 2022 · 0 comments · Fixed by #11500

Comments

@xinyiZzz
Copy link
Contributor

xinyiZzz commented Aug 4, 2022

Search before asking

  • I had searched in the issues and found no similar issues.

Version

e7f378f

What's Wrong?

=================================================================
==3969347==ERROR: AddressSanitizer: heap-use-after-free on address 0x61a000000da8 at pc 0x00000abb2b67 bp 0x7ffc94260ac0 sp 0x7ffc94260ab8
READ of size 8 at 0x61a000000da8 thread T0
#0 0xabb2b66 in std::__uniq_ptr_impl<doris::MemTracker, std::default_deletedoris::MemTracker >::_M_ptr() const /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:173:42
#1 0xabb2ae6 in std::unique_ptr<doris::MemTracker, std::default_deletedoris::MemTracker >::get() const /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:422:21
#2 0xf33402f in doris::StorageEngine::segment_meta_mem_tracker() /mnt/disk1/xxx/doris/core/be/src/olap/storage_engine.h:179:79
#3 0xf31619e in doris::segment_v2::Segment::Segment() /mnt/disk1/xxx/doris/core/be/src/olap/rowset/segment_v2/segment.cpp:66:32
#4 0xf3366c7 in std::_Sp_counted_ptr<doris::segment_v2::Segment*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:348:9
#5 0xaba41a9 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:168:6
#6 0xaba3ead in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count() /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:702:11
#7 0xbc99cac in std::__shared_ptr<doris::segment_v2::Segment, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:1149:31
#8 0xbc90388 in std::shared_ptrdoris::segment_v2::Segment::~shared_ptr() /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr.h:122:11
#9 0xbedd268 in void std::_Destroy<std::shared_ptrdoris::segment_v2::Segment >(std::shared_ptrdoris::segment_v2::Segment) /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_construct.h:140:19
#10 0xbedd212 in void std::_Destroy_aux::__destroy<std::shared_ptrdoris::segment_v2::Segment
>(std::shared_ptrdoris::segment_v2::Segment, std::shared_ptrdoris::segment_v2::Segment) /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_construct.h:152:6
#11 0xbedd1c0 in void std::_Destroy<std::shared_ptrdoris::segment_v2::Segment>(std::shared_ptrdoris::segment_v2::Segment, std::shared_ptrdoris::segment_v2::Segment) /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_construct.h:184:7
#12 0xbedd034 in void std::_Destroy<std::shared_ptrdoris::segment_v2::Segment
, std::shared_ptrdoris::segment_v2::Segment >(std::shared_ptrdoris::segment_v2::Segment, std::shared_ptrdoris::segment_v2::Segment, std::allocator<std::shared_ptrdoris::segment_v2::Segment >&) /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/alloc_traits.h:746:7
#13 0xf576f30 in std::vector<std::shared_ptrdoris::segment_v2::Segment, std::allocator<std::shared_ptrdoris::segment_v2::Segment > >::_M_erase_at_end(std::shared_ptrdoris::segment_v2::Segment) /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_vector.h:1796:6
#14 0xf576e25 in std::vector<std::shared_ptrdoris::segment_v2::Segment, std::allocator<std::shared_ptrdoris::segment_v2::Segment > >::clear() /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_vector.h:1499:9
#15 0xf56fa8c in doris::SegmentLoader::_insert(doris::SegmentLoader::CacheKey const&, doris::SegmentLoader::CacheValue&, doris::SegmentCacheHandle
)::$_0::operator()(doris::CacheKey const&, void*) const /mnt/disk1/xxx/doris/core/be/src/olap/segment_loader.cpp:51:31
#16 0xf56fa40 in doris::SegmentLoader::_insert(doris::SegmentLoader::CacheKey const&, doris::SegmentLoader::CacheValue&, doris::SegmentCacheHandle*)::$_0::__invoke(doris::CacheKey const&, void*) /mnt/disk1/xxx/doris/core/be/src/olap/segment_loader.cpp:49:20
#17 0xe6724f7 in doris::LRUHandle::free() /mnt/disk1/xxx/doris/core/be/src/olap/lru_cache.h:253:9
#18 0xe65ebde in doris::LRUCache::prune() /mnt/disk1/xxx/doris/core/be/src/olap/lru_cache.cpp:386:25
#19 0xe65e76a in doris::LRUCache::~LRUCache() /mnt/disk1/xxx/doris/core/be/src/olap/lru_cache.cpp:176:5
#20 0xe6661d0 in doris::ShardedLRUCache::~ShardedLRUCache() /mnt/disk1/xxx/doris/core/be/src/olap/lru_cache.cpp:468:13
#21 0xe66630c in doris::ShardedLRUCache::~ShardedLRUCache() /mnt/disk1/xxx/doris/core/be/src/olap/lru_cache.cpp:463:37
#22 0xc00d7ee in std::default_deletedoris::Cache::operator()(doris::Cache*) const /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:85:2
#23 0xc00d633 in std::unique_ptr<doris::Cache, std::default_deletedoris::Cache >::~unique_ptr() /mnt/disk1/xxx/doris/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:361:4
#24 0xf5768d8 in doris::SegmentLoader::~SegmentLoader() /mnt/disk1/xxx/doris/core/be/src/olap/segment_loader.h:48:7
#25 0x7f83ff3c323b in __run_exit_handlers (/lib64/libc.so.6+0x5123b)
#26 0x7f83ff3c336f in exit (/lib64/libc.so.6+0x5136f)
#27 0x7f83ff3accf9 in __libc_start_main (/lib64/libc.so.6+0x3acf9)
#28 0xaa7f029 in _start (/mnt/disk1/xxx/doris/core/be/ut_build_ASAN/test/doris_be_test+0xaa7f029)

What You Expected?

win

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant