gaodayue opened a new issue #2436: alloc-dealloc-mismatch in OrdinalPageIndex
URL: https://github.com/apache/incubator-doris/issues/2436
 
 
   **Describe the bug**
   BE built with ASAN reports the following error
   ```
   ==21168==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs 
operator delete) on 0x60222355d530
       #0 0xdd37b0 in operator delete(void*) 
../../../../libsanitizer/asan/asan_new_delete.cc:124
       #1 0x312d606 in doris::segment_v2::OrdinalPageIndex::~OrdinalPageIndex() 
/home/gaodayue/doris-git/be/src/olap/rowset/segment_v2/ordinal_page_index.cpp:24
       #2 0x3092899 in 
std::default_delete<doris::segment_v2::OrdinalPageIndex>::operator()(doris::segment_v2::OrdinalPageIndex*)
 const /usr/local/include/c++/7.2.0/bits/unique_ptr.h:78
       #3 0x3092899 in std::unique_ptr<doris::segment_v2::OrdinalPageIndex, 
std::default_delete<doris::segment_v2::OrdinalPageIndex> >::~unique_ptr() 
/usr/local/include/c++/7.2.0/bits/unique_ptr.h:268
       #4 0x3092899 in doris::segment_v2::ColumnReader::~ColumnReader() 
/home/gaodayue/doris-git/be/src/olap/rowset/segment_v2/column_reader.h:64
   
   0x60222355d530 is located 0 bytes inside of 8-byte region 
[0x60222355d530,0x60222355d538)
   allocated by thread T673 here:
       #0 0xdd2c50 in operator new[](unsigned long) 
../../../../libsanitizer/asan/asan_new_delete.cc:82
       #1 0x312d813 in doris::segment_v2::OrdinalPageIndex::load() 
/home/gaodayue/doris-git/be/src/olap/rowset/segment_v2/ordinal_page_index.cpp:39
       #2 0x3088ab9 in doris::segment_v2::ColumnReader::_load_ordinal_index() 
/home/gaodayue/doris-git/be/src/olap/rowset/segment_v2/column_reader.cpp:262
       #3 0x3095a52 in 
doris::segment_v2::ColumnReader::_ensure_index_loaded()::{lambda()#1}::operator()()
 const 
/home/gaodayue/doris-git/be/src/olap/rowset/segment_v2/column_reader.h:117
       #4 0x3095a52 in doris::Status 
doris::DorisCallOnce<doris::Status>::call<doris::segment_v2::ColumnReader::_ensure_index_loaded()::{lambda()#1}>(doris::segment_v2::ColumnReader::_ensure_index_loaded()::{lambda()#1})::{lambda()#1}::operator()()
 const /home/gaodayue/doris-git/be/src/util/once.h:57
   
   SUMMARY: AddressSanitizer: alloc-dealloc-mismatch 
../../../../libsanitizer/asan/asan_new_delete.cc:124 in operator delete(void*)
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to