-
Notifications
You must be signed in to change notification settings - Fork 8.3k
ThreadSanitizer: data race (STID: 1367-305e) #100130
Copy link
Copy link
Open
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzerssanitizertestingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI
Description
Important: This issue was automatically generated and is used by CI for matching failures. DO NOT modify the body content. DO NOT remove labels.
Test name: ThreadSanitizer: data race (STID: 1367-305e)
CI report: AST fuzzer (amd_tsan)
Failing test history: cidb
Test output:
Error:
WARNING: ThreadSanitizer: data race (pid=629)
Write of size 8 at 0x7210000b2310 by thread T760 (mutexes: write M0):
---
Stack trace:
#0 realloc<> ci/tmp/build/./src/Common/PODArray.h:170:17 (clickhouse+0xa55be05) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#1 void DB::PODArrayBase<8ul, 4096ul, Allocator<false, false>, 63ul, 64ul>::reallocPowerOfTwoElements<>(unsigned long) ci/tmp/build/./src/Common/PODArray.h:206:9 (clickhouse+0xa55be05)
#2 void DB::PODArrayBase<8ul, 4096ul, Allocator<false, false>, 63ul, 64ul>::reserve<>(unsigned long) ci/tmp/build/./src/Common/PODArray.h:244:13 (clickhouse+0x2475bb30) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#3 DB::ColumnString::doInsertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) ci/tmp/build/./src/Columns/ColumnString.cpp:139:13 (clickhouse+0x2475bb30)
#4 DB::IColumn::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) ci/tmp/build/./src/Columns/IColumn.h:264:9 (clickhouse+0x24889aa2) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#5 DB::ColumnVariant::insertRangeFromImpl(DB::IColumn const&, unsigned long, unsigned long, std::__1::vector<char8_t, std::__1::allocator<char8_t>> const*, char8_t const*) ci/tmp/build/./src/Columns/ColumnVariant.cpp:594:40 (clickhouse+0x24889aa2)
#6 DB::ColumnVariant::doInsertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) ci/tmp/build/./src/Columns/ColumnVariant.cpp:646:5 (clickhouse+0x2488a576) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#7 DB::IColumn::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) ci/tmp/build/./src/Columns/IColumn.h:264:9 (clickhouse+0x2442ad6c) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#8 DB::ColumnArray::doInsertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) ci/tmp/build/./src/Columns/ColumnArray.cpp:638:15 (clickhouse+0x2442ad6c)
#9 DB::IColumn::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) ci/tmp/build/./src/Columns/IColumn.h:264:9 (clickhouse+0x201db5f2) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#10 DB::Set::appendSetElements(DB::SetKeyColumns&) ci/tmp/build/./src/Interpreters/Set.cpp:285:30 (clickhouse+0x201db5f2)
#11 DB::Set::insertFromColumns(std::__1::vector<COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::immutable_ptr<DB::IColumn>>> const&) ci/tmp/build/./src/Interpreters/Set.cpp:226:13 (clickhouse+0x201da7fd) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#12 DB::RuntimeFilterBase<false>::insert(COW<DB::IColumn>::immutable_ptr<DB::IColumn>) ci/tmp/build/./src/Processors/QueryPlan/RuntimeFilterLookup.h:128:23 (clickhouse+0x26dbd12d) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#13 DB::ExactContainsRuntimeFilter::merge(DB::IRuntimeFilter const*) ci/tmp/build/./src/Processors/QueryPlan/RuntimeFilterLookup.cpp:116:5 (clickhouse+0x26ee8042) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#14 DB::RuntimeFilterLookup::add(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::unique_ptr<DB::IRuntimeFilter, std::__1::default_delete<DB::IRuntimeFilter>>) ci/tmp/build/./src/Processors/QueryPlan/RuntimeFilterLookup.cpp:348:21 (clickhouse+0x26eece0e) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#15 DB::BuildRuntimeFilterTransform::finish() ci/tmp/build/./src/Processors/Transforms/BuildRuntimeFilterTransform.cpp:111:20 (clickhouse+0x26dbbe59) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#16 DB::BuildRuntimeFilterTransform::prepare() ci/tmp/build/./src/Processors/Transforms/BuildRuntimeFilterTransform.cpp:86:9 (clickhouse+0x26dbbd6b) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#17 DB::IProcessor::prepare(std::__1::vector<unsigned long, std::__1::allocator<unsigned long>> const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>> const&) ci/tmp/build/./src/Processors/IProcessor.h:187:128 (clickhouse+0x19fd94e2) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#18 DB::ExecutingGraph::updateNode(unsigned long, std::__1::queue<DB::ExecutingGraph::Node*, boost::container::devector<DB::ExecutingGraph::Node*, AllocatorWithMemoryTracking<DB::ExecutingGraph::Node*>, void>>&, std::__1::queue<DB::ExecutingGraph::Node*, boost::container::devector<DB::ExecutingGraph::Node*, AllocatorWithMemoryTracking<DB::ExecutingGraph::Node*>, void>>&) ci/tmp/build/./src/Processors/Executors/ExecutingGraph.cpp:286:59 (clickhouse+0x264e374e) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#19 DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::__1::atomic<bool>*) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:371:38 (clickhouse+0x264da9d6) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#20 DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*) ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:279:5 (clickhouse+0x264dcd21) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#21 DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0::operator()() const ci/tmp/build/./src/Processors/Executors/PipelineExecutor.cpp:565:17 (clickhouse+0x264dcd21)
#22 std::__1::__invoke_result_impl<void, DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>::type std::__1::__invoke[abi:fe210105]<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87:27 (clickhouse+0x264dcd21)
#23 void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:fe210105]<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:342:5 (clickhouse+0x264dcd21)
#24 void std::__1::__invoke_r[abi:fe210105]<void, DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348:10 (clickhouse+0x264dcd21)
#25 void std::__1::__function::__policy_func<void ()>::__call_func[abi:fe210105]<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0>(std::__1::__function::__policy_storage const*) ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:450:12 (clickhouse+0x264dcd21)
#26 std::__1::__function::__policy_func<void ()>::operator()[abi:fe210105]() const ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:508:12 (clickhouse+0x1609afd6) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#27 std::__1::function<void ()>::operator()() const ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:772:10 (clickhouse+0x1609afd6)
#28 ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::worker() ci/tmp/build/./src/Common/ThreadPool.cpp:799:17 (clickhouse+0x1609afd6)
#29 std::__1::__invoke_result_impl<void, void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&>::type std::__1::__invoke[abi:fe210105]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h (clickhouse+0x160a47c0) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#30 decltype(auto) std::__1::__apply_tuple_impl[abi:fe210105]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), std::__1::tuple<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>&, 0ul>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), std::__1::tuple<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>&, std::__1::__tuple_indices<0ul>) ci/tmp/build/./contrib/llvm-project/libcxx/include/tuple:1380:5 (clickhouse+0x160a47c0)
#31 decltype(auto) std::__1::apply[abi:fe210105]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), std::__1::tuple<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>&>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), std::__1::tuple<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>&) ci/tmp/build/./contrib/llvm-project/libcxx/include/tuple:1384:5 (clickhouse+0x160a47c0)
#32 ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&)::'lambda'()::operator()() ci/tmp/build/./src/Common/ThreadPool.h:312:13 (clickhouse+0x160a47c0)
#33 std::__1::__invoke_result_impl<void, ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&)::'lambda'()&>::type std::__1::__invoke[abi:fe210105]<ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&)::'lambda'()&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87:27 (clickhouse+0x160a46e1) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#34 void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:fe210105]<ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&)::'lambda'()&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:342:5 (clickhouse+0x160a46e1)
#35 void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*std::__1::__invoke_r[abi:fe210105]<void, ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&)::'lambda'()&>(ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&))() ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348:10 (clickhouse+0x160a46e1)
#36 void std::__1::__function::__policy_func<void ()>::__call_func[abi:fe210105]<ThreadFromGlobalPoolImpl<false, true>::ThreadFromGlobalPoolImpl<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&&)::'lambda'()>(std::__1::__function::__policy_storage const*) ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:450:12 (clickhouse+0x160a46e1)
#37 std::__1::__function::__policy_func<void ()>::operator()[abi:fe210105]() const ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:508:12 (clickhouse+0x16096d91) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#38 std::__1::function<void ()>::operator()() const ci/tmp/build/./contrib/llvm-project/libcxx/include/__functional/function.h:772:10 (clickhouse+0x16096d91)
#39 ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::worker() ci/tmp/build/./src/Common/ThreadPool.cpp:809:17 (clickhouse+0x16096d91)
#40 std::__1::__invoke_result_impl<void, void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>::type std::__1::__invoke[abi:fe210105]<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) ci/tmp/build/./contrib/llvm-project/libcxx/include/__type_traits/invoke.h (clickhouse+0x160a10db) (BuildId: c78b38e9c57e9e93fa1cb6739b5efb8431d7d9de)
#41 void std::__1::__thread_execute[abi:fe210105]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, 2ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>&, std::__1::__tuple_indices<2ul>) ci/tmp/build/./contrib/llvm-project/libcxx/include/__thread/thread.h:159:3 (clickhouse+0x160a10db)
#42 void* std::__1::__thread_proxy[abi:fe210105]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>>(void*) ci/tmp/build/./contrib/llvm-project/libcxx/include/__thread/thread.h:168:3 (clickhouse+0x160a10db)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzerssanitizertestingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI