We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
introduce by #9003
[2024-05-14T18:08:54.907Z] set thread name ThreadMemoryTracer is too long and will be truncated by system [2024-05-14T18:08:54.907Z] ================== [2024-05-14T18:08:54.907Z] WARNING: ThreadSanitizer: data race (pid=25225) [2024-05-14T18:08:54.907Z] Read of size 8 at 0x000014ca2680 by main thread: [2024-05-14T18:08:54.907Z] #0 std::__1::ios_base::width() const /usr/local/bin/../include/c++/v1/ios:523:12 (gtests_dbms+0x2c78509) [2024-05-14T18:08:54.907Z] #1 std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char) /usr/local/bin/../include/c++/v1/locale:1396:29 (gtests_dbms+0x2c78509) [2024-05-14T18:08:54.907Z] #2 std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) /usr/local/bin/../include/c++/v1/ostream:718:17 (gtests_dbms+0x2c783e1) [2024-05-14T18:08:54.907Z] #3 std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::operator<<<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /usr/local/bin/../include/c++/v1/ostream:1041:12 (gtests_dbms+0x111be873) [2024-05-14T18:08:54.907Z] #4 Poco::ConsoleChannel::log(Poco::Message const&) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/poco/Foundation/src/ConsoleChannel.cpp:47:7 (gtests_dbms+0x111be873) [2024-05-14T18:08:54.907Z] #5 Poco::FormattingChannel::log(Poco::Message const&) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/poco/Foundation/src/FormattingChannel.cpp:91:15 (gtests_dbms+0x1120183e) [2024-05-14T18:08:54.907Z] #6 Poco::Logger::log(Poco::Message const&) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/contrib/poco/Foundation/src/Logger.cpp:85:14 (gtests_dbms+0x1120d9e1) [2024-05-14T18:08:54.908Z] #7 DB::Logger::log(Poco::Message&) const /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Common/Logger.h:74:58 (gtests_dbms+0x63fa321) [2024-05-14T18:08:54.908Z] #8 DB::tests::TiFlashTestEnv::addGlobalContext(DB::Settings const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, DB::PageStorageRunMode, unsigned long) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/TestUtils/TiFlashTestEnv.cpp:162:5 (gtests_dbms+0x63fa321) [2024-05-14T18:08:54.908Z] #9 DB::tests::TiFlashTestEnv::initializeGlobalContext(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, DB::PageStorageRunMode, unsigned long) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/TestUtils/TiFlashTestEnv.cpp:102:5 (gtests_dbms+0x63f95d8) [2024-05-14T18:08:54.908Z] #10 main /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/TestUtils/gtests_dbms_main.cpp:71:5 (gtests_dbms+0x6104a4f) [2024-05-14T18:08:54.908Z] [2024-05-14T18:08:54.908Z] Previous write of size 8 at 0x000014ca2680 by thread T5: [2024-05-14T18:08:54.908Z] #0 std::__1::ios_base::width(long) /usr/local/bin/../include/c++/v1/ios:531:14 (gtests_dbms+0x2c78623) [2024-05-14T18:08:54.908Z] #1 std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char) /usr/local/bin/../include/c++/v1/locale:1428:11 (gtests_dbms+0x2c78623) [2024-05-14T18:08:54.908Z] #2 std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) /usr/local/bin/../include/c++/v1/ostream:718:17 (gtests_dbms+0x2c783e1) [2024-05-14T18:08:54.908Z] #3 std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*) /usr/local/bin/../include/c++/v1/ostream:857:12 (gtests_dbms+0xfcf885e) [2024-05-14T18:08:54.908Z] #4 setThreadName(char const*) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Common/setThreadName.cpp:43:19 (gtests_dbms+0xfcf885e) [2024-05-14T18:08:54.908Z] #5 DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap()::$_0::operator()() const /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Storages/KVStore/FFI/JointThreadAllocInfo.cpp:30:9 (gtests_dbms+0xc3e8a3f) [2024-05-14T18:08:54.908Z] #6 decltype(static_cast<DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap()::$_0>(fp)()) std::__1::__invoke<DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap()::$_0>(DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap()::$_0&&) /usr/local/bin/../include/c++/v1/type_traits:3918:1 (gtests_dbms+0xc3e8a3f) [2024-05-14T18:08:54.908Z] #7 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap()::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap()::$_0>&, std::__1::__tuple_indices<>) /usr/local/bin/../include/c++/v1/thread:280:5 (gtests_dbms+0xc3e8a3f) [2024-05-14T18:08:54.908Z] #8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap()::$_0> >(void*) /usr/local/bin/../include/c++/v1/thread:291:5 (gtests_dbms+0xc3e8a3f) [2024-05-14T18:08:54.908Z] [2024-05-14T18:08:54.908Z] Location is global 'std::__1::cerr' of size 160 at 0x000014ca2660 (gtests_dbms+0x000014ca2680) [2024-05-14T18:08:54.908Z] [2024-05-14T18:08:54.908Z] Thread T5 'ThreadMemoryTra' (tid=25231, running) created by main thread at: [2024-05-14T18:08:54.908Z] #0 pthread_create /llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:977:3 (gtests_dbms+0x2bf8c7d) [2024-05-14T18:08:54.908Z] #1 std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /usr/local/bin/../include/c++/v1/__threading_support:514:10 (gtests_dbms+0xc3e6ee0) [2024-05-14T18:08:54.908Z] #2 std::__1::thread::thread<DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap()::$_0, void>(DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap()::$_0&&) /usr/local/bin/../include/c++/v1/thread:307:16 (gtests_dbms+0xc3e6ee0) [2024-05-14T18:08:54.908Z] #3 DB::JointThreadInfoJeallocMap::JointThreadInfoJeallocMap() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Storages/KVStore/FFI/JointThreadAllocInfo.cpp:29:29 (gtests_dbms+0xc3e6ee0) [2024-05-14T18:08:54.908Z] #4 DB::JointThreadInfoJeallocMap* std::__1::construct_at<DB::JointThreadInfoJeallocMap, DB::JointThreadInfoJeallocMap*>(DB::JointThreadInfoJeallocMap*) /usr/local/bin/../include/c++/v1/__memory/construct_at.h:37:38 (gtests_dbms+0xd93eaa4) [2024-05-14T18:08:54.908Z] #5 void std::__1::allocator_traits<std::__1::allocator<DB::JointThreadInfoJeallocMap> >::construct<DB::JointThreadInfoJeallocMap, void, void>(std::__1::allocator<DB::JointThreadInfoJeallocMap>&, DB::JointThreadInfoJeallocMap*) /usr/local/bin/../include/c++/v1/__memory/allocator_traits.h:298:9 (gtests_dbms+0xd93eaa4) [2024-05-14T18:08:54.908Z] #6 std::__1::__shared_ptr_emplace<DB::JointThreadInfoJeallocMap, std::__1::allocator<DB::JointThreadInfoJeallocMap> >::__shared_ptr_emplace<>(std::__1::allocator<DB::JointThreadInfoJeallocMap>) /usr/local/bin/../include/c++/v1/__memory/shared_ptr.h:296:9 (gtests_dbms+0xd93eaa4) [2024-05-14T18:08:54.908Z] #7 std::__1::shared_ptr<DB::JointThreadInfoJeallocMap> std::__1::allocate_shared<DB::JointThreadInfoJeallocMap, std::__1::allocator<DB::JointThreadInfoJeallocMap>, void>(std::__1::allocator<DB::JointThreadInfoJeallocMap> const&) /usr/local/bin/../include/c++/v1/__memory/shared_ptr.h:1106:55 (gtests_dbms+0xd93eaa4) [2024-05-14T18:08:54.908Z] #8 std::__1::shared_ptr<DB::JointThreadInfoJeallocMap> std::__1::make_shared<DB::JointThreadInfoJeallocMap, void>() /usr/local/bin/../include/c++/v1/__memory/shared_ptr.h:1115:12 (gtests_dbms+0xd93eaa4) [2024-05-14T18:08:54.908Z] #9 DB::Context::initializeJointThreadInfoJeallocMap() /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/Interpreters/Context.cpp:1769:47 (gtests_dbms+0xd93eaa4) [2024-05-14T18:08:54.908Z] #10 DB::tests::TiFlashTestEnv::addGlobalContext(DB::Settings const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, DB::PageStorageRunMode, unsigned long) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/TestUtils/TiFlashTestEnv.cpp:161:21 (gtests_dbms+0x63f9fb1) [2024-05-14T18:08:54.908Z] #11 DB::tests::TiFlashTestEnv::initializeGlobalContext(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, DB::PageStorageRunMode, unsigned long) /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/TestUtils/TiFlashTestEnv.cpp:102:5 (gtests_dbms+0x63f95d8) [2024-05-14T18:08:54.908Z] #12 main /home/jenkins/agent/workspace/tiflash-sanitizer-daily/tiflash/dbms/src/TestUtils/gtests_dbms_main.cpp:71:5 (gtests_dbms+0x6104a4f) [2024-05-14T18:08:54.908Z] [2024-05-14T18:08:54.908Z] SUMMARY: ThreadSanitizer: data race /usr/local/bin/../include/c++/v1/ios:523:12 in std::__1::ios_base::width() const
The text was updated successfully, but these errors were encountered:
*: Fix too long thread name make TSAN failed to run (#9044)
d1d990f
close #9043
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
introduce by #9003
4. What is your TiFlash version? (Required)
The text was updated successfully, but these errors were encountered: