xinyiZzz opened a new pull request, #33500:
URL: https://github.com/apache/doris/pull/33500

   ## Proposed changes
   
   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()
       @     0x55cc8e0f7963  doris::BackendService::make_snapshot()
       @     0x55cc8e927232  
doris::BackendServiceProcessor::process_make_snapshot()
   ```
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to