[fix](httpserver) Fix lsan check error when stop libevent server#53081
Merged
liaoxin01 merged 1 commit intoapache:masterfrom Jul 11, 2025
Merged
[fix](httpserver) Fix lsan check error when stop libevent server#53081liaoxin01 merged 1 commit intoapache:masterfrom
liaoxin01 merged 1 commit intoapache:masterfrom
Conversation
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 33231 ms |
TPC-DS: Total hot run time: 185950 ms |
ClickBench: Total hot run time: 28.96 s |
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
approved these changes
Jul 11, 2025
vinlee19
pushed a commit
to vinlee19/doris
that referenced
this pull request
Jul 14, 2025
… server apache#53081 (apache#53113) Cherry-picked from apache#53081 Co-authored-by: Xin Liao <liaoxin@selectdb.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
AddressSanitizer: CHECK failed: sanitizer_posix_libcdep.cpp:303 "((14)) == ((write_errno))" (0xe, 0x20) (tid=42951)
#0 0x55d6f4c6fc21 in __asan::CheckUnwind() (/mnt/ssd01/pipline/OpenSourceDoris/clusterEnv/P0/Cluster0/be/lib/doris_be+0x29e5bc21)
#1 0x55d6f4c8a742 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/mnt/ssd01/pipline/OpenSourceDoris/clusterEnv/P0/Cluster0/be/lib/doris_be+0x29e76742)
#2 0x55d6f4c8cba8 in __sanitizer::IsAccessibleMemoryRange(unsigned long, unsigned long) (/mnt/ssd01/pipline/OpenSourceDoris/clusterEnv/P0/Cluster0/be/lib/doris_be+0x29e78ba8)
#3 0x55d6f4ca7698 in __ubsan::checkDynamicType(void*, void*, unsigned long) (/mnt/ssd01/pipline/OpenSourceDoris/clusterEnv/P0/Cluster0/be/lib/doris_be+0x29e93698)
#4 0x55d6f4ca6a62 in HandleDynamicTypeCacheMiss(__ubsan::DynamicTypeCacheMissData*, unsigned long, unsigned long, __ubsan::ReportOptions) (/mnt/ssd01/pipline/OpenSourceDoris/clusterEnv/P0/Cluster0/be/lib/doris_be+0x29e92a62)
#5 0x55d6f4ca6a33 in __ubsan_handle_dynamic_type_cache_miss (/mnt/ssd01/pipline/OpenSourceDoris/clusterEnv/P0/Cluster0/be/lib/doris_be+0x29e92a33)
#6 0x55d6fadbf0d1 in std::_Sp_counted_deleter<event_base*, doris::EvHttpServer::EvHttpServer(int, int)::$_0, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/shared_ptr_base.h:527:9
#7 0x55d6f4cc5c52 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/shared_ptr_base.h:346:8
#8 0x55d6f88a0a4e in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count() /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/shared_ptr_base.h:1069:11__shared_ptr() /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/shared_ptr_base.h:1525:31#9 0x55d6f88a0a4e in std::__shared_ptr<event_base, (__gnu_cxx::_Lock_policy)2>::
#10 0x55d6f88a0a4e in void std::destroy_at<std::shared_ptr<event_base> >(std::shared_ptr<event_base>) /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h:88:15
#11 0x55d6f88a0a4e in void std::_Destroy<std::shared_ptr<event_base> >(std::shared_ptr<event_base>) /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h:149:7
#12 0x55d6f88a0a4e in void std::_Destroy_aux::__destroy<std::shared_ptr<event_base>>(std::shared_ptr<event_base>, std::shared_ptr<event_base>) /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h:163:6
#13 0x55d6fadbc194 in void std::_Destroy<std::shared_ptr<event_base>>(std::shared_ptr<event_base>, std::shared_ptr<event_base>) /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h:195:7
#14 0x55d6fadbc194 in void std::_Destroy<std::shared_ptr<event_base>, std::shared_ptr<event_base> >(std::shared_ptr<event_base>, std::shared_ptr<event_base>, std::allocator<std::shared_ptr<event_base> >&) /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/alloc_traits.h:981:7
#15 0x55d6fadbc194 in std::vector<std::shared_ptr<event_base>, std::allocator<std::shared_ptr<event_base> > >::_M_erase_at_end(std::shared_ptr<event_base>) /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1947:6
#16 0x55d6fadbc194 in std::vector<std::shared_ptr<event_base>, std::allocator<std::shared_ptr<event_base> > >::clear() /usr/local/ldb-toolchain-v0.24/bin/../lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1608:9
#17 0x55d6fadbc194 in doris::EvHttpServer::stop() /root/doris/be/src/http/ev_http_server.cpp:151:22
#18 0x55d6f88902f4 in doris::HttpService::stop() /root/doris/be/src/service/http_service.cpp:497:22
#19 0x55d6f4cae518 in main /root/doris/be/src/service/doris_main.cpp:625:19
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)