Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](memory) Fix SnapshotManager MemTracker attach thread (apache#33500
) fix F20240410 19:52:38.560148 2996054 thread_context.h:293] __builtin_unreachable, If you crash here, it means that SCOPED_ATTACH_TASK and SCOPED_SWITCH_THREAD_MEM_TRACKER_LIMITER are not used correctly. starting position of each thread is expected to use SCOPED_ATTACH_TASK t o bind a MemTrackerLimiter belonging to Query/Load/Compaction/Other Tasks, otherwise memory alloc using Doris Allocator in the thread will crash. If you want to switch MemTrackerLimiter during thread execution, please use SCOPED_SWITCH_THREAD_MEM_TRACKER_LIMITER, do not r epeat Attach. Of course, you can modify enable_memory_orphan_check=false in be.conf to avoid this crash. *** Check failure stack trace: *** @ 0x55ccbdee4346 google::LogMessage::SendToLog() @ 0x55ccbdee0d90 google::LogMessage::Flush() @ 0x55ccbdee4b89 google::LogMessageFatal::~LogMessageFatal() @ 0x55cc8dbad2ee doris::thread_context() @ 0x55cc8dbac50e doris::MemTracker::bind_parent() @ 0x55cc8dbac1cb doris::MemTracker::MemTracker() @ 0x55cc8ce4acd5 _ZSt12construct_atIN5doris10MemTrackerEJRA16_KcEEDTgsnwcvPvLi0E_T_pispclsr3stdE7declvalIT0_EEEEPS6_DpOS7_ @ 0x55cc8ce4ab83 std::allocator_traits<>::construct<>() @ 0x55cc8ce4aa87 std::_Sp_counted_ptr_inplace<>::_Sp_counted_ptr_inplace<>() @ 0x55cc8ce4a75c std::__shared_count<>::__shared_count<>() @ 0x55cc8ce4a498 std::__shared_ptr<>::__shared_ptr<>() @ 0x55cc8ce4a278 std::shared_ptr<>::shared_ptr<>() @ 0x55cc8ce4a0a5 std::allocate_shared<>() @ 0x55cc8ce49e7d std::make_shared<>() @ 0x55cc8ce4087b doris::SnapshotManager::SnapshotManager() @ 0x55cc8ce2020b doris::SnapshotManager::instance() @ 0x55cc8e117c32 doris::AgentServer::make_snapshot()
- Loading branch information