Open yibin87 opened 1 year ago
False positive cases containing google::protobuf::internal::AssignDescriptors:
[2023-12-11T18:31:39.584Z] ==================
[2023-12-11T18:31:39.584Z] WARNING: ThreadSanitizer: data race (pid=5177)
[2023-12-11T18:31:39.584Z] Read of size 8 at 0x0000149dea60 by thread T972:
[2023-12-11T18:31:39.584Z] #0 google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const ()(), std::1::once_flag, google::protobuf::Metadata const&) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/protobuf/src/google/protobuf/generated_message_reflection.cc:3007:10 (gtests_dbms+0x10def781)
[2023-12-11T18:31:39.584Z] #1 mpp::EstablishMPPConnectionRequest::GetMetadata() const /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/build-TSan/contrib/kvproto/cpp/kvproto/mpp.pb.cc:3058:10 (gtests_dbms+0x102ecef3)
[2023-12-11T18:31:39.584Z] #2 google::protobuf::Message::GetReflection() const /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/protobuf/src/google/protobuf/message.h:358:52 (gtests_dbms+0x10e1befa)
[2023-12-11T18:31:39.584Z] #3 google::protobuf::TextFormat::Printer::Print(google::protobuf::Message const&, google::protobuf::TextFormat::Printer::TextGenerator) const /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/protobuf/src/google/protobuf/text_format.cc:2165:42 (gtests_dbms+0x10e1befa)
[2023-12-11T18:31:39.584Z] #4 google::protobuf::TextFormat::Printer::Print(google::protobuf::Message const&, google::protobuf::io::ZeroCopyOutputStream*) const /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/protobuf/src/google/protobuf/text_format.cc:2074:3 (gtests_dbms+0x10e178bf)
[2023-12-11T18:31:39.584Z] #5 google::protobuf::TextFormat::Printer::PrintToString(google::protobuf::Message const&, std::1::basic_string<char, std::1::char_traits
2024-02-21T19:09:49.037Z] =================================================================
[2024-02-21T19:09:49.037Z] ==68367==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffe4b219334 at pc 0x00000ff6e9db bp 0x7ffe4b219250 sp 0x7ffe4b219248
[2024-02-21T19:09:49.037Z] READ of size 4 at 0x7ffe4b219334 thread T0
[2024-02-21T19:09:49.037Z] #0 0xff6e9da in DB::DecimalField<DB::Decimal
New testCancelMPPGather case failure due to sleep too short: [2024-07-07T18:31:42.163Z] [2024/07/08 02:31:36.084 +08:00] [ERROR] [Exception.cpp:96] ["std::exception. Code: 1001, type: testing::AssertionException, e.what() = /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Flash/tests/gtest_compute_server.cpp:1003: Failure\nValue of: TiFlashMetrics::instance() .tiflash_task_scheduler.get(tiflash_task_scheduler_metrics::type_active_queries_count, \"\") .Value() == 2\n Actual: false\nExpected: true"] [source="virtual void DB::tests::ComputeServerRunner_testMinTSOActiveSetSoftLimit_Test::TestBody()"] [thread_id=1]
Group/StoreIngestTest.ConcurrentIngestAndWrite/1 ThreadSanitizer: CHECK failed: sanitizer_deadlock_detector.h:67 "((n_alllocks)) < (((sizeof(all_locks_withcontexts)/sizeof((all_locks_withcontexts)[0]))))" (0x40, 0x40) (tid=1998041)
Use 2023-10-31 latest version, error message: [2023-10-31T18:37:38.841Z] WARNING: ThreadSanitizer: data race (pid=20500) [2023-10-31T18:37:38.841Z] Read of size 8 at 0x7b6000030208 by main thread: [2023-10-31T18:37:38.841Z] #0 memcpy /llvm-project/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:827:5 (gtests_dbms+0x2ba6ce0) [2023-10-31T18:37:38.841Z] #1 core::mem::maybe_uninit::MaybeUninit$LT$T$GT$::assume_init::h2f3b2e6915ec01bd /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/mem/maybe_uninit.rs:627:38 (gtests_dbms+0xfe05c16) [2023-10-31T18:37:38.841Z] #2 core::ptr::read::h5d271dd8cc4a87b2 /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/ptr/mod.rs:1140:9 (gtests_dbms+0xfe05c16) [2023-10-31T18:37:38.841Z] #3 alloc::vec::Vec$LT$T$C$A$GT$::remove::h77cb7968e7379f6d /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/vec/mod.rs:1522:23 (gtests_dbms+0xfe05c16) [2023-10-31T18:37:38.841Z] #4 backtrace::symbolize::gimli::Cache::mapping_for_lib::h8e9c09979b3359f8 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.64/src/symbolize/gimli.rs:312:29 (gtestsdbms+0xfe05c16) [2023-10-31T18:37:38.841Z] #5 backtrace::symbolize::gimli::resolve::$u7b$$u7b$closure$u7d$$u7d$::hc070d62f1c0573e8 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.64/src/symbolize/gimli.rs:354:24 (gtests_dbms+0xfe05c16) [2023-10-31T18:37:38.841Z] #6 backtrace::symbolize::gimli::Cache::with_global::h9110e7656f265813 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.64/src/symbolize/gimli.rs:266:9 (gtests_dbms+0xfe05c16) [2023-10-31T18:37:38.841Z] #7 backtrace::symbolize::gimli::resolve::h56abb7b895e03eed /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.64/src/symbolize/gimli.rs:346:5 (gtests_dbms+0xfe05c16) [2023-10-31T18:37:38.841Z] #8 DB::tests::ComputeServerRunner_aggWithColumnPrune_Test::TestBody() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Flash/tests/gtest_compute_server.cpp:564:1 (gtests_dbms+0x312650a) [2023-10-31T18:37:38.841Z] #9 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 (gtests_dbms+0xc2bd085) [2023-10-31T18:37:38.841Z] #10 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 (gtests_dbms+0xc2bd085) [2023-10-31T18:37:38.841Z] #11 testing::Test::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2517:5 (gtests_dbms+0xc296c25) [2023-10-31T18:37:38.841Z] #12 testing::TestInfo::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2693:11 (gtests_dbms+0xc298454) [2023-10-31T18:37:38.841Z] #13 testing::TestCase::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:2811:28 (gtests_dbms+0xc29911d) [2023-10-31T18:37:38.841Z] #14 testing::internal::UnitTestImpl::RunAllTests() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:5177:43 (gtests_dbms+0xc2a92d0) [2023-10-31T18:37:38.841Z] #15 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 (gtests_dbms+0xc2be525) [2023-10-31T18:37:38.841Z] #16 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 (gtests_dbms+0xc2be525) [2023-10-31T18:37:38.841Z] #17 testing::UnitTest::Run() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/src/gtest.cc:4786:10 (gtests_dbms+0xc2a85b8) [2023-10-31T18:37:38.841Z] #18 RUN_ALL_TESTS() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/googletest/googletest/include/gtest/gtest.h:2341:46 (gtests_dbms+0x5f0b9ee) [2023-10-31T18:37:38.841Z] #19 main /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/TestUtils/gtests_dbms_main.cpp:116:16 (gtests_dbms+0x5f0b9ee) [2023-10-31T18:37:38.841Z] [2023-10-31T18:37:38.841Z] Previous write of size 8 at 0x7b6000030208 by thread T1456: [2023-10-31T18:37:38.841Z] [failed to restore the stack] [2023-10-31T18:37:38.841Z] [2023-10-31T18:37:38.841Z] Location is heap block of size 1024 at 0x7b6000030000 allocated by thread T1450: [2023-10-31T18:37:38.841Z] #0 malloc /llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:655:5 (gtests_dbms+0x2b9ba2d) [2023-10-31T18:37:38.841Z] #1 alloc::alloc::alloc::h9f5d2080c32a5558 /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/alloc.rs:95:14 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #2 alloc::alloc::Global::alloc_impl::h2b2278f322e264e8 /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/alloc.rs:177:73 (gtestsdbms+0xfe05749) [2023-10-31T18:37:38.841Z] #3 $LT$alloc..alloc..Global$u20$as$u20$core..alloc..Allocator$GT$::allocate::h22ac9faea77a7755 /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/alloc.rs:237:9 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #4 alloc::raw_vec::RawVec$LT$T$C$A$GT$::allocate_in::hd28f1e60fbe07f7c /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/raw_vec.rs:185:45 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #5 alloc::raw_vec::RawVec$LT$T$C$A$GT$::with_capacity_in::h73c2188b6b63f3ac /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/raw_vec.rs:131:9 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #6 alloc::vec::Vec$LT$T$C$A$GT$::with_capacity_in::hfdce392da93ae143 /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/vec/mod.rs:673:20 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #7 alloc::vec::Vec$LT$T$GT$::with_capacity::hb875a34790c246fd /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/alloc/src/vec/mod.rs:483:9 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #8 backtrace::symbolize::gimli::Cache::new::h0b35aa2a5cc50baa /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.64/src/symbolize/gimli.rs:247:23 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #9 backtrace::symbolize::gimli::Cache::withglobal::$u7b$$u7b$closure$u7d$$u7d$::h917b603032c4e945 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.64/src/symbolize/gimli.rs:266:48 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #10 core::option::Option$LT$T$GT$::get_or_insert_with::h0869f117ab9c441a /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/option.rs:1546:49 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #11 backtrace::symbolize::gimli::Cache::with_global::h9110e7656f265813 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.64/src/symbolize/gimli.rs:266:11 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #12 backtrace::symbolize::gimli::resolve::h56abb7b895e03eed /root/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.64/src/symbolize/gimli.rs:346:5 (gtests_dbms+0xfe05749) [2023-10-31T18:37:38.841Z] #13 DB::getExceptionMessage(DB::Exception const&, bool, bool) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Common/Exception.cpp:217:74 (gtests_dbms+0xf8c1f5a) [2023-10-31T18:37:38.841Z] #14 DB::getCurrentExceptionMessage(bool, bool) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Common/Exception.cpp:106:23 (gtests_dbms+0xf8c0962) [2023-10-31T18:37:38.841Z] #15 DB::MPPTask::runImpl() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Flash/Mpp/MPPTask.cpp:602:30 (gtests_dbms+0xf054ec0) [2023-10-31T18:37:38.841Z] #16 DB::MPPTask::run()::$_19::operator()() const /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Flash/Mpp/MPPTask.cpp:203:97 (gtests_dbms+0xf056f63) [2023-10-31T18:37:38.841Z] #17 decltype(static_cast<DB::MPPTask::run()::$_19&>(fp)()) std::1::invoke<DB::MPPTask::run()::$_19&>(DB::MPPTask::run()::$_19&) /usr/local/bin/../include/c++/v1/type_traits:3918:1 (gtests_dbms+0xf056f63) [2023-10-31T18:37:38.842Z] #18 void std::1::invoke_void_return_wrapper<void, true>::call<DB::MPPTask::run()::$_19&>(DB::MPPTask::run()::$_19&) /usr/local/bin/../include/c++/v1/functional/invoke.h:61:9 (gtests_dbms+0xf056f63) [2023-10-31T18:37:38.842Z] #19 std::1::function::alloc_func<DB::MPPTask::run()::$_19, std::1::allocator<DB::MPPTask::run()::$_19>, void ()>::operator()() /usr/local/bin/../include/c++/v1/functional/function.h:171:16 (gtests_dbms+0xf056f63) [2023-10-31T18:37:38.842Z] #20 std::1::function::__func<DB::MPPTask::run()::$_19, std::1::allocator<DB::MPPTask::run()::$_19>, void ()>::operator()() /usr/local/bin/../include/c++/v1/functional/function.h:345:12 (gtests_dbms+0xf056f63) [2023-10-31T18:37:38.842Z] #21 std::1::function::__value_func<void ()>::operator()() const /usr/local/bin/../include/c++/v1/functional/function.h:498:16 (gtests_dbms+0xf91ec5d) [2023-10-31T18:37:38.842Z] #22 std::1::function<void ()>::operator()() const /usr/local/bin/../include/c++/v1/functional/function.h:1175:12 (gtests_dbms+0xf91ec5d) [2023-10-31T18:37:38.842Z] #23 decltype(static_cast<std::1::function<void ()> const&>(fp)()) std::1::invoke<std::1::function<void ()> const&>(std::1::function<void ()> const&) /usr/local/bin/../include/c++/v1/type_traits:3918:1 (gtests_dbms+0xf91ec5d) [2023-10-31T18:37:38.842Z] #24 std::1::invoke_result<std::1::function<void ()> const&>::type std::1::invoke<std::1::function<void ()> const&>(std::1::function<void ()> const&) /usr/local/bin/../include/c++/v1/functional/invoke.h:93:12 (gtests_dbms+0xf91ec5d) [2023-10-31T18:37:38.842Z] #25 auto std::1::thread DB::ThreadFactory::newThread<std::1::function<void ()> >(bool, std::__1::basic_string<char, std::1::char_traits, std::1::allocator >, std:: 1::function<void ()>&&)::'lambda'(auto&&...)::operator()<>(auto&&...) const /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Common/ThreadFactory.h:48:26 (gtests_dbms+0xf91ec5d)
[2023-10-31T18:37:38.842Z] #26 decltype(static_cast<std::1::function<void ()>>(fp)()) std::1::invoke<std::1::thread DB::ThreadFactory::newThread<std::1::function<void ()> >(bool, std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std:: 1::function<void ()>&&)::'lambda'(auto&&...)>(std::1::function<void ()>&&) /usr/local/bin/../include/c++/v1/type_traits:3918:1 (gtests_dbms+0xf91e8e7)
[2023-10-31T18:37:38.842Z] #27 void std::1::__thread_execute<std:: 1::unique_ptr<std::1::thread_struct, std::1::default_delete >, std:: 1::thread DB::ThreadFactory::newThread<std::1::function<void ()> >(bool, std::1::basic_string<char, std::1::char_traits, std::1::allocator >, std:: 1::function<void ()>&&)::'lambda'(auto&&...)>(std::1::tuple<std::1::function<void ()>, std::1::thread DB::ThreadFactory::newThread<std::1::function<void ()> >(bool, std::__1::basic_string<char, std:: 1::char_traits, std::1::allocator >, std:: 1::function<void ()>&&)::'lambda'(auto&&...)>&, std::1::tuple_indices<>) /usr/local/bin/../include/c++/v1/thread:280:5 (gtests_dbms+0xf91e8e7)
[2023-10-31T18:37:38.842Z] #28 void std::1::thread_proxy<std::1::tuple<std::1::unique_ptr<std::1::thread_struct, std::1::default_delete >, std:: 1::thread DB::ThreadFactory::newThread<std::1::function<void ()> >(bool, std::1::basic_string<char, std::__1::char_traits, std::1::allocator >, std:: 1::function<void ()>&&)::'lambda'(auto&&...)> >(void ) /usr/local/bin/../include/c++/v1/thread:291:5 (gtests_dbms+0xf91e8e7)