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

   ## Proposed changes
   
   Fix the following coredump:
   
   ```
   Program terminated with signal SIGSEGV, Segmentation fault.                  
                                                                         
   #0  0x0000564eb2891e04 in 
doris::MemTable::_init_columns_offset_by_slot_descs 
(this=this@entry=0x7f054e4c9900, slot_descs=slot_descs@entry=0x7f0b2df89
   e18, tuple_desc=tuple_desc@entry=0x7f0b0a6359a0) at 
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/memtable.cpp:93        
                  
   93      
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/memtable.cpp: No such 
file or directory.                                             
   [Current thread is 1 (Thread 0x7eed1461d700 (LWP 1856714))]                  
                                                                         
   (gdb) bt                                                                     
                                                                         
   #0  0x0000564eb2891e04 in 
doris::MemTable::_init_columns_offset_by_slot_descs 
(this=this@entry=0x7f054e4c9900,                                        
       slot_descs=slot_descs@entry=0x7f0b2df89e18, 
tuple_desc=tuple_desc@entry=0x7f0b0a6359a0)                                     
                      
       at 
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/memtable.cpp:93        
                                                               
   #1  0x0000564eb2891b17 in doris::MemTable::MemTable (this=0x7f054e4c9900, 
tablet_id=<optimized out>, tablet_schema=<optimized out>,                   
       slot_descs=0x7f0b2df89e18, tuple_desc=0x7f0b0a6359a0, 
enable_unique_key_mow=<optimized out>, partial_update_info=0x7f05d0007690,      
            
       insert_mem_tracker=std::shared_ptr<doris::MemTracker> (use count 3, weak 
count 0) = {...},                                                        
       flush_mem_tracker=std::shared_ptr<doris::MemTracker> (use count 3, weak 
count 0) = {...})                                                         
       at 
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/memtable.cpp:79        
                                                               
   #2  0x0000564eb288ceb3 in doris::MemTableWriter::_reset_mem_table 
(this=this@entry=0x7f05597bfb00)                                                
    
       at 
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/memtable_writer.cpp:211
                                                               
   #3  0x0000564eb288d79e in doris::MemTableWriter::flush_async 
(this=0x7f05597bfb00)                                                           
         
       at 
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/memtable_writer.cpp:163
                                                               
   #4  0x0000564eb287dbed in doris::MemTableMemoryLimiter::_flush_memtable 
(this=<optimized out>, writer_to_flush=                                       
       std::weak_ptr<doris::MemTableWriter> (use count 2, weak count 4) = 
{...}, threshold=threshold@entry=4893573)                                      
       at 
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/memtable_memory_limiter.cpp:191
                                                       
   #5  0x0000564eb287ceb8 in 
doris::MemTableMemoryLimiter::_flush_active_memtables 
(this=this@entry=0x7f0b0a435a00, need_flush=496805725)                
       at 
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/memtable_memory_limiter.cpp:164
                                                       
   #6  0x0000564eb287caf8 in 
doris::MemTableMemoryLimiter::handle_memtable_flush (this=0x7f0b0a435a00)       
                                            
       at 
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/memtable_memory_limiter.cpp:142
                                                       
   #7  0x0000564ebc685911 in 
doris::vectorized::VTabletWriterV2::_write_memtable 
(this=this@entry=0x7f079d59f400, block=                                 
       std::shared_ptr<doris::vectorized::Block> (use count 2, weak count 0) = 
{...}, tablet_id=<optimized out>, rows=...,                               
       streams=std::vector of length 3, capacity 4 = {...})                     
                                                                         
   ```
   
   ## 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