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

   ### What problem does this PR solve?
   try to avoid asan check fail:
   ```cpp
   OpenJDK 64-Bit Server VM warning: Option CriticalJNINatives was deprecated 
in version 16.0 and will likely be removed in a future release.
   Listening for transport dt_socket at address: 8871
   WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will 
impact performance.
   start BE in local mode
   thrift error, reason=write() send(): Broken 
pipe=================================================================
   AddressSanitizer: CHECK failed: asan_thread.cpp:369 "((ptr[0] == 
kCurrentStackFrameMagic)) != (0)" (0x0, 0x0) (tid=13525)
       #0 0x557a503468e1 in __asan::CheckUnwind() 
(/mnt/hdd01/ci/doris-deploy-branch-4.0-local/be/lib/doris_be+0x1f2a08e1)
       #1 0x557a50361182 in __sanitizer::CheckFailed(char const*, int, char 
const*, unsigned long long, unsigned long long) 
(/mnt/hdd01/ci/doris-deploy-branch-4.0-local/be/lib/doris_be+0x1f2bb182)
       #2 0x557a5034a97b in 
__asan::AsanThread::GetStackFrameAccessByAddr(unsigned long, 
__asan::AsanThread::StackFrameAccess*) 
(/mnt/hdd01/ci/doris-deploy-branch-4.0-local/be/lib/doris_be+0x1f2a497b)
       #3 0x557a502a4a30 in 
__asan::AddressDescription::AddressDescription(unsigned long, unsigned long, 
bool) (/mnt/hdd01/ci/doris-deploy-branch-4.0-local/be/lib/doris_be+0x1f1fea30)
       #4 0x557a502a67a3 in __asan::ErrorGeneric::ErrorGeneric(unsigned int, 
unsigned long, unsigned long, unsigned long, unsigned long, bool, unsigned 
long) (/mnt/hdd01/ci/doris-deploy-branch-4.0-local/be/lib/doris_be+0x1f2007a3)
       #5 0x557a50343878 in __asan::ReportGenericError(unsigned long, unsigned 
long, unsigned long, unsigned long, bool, unsigned long, unsigned int, bool) 
(/mnt/hdd01/ci/doris-deploy-branch-4.0-local/be/lib/doris_be+0x1f29d878)
       #6 0x557a50344f75 in __asan_report_load8 
(/mnt/hdd01/ci/doris-deploy-branch-4.0-local/be/lib/doris_be+0x1f29ef75)
       #7 0x557a5039791e in std::__cxx11::basic_string, 
std::allocator>::_M_create(unsigned long&, unsigned long) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/basic_string.tcc:148:11
       #8 0x557a503984db in void std::__cxx11::basic_string, 
std::allocator>::_M_construct(char const*, unsigned long) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/basic_string.tcc:291:12
       #9 0x557a503984db in std::__cxx11::basic_string, 
std::allocator>::basic_string(std::__cxx11::basic_string, std::allocator> 
const&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/basic_string.h:617:2
       #10 0x557a55b4d77d in std::pair, std::allocator> const, 
doris::TQueryStatistics>::pair(std::pair, std::allocator> const, 
doris::TQueryStatistics> const&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_pair.h:312:17
       #11 0x557a55b4d77d in 
_ZSt12construct_atISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5doris16TQueryStatisticsEEJRKSA_EQaant20is_unbounded_array_vIT_ErqXgsnwcvPvLi0E_SD_pispclsr3stdE7declvalIT0_EEEEEPSD_SG_DpOSF_
 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_construct.h:110:22
       #12 0x557a55b4d77d in void std::allocator_traits, std::allocator> const, 
doris::TQueryStatistics>>>>::construct, std::allocator> const, 
doris::TQueryStatistics>, std::pair, std::allocator> const, 
doris::TQueryStatistics> const&>(std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>&, std::pair, std::allocator> const, 
doris::TQueryStatistics>*, std::pair, std::allocator> const, 
doris::TQueryStatistics> const&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/alloc_traits.h:676:4
       #13 0x557a55b4d77d in void std::_Rb_tree, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_M_construct_node, std::allocator> const, 
doris::TQueryStatistics> const&>(std::_Rb_tree_node, std::allocator> const, 
doris::TQueryStatistics>>*, std::pair, std::allocator> const, 
doris::TQueryStatistics> const&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h:1237:8
       #14 0x557a55b4cfe3 in std::_Rb_tree_node, std::allocator> const, 
doris::TQueryStatistics>>* std::_Rb_tree, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_Reuse_or_alloc_node::operator(), std::allocator> 
const, doris::TQueryStatistics> const&>(std::pair, std::allocator> const, 
doris::TQueryStatistics> const&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h
       #15 0x557a55b4cbe6 in std::_Rb_tree_node, std::allocator> const, 
doris::TQueryStatistics>>* std::_Rb_tree, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_M_clone_node, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_Reuse_or_alloc_node>(std::_Rb_tree_node, 
std::allocator> const, doris::TQueryStatistics>>*, std::_Rb_tree, 
std::allocator>, std::pair, std::allocator> const, doris::TQueryStatistics>, 
std::_Select1st, std::allocator> const, doris::TQueryStatistics>>, std::less, 
std::allocator>>, std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_Reuse_or_alloc_node&) /usr/local/ldb-too
 
lchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h:1287:8
       #16 0x557a55b4c6f6 in std::_Rb_tree_node_base* std::_Rb_tree, 
std::allocator>, std::pair, std::allocator> const, doris::TQueryStatistics>, 
std::_Select1st, std::allocator> const, doris::TQueryStatistics>>, std::less, 
std::allocator>>, std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_M_copy, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_Reuse_or_alloc_node>(std::_Rb_tree_node, 
std::allocator> const, doris::TQueryStatistics>>*, std::_Rb_tree_node_base*, 
std::_Rb_tree, std::allocator>, std::pair, std::allocator> const, 
doris::TQueryStatistics>, std::_Select1st, std::allocator> const, 
doris::TQueryStatistics>>, std::less, std::allocator>>, std::allocator, 
std::allocator> const, doris::TQueryStatistics>>>::_Reuse_or_alloc_node&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/g
 cc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h:2546:20
       #17 0x557a55b4c7b6 in std::_Rb_tree_node_base* std::_Rb_tree, 
std::allocator>, std::pair, std::allocator> const, doris::TQueryStatistics>, 
std::_Select1st, std::allocator> const, doris::TQueryStatistics>>, std::less, 
std::allocator>>, std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_M_copy, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_Reuse_or_alloc_node>(std::_Rb_tree_node, 
std::allocator> const, doris::TQueryStatistics>>*, std::_Rb_tree_node_base*, 
std::_Rb_tree, std::allocator>, std::pair, std::allocator> const, 
doris::TQueryStatistics>, std::_Select1st, std::allocator> const, 
doris::TQueryStatistics>>, std::less, std::allocator>>, std::allocator, 
std::allocator> const, doris::TQueryStatistics>>>::_Reuse_or_alloc_node&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/g
 cc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h:2554:3
       #18 0x557a55b4c7b6 in std::_Rb_tree_node_base* std::_Rb_tree, 
std::allocator>, std::pair, std::allocator> const, doris::TQueryStatistics>, 
std::_Select1st, std::allocator> const, doris::TQueryStatistics>>, std::less, 
std::allocator>>, std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_M_copy, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_Reuse_or_alloc_node>(std::_Rb_tree_node, 
std::allocator> const, doris::TQueryStatistics>>*, std::_Rb_tree_node_base*, 
std::_Rb_tree, std::allocator>, std::pair, std::allocator> const, 
doris::TQueryStatistics>, std::_Select1st, std::allocator> const, 
doris::TQueryStatistics>>, std::less, std::allocator>>, std::allocator, 
std::allocator> const, doris::TQueryStatistics>>>::_Reuse_or_alloc_node&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/g
 cc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h:2554:3
       #19 0x557a55b4c7b6 in std::_Rb_tree_node_base* std::_Rb_tree, 
std::allocator>, std::pair, std::allocator> const, doris::TQueryStatistics>, 
std::_Select1st, std::allocator> const, doris::TQueryStatistics>>, std::less, 
std::allocator>>, std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_M_copy, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_Reuse_or_alloc_node>(std::_Rb_tree_node, 
std::allocator> const, doris::TQueryStatistics>>*, std::_Rb_tree_node_base*, 
std::_Rb_tree, std::allocator>, std::pair, std::allocator> const, 
doris::TQueryStatistics>, std::_Select1st, std::allocator> const, 
doris::TQueryStatistics>>, std::less, std::allocator>>, std::allocator, 
std::allocator> const, doris::TQueryStatistics>>>::_Reuse_or_alloc_node&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/g
 cc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h:2554:3
       #20 0x557a55b4c7b6 in std::_Rb_tree_node_base* std::_Rb_tree, 
std::allocator>, std::pair, std::allocator> const, doris::TQueryStatistics>, 
std::_Select1st, std::allocator> const, doris::TQueryStatistics>>, std::less, 
std::allocator>>, std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_M_copy, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_Reuse_or_alloc_node>(std::_Rb_tree_node, 
std::allocator> const, doris::TQueryStatistics>>*, std::_Rb_tree_node_base*, 
std::_Rb_tree, std::allocator>, std::pair, std::allocator> const, 
doris::TQueryStatistics>, std::_Select1st, std::allocator> const, 
doris::TQueryStatistics>>, std::less, std::allocator>>, std::allocator, 
std::allocator> const, doris::TQueryStatistics>>>::_Reuse_or_alloc_node&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/g
 cc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h:2554:3
       #21 0x557a55b4c27a in std::_Rb_tree_node_base* std::_Rb_tree, 
std::allocator>, std::pair, std::allocator> const, doris::TQueryStatistics>, 
std::_Select1st, std::allocator> const, doris::TQueryStatistics>>, std::less, 
std::allocator>>, std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_M_copy, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::_Reuse_or_alloc_node>(std::_Rb_tree, 
std::allocator>, std::pair, std::allocator> const, doris::TQueryStatistics>, 
std::_Select1st, std::allocator> const, doris::TQueryStatistics>>, std::less, 
std::allocator>>, std::allocator, std::allocator> const, 
doris::TQueryStatistics>>> const&, std::_Rb_tree, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>
 >, std::less, std::allocator>>, std::allocator, std::allocator> const, 
 >doris::TQueryStatistics>>>::_Reuse_or_alloc_node&) 
 >/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h:1523:6
       #22 0x557a55740d4f in std::_Rb_tree, std::allocator>, std::pair, 
std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, 
doris::TQueryStatistics>>>::operator=(std::_Rb_tree, std::allocator>, 
std::pair, std::allocator> const, doris::TQueryStatistics>, std::_Select1st, 
std::allocator> const, doris::TQueryStatistics>>, std::less, std::allocator>>, 
std::allocator, std::allocator> const, doris::TQueryStatistics>>> const&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_tree.h:2453:18
       #23 0x557a55740d4f in std::map, std::allocator>, 
doris::TQueryStatistics, std::less, std::allocator>>, std::allocator, 
std::allocator> const, doris::TQueryStatistics>>>::operator=(std::map, 
std::allocator>, doris::TQueryStatistics, std::less, std::allocator>>, 
std::allocator, std::allocator> const, doris::TQueryStatistics>>> const&) 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/stl_map.h:354:37
       #24 0x557a55740d4f in 
doris::TReportWorkloadRuntimeStatusParams::__set_query_statistics_map(std::map, 
std::allocator>, doris::TQueryStatistics, std::less, std::allocator>>, 
std::allocator, std::allocator> const, doris::TQueryStatistics>>> const&) 
/home/zcp/repo_center/doris_branch-4.0/doris/gensrc/build/gen_cpp/FrontendService_types.cpp:4391:30
       #25 0x557a5447e13a in 
doris::RuntimeQueryStatisticsMgr::report_runtime_query_statistics() 
/home/zcp/repo_center/doris_branch-4.0/doris/be/src/runtime/runtime_query_statistics_mgr.cpp:403:31
       #26 0x557a504f1192 in 
doris::Daemon::report_runtime_query_statistics_thread() 
/home/zcp/repo_center/doris_branch-4.0/doris/be/src/common/daemon.cpp:457:65
       #27 0x557a54bf2eb6 in std::function::operator()() const 
/usr/local/ldb-toolchain-v0.26/bin/../lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/std_function.h:593:9
       #28 0x557a54bf2eb6 in doris::Thread::supervise_thread(void*) 
/home/zcp/repo_center/doris_branch-4.0/doris/be/src/util/thread.cpp:460:5
       #29 0x557a50336d26 in asan_thread_start(void*) 
(/mnt/hdd01/ci/doris-deploy-branch-4.0-local/be/lib/doris_be+0x1f290d26)
       #30 0x7f12a399eac2 in start_thread nptl/pthread_create.c:442:8
       #31 0x7f12a3a3084f in __closefrom_fallback 
misc/../sysdeps/unix/sysv/linux/closefrom_fallback.c:45:19
   172.20.59.34 last coredump sql: last SQL query not found
   ```
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


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