morningman opened a new issue #4522:
URL: https://github.com/apache/incubator-doris/issues/4522


   **Describe the bug**
   
   ```
   *** Aborted at 1599045887 (unix time) try "date -d @1599045887" if you are 
using GNU date ***
   PC: @          0x25ed67b tcmalloc::ThreadCache::ReleaseToCentralCache()
   *** SIGSEGV (@0x0) received by PID 52721 (TID 0x7fa015be2700) from PID 0; 
stack trace: ***
       @     0x7fa01b032470 (unknown)
       @          0x25ed67b tcmalloc::ThreadCache::ReleaseToCentralCache()
       @          0x25eda05 tcmalloc::ThreadCache::ListTooLong()
       @          0x1175021 std::vector<>::_M_default_append()
       @          0x11753bc doris::CoreDataAllocatorImpl<>::get_or_create()
       @           0xebea5d doris::BaseTablet::BaseTablet()
       @           0xe560e9 doris::Tablet::Tablet()
       @           0xe56535 doris::Tablet::create_tablet_from_meta()
       @           0xe6c259 doris::TabletManager::load_tablet_from_meta()
       @           0xe4de26 
_ZNSt17_Function_handlerIFbllRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEZN5doris7DataDir4loadEvEUlliS7_E0_E9_M_invokeERKSt9_Any_dataOlSG_S7_
       @           0xe7e396 
_ZNSt17_Function_handlerIFbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EZN5doris17TabletMetaManager16traverse_headersEPNS9_8OlapMetaERKSt8functionIFbllS7_EES7_EUlS7_S7_E_E9_M_invokeERKSt9_Any_dataS7_S7_
       @           0xedd3b8 doris::OlapMeta::iterate()
       @           0xe7c358 doris::TabletMetaManager::traverse_headers()
       @           0xe51cee doris::DataDir::load()
       @           0xe36969 
_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN5doris13StorageEngine14load_data_dirsERKSt6vectorIPNS3_7DataDirESaIS7_EEEUlvE_EEEEE6_M_runEv
       @          0x26ed17f execute_native_thread_routine
       @     0x7fa01ade71c3 start_thread
       @     0x7fa01b0e412d __clone
   ```
   
   This problem will only appear when BE has a lot of tablets, because #4428 
introduces tablet-level metrics.
   This will result in a large number of core local values. The previous code 
logic is generating core local values,
   and the corresponding data structures are not protected by locks, which 
leads to memory access errors.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to