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

tsan warnings of accuracy_diff_for_test #5853

Closed
bestwoody opened this issue Sep 13, 2022 · 0 comments · Fixed by #5854
Closed

tsan warnings of accuracy_diff_for_test #5853

bestwoody opened this issue Sep 13, 2022 · 0 comments · Fixed by #5854
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@bestwoody
Copy link
Contributor

Enhancement

tsan warnings of accuracy_diff_for_test
[2022-09-12T18:06:36.757Z] WARNING: ThreadSanitizer: data race (pid=26598)
[2022-09-12T18:06:36.757Z] Write of size 8 at 0x7b1c00022938 by thread T2215 (mutexes: write M959120966619767552):
[2022-09-12T18:06:36.757Z] #0 MemoryTracker::setAccuracyDiffForTest(double) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Common/MemoryTracker.h:110:72 (gtests_dbms+0xb6c3e52)
[2022-09-12T18:06:36.757Z] #1 DB::ProcessList::insert(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, DB::IAST const*, DB::ClientInfo const&, DB::Settings const&) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Interpreters/ProcessList.cpp:167:35 (gtests_dbms+0xb6c3e52)
[2022-09-12T18:06:36.757Z] #2 DB::(anonymous namespace)::executeQueryImpl(DB::IQuerySource&, DB::Context&, bool, DB::QueryProcessingStage::Enum) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Interpreters/executeQuery.cpp:227:59 (gtests_dbms+0xb68bbb4)
[2022-09-12T18:06:36.757Z] #3 DB::executeQuery(DB::IQuerySource&, DB::Context&, bool, DB::QueryProcessingStage::Enum) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Interpreters/executeQuery.cpp:446:38 (gtests_dbms+0xb68dbca)
[2022-09-12T18:06:36.757Z] #4 DB::executeQuery(DB::Context&, bool, DB::QueryProcessingStage::Enum) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Flash/executeQuery.cpp:30:16 (gtests_dbms+0xbe0acff)
[2022-09-12T18:06:36.757Z] #5 DB::MPPTask::preprocess() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Flash/Mpp/MPPTask.cpp:360:5 (gtests_dbms+0xbf844b8)
[2022-09-12T18:06:36.757Z] #6 DB::MPPTask::runImpl() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Flash/Mpp/MPPTask.cpp:393:9 (gtests_dbms+0xbf84cb5)
[2022-09-12T18:06:36.757Z] #7 DB::MPPTask::run()::$_13::operator()() const /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Flash/Mpp/MPPTask.cpp:147:97 (gtests_dbms+0xbf88aa3)
[2022-09-12T18:06:36.757Z] #8 decltype(static_castDB::MPPTask::run()::$_13&(fp)()) std::__1::__invokeDB::MPPTask::run()::$_13&(DB::MPPTask::run()::$_13&) /usr/local/bin/../include/c++/v1/type_traits:3918:1 (gtests_dbms+0xbf88aa3)
[2022-09-12T18:06:36.757Z] #9 void std::__1::__invoke_void_return_wrapper<void, true>::__callDB::MPPTask::run()::$_13&(DB::MPPTask::run()::$_13&) /usr/local/bin/../include/c++/v1/__functional/invoke.h:61:9 (gtests_dbms+0xbf88aa3)
[2022-09-12T18:06:36.757Z] #10 std::__1::__function::__alloc_func<DB::MPPTask::run()::$_13, std::__1::allocatorDB::MPPTask::run()::$_13, void ()>::operator()() /usr/local/bin/../include/c++/v1/__functional/function.h:171:16 (gtests_dbms+0xbf88aa3)
[2022-09-12T18:06:36.757Z] #11 std::__1::__function::__func<DB::MPPTask::run()::$_13, std::__1::allocatorDB::MPPTask::run()::$_13, void ()>::operator()() /usr/local/bin/../include/c++/v1/__functional/function.h:345:12 (gtests_dbms+0xbf88aa3)
[2022-09-12T18:06:36.757Z] #12 std::__1::__function::__value_func<void ()>::operator()() const /usr/local/bin/../include/c++/v1/__functional/function.h:498:16 (gtests_dbms+0xcc1bd7d)
[2022-09-12T18:06:36.757Z] #13 std::__1::function<void ()>::operator()() const /usr/local/bin/../include/c++/v1/__functional/function.h:1175:12 (gtests_dbms+0xcc1bd7d)
[2022-09-12T18:06:36.757Z] #14 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+0xcc1bd7d)
[2022-09-12T18:06:36.757Z] #15 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+0xcc1bd7d)
[2022-09-12T18:06:36.757Z] #16 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:47:20 (gtests_dbms+0xcc1bd7d)
[2022-09-12T18:06:36.757Z] #17 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+0xcc1ba07)
[2022-09-12T18:06:36.757Z] #18 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, 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+0xcc1ba07)
[2022-09-12T18:06:36.757Z] #19 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, 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+0xcc1ba07)

@bestwoody bestwoody added the type/enhancement The issue or PR belongs to an enhancement. label Sep 13, 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