Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyncStatusTest UT detected memory leaks #6025

Closed
hehechen opened this issue Sep 26, 2022 · 0 comments · Fixed by #6026
Closed

SyncStatusTest UT detected memory leaks #6025

hehechen opened this issue Sep 26, 2022 · 0 comments · Fixed by #6026
Assignees
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@hehechen
Copy link
Contributor

https://ci.pingcap.net/blue/organizations/jenkins/tiflash-sanitizer-daily/detail/tiflash-sanitizer-daily/550/pipeline/

[2022-09-25T18:49:24.883Z] =================================================================
[2022-09-25T18:49:24.883Z] ==173576==ERROR: LeakSanitizer: detected memory leaks
[2022-09-25T18:49:24.883Z]
[2022-09-25T18:49:24.883Z] Direct leak of 24 byte(s) in 1 object(s) allocated from:
[2022-09-25T18:49:24.883Z] #0 0x316a40d in operator new(unsigned long) /llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:95:3
[2022-09-25T18:49:24.883Z] #1 0x156d0d7a in DB::RawCppString* DB::RawCppString::New<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Storages/Transaction/ProxyFFICommon.h:39:16
[2022-09-25T18:49:24.883Z] #2 0x156d0d7a in DB::HandleHttpRequestSyncStatus(DB::EngineStoreServerWrap*, std::__1::basic_string_view<char, std::__1::char_traits >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string_view<char, std::__1::char_traits >, std::__1::basic_string_view<char, std::__1::char_traits >) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Storages/Transaction/ProxyFFIStatusService.cpp:92:16
[2022-09-25T18:49:24.883Z] #3 0x156d215a in HandleHttpRequest /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Storages/Transaction/ProxyFFIStatusService.cpp:138:20
[2022-09-25T18:49:24.883Z] #4 0x7fb1277 in DB::tests::SyncStatusTest_TestNormalRegion_Test::TestBody() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Storages/Transaction/tests/gtest_sync_status.cpp:229:16
[2022-09-25T18:49:24.883Z] #5 0x120ca0e0 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::)(), char const) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2443:10
[2022-09-25T18:49:24.884Z] #6 0x120ca0e0 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::)(), char const) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2479:14
[2022-09-25T18:49:24.884Z] #7 0x12068888 in testing::Test::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2517:5
[2022-09-25T18:49:24.884Z] #8 0x1206ba17 in testing::TestInfo::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2693:11
[2022-09-25T18:49:24.884Z] #9 0x1206cf8f in testing::TestCase::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2811:28
[2022-09-25T18:49:24.884Z] #10 0x120979a8 in testing::internal::UnitTestImpl::RunAllTests() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:5177:43
[2022-09-25T18:49:24.884Z] #11 0x120cc6e0 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2443:10
[2022-09-25T18:49:24.884Z] #12 0x120cc6e0 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2479:14
[2022-09-25T18:49:24.884Z] #13 0x12096221 in testing::UnitTest::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:4786:10
[2022-09-25T18:49:24.884Z] #14 0x813243a in RUN_ALL_TESTS() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/include/gtest/gtest.h:2341:46
[2022-09-25T18:49:24.884Z] #15 0x813243a in main /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/TestUtils/gtests_dbms_main.cpp:78:16
[2022-09-25T18:49:24.884Z] #16 0x7f95beed1554 in __libc_start_main (/lib64/libc.so.6+0x22554)
[2022-09-25T18:49:24.884Z]
[2022-09-25T18:49:24.884Z] Indirect leak of 64 byte(s) in 1 object(s) allocated from:
[2022-09-25T18:49:24.884Z] #0 0x316a40d in operator new(unsigned long) /llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:95:3
[2022-09-25T18:49:24.884Z] #1 0x31b71a6 in void* std::__1::__libcpp_operator_new(unsigned long) /usr/local/bin/../include/c++/v1/new:235:10
[2022-09-25T18:49:24.884Z] #2 0x31b71a6 in std::__1::__libcpp_allocate(unsigned long, unsigned long) /usr/local/bin/../include/c++/v1/new:261:10
[2022-09-25T18:49:24.884Z] #3 0x31b71a6 in std::__1::allocator::allocate(unsigned long) /usr/local/bin/../include/c++/v1/__memory/allocator.h:108:38
[2022-09-25T18:49:24.884Z] #4 0x31b71a6 in std::__1::allocator_traits<std::__1::allocator >::allocate(std::__1::allocator&, unsigned long) /usr/local/bin/../include/c++/v1/__memory/allocator_traits.h:262:20
[2022-09-25T18:49:24.884Z] #5 0x31b71a6 in std::__1::_MetaBase<__is_cpp17_forward_iterator<char*>::value>::_EnableIfImpl std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::__init<char*>(char*, char*) /usr/local/bin/../include/c++/v1/string:2183:15
[2022-09-25T18:49:24.884Z] #6 0x31b71a6 in std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::basic_string<char*, void>(char*, char*, std::__1::allocator const&) /usr/local/bin/../include/c++/v1/string:2226:5
[2022-09-25T18:49:24.884Z] #7 0x31b71a6 in std::__1::basic_stringbuf<char, std::__1::char_traits, std::__1::allocator >::str() const /usr/local/bin/../include/c++/v1/sstream:445:16
[2022-09-25T18:49:24.884Z] #8 0x156d0d70 in std::__1::basic_stringstream<char, std::__1::char_traits, std::__1::allocator >::str() const /usr/local/bin/../include/c++/v1/sstream:843:22
[2022-09-25T18:49:24.884Z] #9 0x156d0d70 in DB::HandleHttpRequestSyncStatus(DB::EngineStoreServerWrap*, std::__1::basic_string_view<char, std::__1::char_traits >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string_view<char, std::__1::char_traits >, std::__1::basic_string_view<char, std::__1::char_traits >) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Storages/Transaction/ProxyFFIStatusService.cpp:92:37
[2022-09-25T18:49:24.884Z] #10 0x156d215a in HandleHttpRequest /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Storages/Transaction/ProxyFFIStatusService.cpp:138:20
[2022-09-25T18:49:24.885Z] #11 0x7fb1277 in DB::tests::SyncStatusTest_TestNormalRegion_Test::TestBody() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Storages/Transaction/tests/gtest_sync_status.cpp:229:16
[2022-09-25T18:49:24.885Z] #12 0x120ca0e0 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::)(), char const) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2443:10
[2022-09-25T18:49:24.885Z] #13 0x120ca0e0 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::)(), char const) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2479:14
[2022-09-25T18:49:24.885Z] #14 0x12068888 in testing::Test::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2517:5
[2022-09-25T18:49:24.885Z] #15 0x1206ba17 in testing::TestInfo::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2693:11
[2022-09-25T18:49:24.885Z] #16 0x1206cf8f in testing::TestCase::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2811:28
[2022-09-25T18:49:24.885Z] #17 0x120979a8 in testing::internal::UnitTestImpl::RunAllTests() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:5177:43
[2022-09-25T18:49:24.885Z] #18 0x120cc6e0 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2443:10
[2022-09-25T18:49:24.885Z] #19 0x120cc6e0 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::)(), char const) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2479:14
[2022-09-25T18:49:24.885Z] #20 0x12096221 in testing::UnitTest::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:4786:10
[2022-09-25T18:49:24.885Z] #21 0x813243a in RUN_ALL_TESTS() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/include/gtest/gtest.h:2341:46
[2022-09-25T18:49:24.885Z] #22 0x813243a in main /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/TestUtils/gtests_dbms_main.cpp:78:16
[2022-09-25T18:49:24.885Z] #23 0x7f95beed1554 in __libc_start_main (/lib64/libc.so.6+0x22554)
[2022-09-25T18:49:24.885Z]
[2022-09-25T18:49:24.885Z] SUMMARY: AddressSanitizer: 88 byte(s) leaked in 2 allocation(s).

@hehechen hehechen added the type/enhancement The issue or PR belongs to an enhancement. label Sep 26, 2022
@hehechen hehechen self-assigned this Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant