Skip to content

AddressSanitizer: attempting double-free in DB::ColumnVector<char8_t>::shrinkToFit #85404

@PedroTadim

Description

@PedroTadim

Describe the bug

Seen in this run: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=85366&sha=c49fbfb2773456c64656db295120ebfe0e742d5f&name_0=PR&name_1=AST+fuzzer+%28arm_asan%29

How to reproduce

I have tried to reduce the script, but no success. I have an Intel CPU, maybe is it ARM related?

Error message and/or stacktrace

Here is the stack trace:

==602==ERROR: AddressSanitizer: attempting double-free on 0x521007c81d00 in thread T718 (QueryPipelineEx):
    #0 0xab41641e431c in realloc (clickhouse+0xd91431c) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b)
    #1 0xab4171aa2880 in Allocator<false, false>::realloc(void*, unsigned long, unsigned long, unsigned long) src/Common/Allocator.cpp:178:26
    #2 0xab41851bd484 in void DB::PODArrayBase<1ul, 4096ul, Allocator<false, false>, 63ul, 64ul>::realloc<>(unsigned long) src/Common/PODArray.h:153:25
    #3 0xab41851bd484 in void DB::PODArrayBase<1ul, 4096ul, Allocator<false, false>, 63ul, 64ul>::shrink_to_fit<>() src/Common/PODArray.h:249:9
    #4 0xab41851bd484 in DB::ColumnVector<char8_t>::shrinkToFit() src/Columns/ColumnVector.h:188:14
    #5 0xab41867917b8 in DB::MergeTreeReadTask::read() src/Storages/MergeTree/MergeTreeReadTask.cpp:258:40
    #6 0xab41867abd3c in DB::MergeTreeSelectProcessor::read() src/Storages/MergeTree/MergeTreeSelectProcessor.cpp:228:31
    #7 0xab4187e1efd4 in DB::MergeTreeSource::tryGenerate() src/Storages/MergeTree/MergeTreeSource.cpp:229:41
    #8 0xab41872d4610 in DB::ISource::work() src/Processors/ISource.cpp:110:26
    #9 0xab418730fa8c in DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) src/Processors/Executors/ExecutionThreadContext.cpp:53:26
    #10 0xab418730fa8c in DB::ExecutionThreadContext::executeTask() src/Processors/Executors/ExecutionThreadContext.cpp:102:9
    #11 0xab41872f123c in DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::__1::atomic<bool>*) src/Processors/Executors/PipelineExecutor.cpp:350:26
    #12 0xab41872f456c in DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*) src/Processors/Executors/PipelineExecutor.cpp:278:5
    #13 0xab41872f456c in DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0::operator()() const src/Processors/Executors/PipelineExecutor.cpp:561:17
    #14 0xab41872f456c in decltype(std::declval<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>()()) std::__1::__invoke[abi:ne190107]<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
    #15 0xab41872f456c in void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:ne190107]<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:224:5
    #16 0xab41872f456c in std::__1::__function::__default_alloc_func<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0, void ()>::operator()[abi:ne190107]() contrib/llvm-project/libcxx/include/__functional/function.h:210:12
    #17 0xab41872f456c in void std::__1::__function::__policy_invoker<void ()>::__call_impl[abi:ne190107]<std::__1::__function::__default_alloc_func<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0, void ()>>(std::__1::__function::__policy_storage const*) contrib/llvm-project/libcxx/include/__functional/function.h:610:12
    #18 0xab4171dc0df4 in std::__1::__function::__policy_func<void ()>::operator()[abi:ne190107]() const contrib/llvm-project/libcxx/include/__functional/function.h:716:12
    #19 0xab4171dc0df4 in std::__1::function<void ()>::operator()() const contrib/llvm-project/libcxx/include/__functional/function.h:989:10
    #20 0xab4171dc0df4 in ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::worker() src/Common/ThreadPool.cpp:802:17
    #21 0xab4171dcc998 in decltype(*std::declval<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&>().*std::declval<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)()>()()) std::__1::__invoke[abi:ne190107]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&, void>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117:25
    #22 0xab4171dcc998 in decltype(auto) std::__1::__apply_tuple_impl[abi:ne190107]<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>) contrib/llvm-project/libcxx/include/tuple:1354:5
    #23 0xab4171dcc998 in decltype(auto) std::__1::apply[abi:ne190107]<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*>&) contrib/llvm-project/libcxx/include/tuple:1358:5
    #24 0xab4171dcc998 in 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()() src/Common/ThreadPool.h:312:13
    #25 0xab4171dbc0b0 in std::__1::__function::__policy_func<void ()>::operator()[abi:ne190107]() const contrib/llvm-project/libcxx/include/__functional/function.h:716:12
    #26 0xab4171dbc0b0 in std::__1::function<void ()>::operator()() const contrib/llvm-project/libcxx/include/__functional/function.h:989:10
    #27 0xab4171dbc0b0 in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::worker() src/Common/ThreadPool.cpp:812:17
    #28 0xab4171dc8aac in decltype(*std::declval<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>().*std::declval<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)()>()()) std::__1::__invoke[abi:ne190107]<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, void>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117:25
    #29 0xab4171dc8aac in void std::__1::__thread_execute[abi:ne190107]<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>) contrib/llvm-project/libcxx/include/__thread/thread.h:192:3
    #30 0xab4171dc8aac in void* std::__1::__thread_proxy[abi:ne190107]<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*) contrib/llvm-project/libcxx/include/__thread/thread.h:201:3
    #31 0xab41641e1830 in asan_thread_start(void*) crtstuff.c
    #32 0xff985f5dd5b4 in start_thread nptl/pthread_create.c:442:8
    #33 0xff985f645ed8  misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:79

0x521007c81d00 is located 0 bytes inside of 4096-byte region [0x521007c81d00,0x521007c82d00)
freed by thread T713 (QueryPipelineEx) here:
    #0 0xab41641e431c in realloc (clickhouse+0xd91431c) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b)
    #1 0xab4171aa2880 in Allocator<false, false>::realloc(void*, unsigned long, unsigned long, unsigned long) src/Common/Allocator.cpp:178:26
    #2 0xab41851bd484 in void DB::PODArrayBase<1ul, 4096ul, Allocator<false, false>, 63ul, 64ul>::realloc<>(unsigned long) src/Common/PODArray.h:153:25
    #3 0xab41851bd484 in void DB::PODArrayBase<1ul, 4096ul, Allocator<false, false>, 63ul, 64ul>::shrink_to_fit<>() src/Common/PODArray.h:249:9
    #4 0xab41851bd484 in DB::ColumnVector<char8_t>::shrinkToFit() src/Columns/ColumnVector.h:188:14
    #5 0xab41867917b8 in DB::MergeTreeReadTask::read() src/Storages/MergeTree/MergeTreeReadTask.cpp:258:40
    #6 0xab41867abd3c in DB::MergeTreeSelectProcessor::read() src/Storages/MergeTree/MergeTreeSelectProcessor.cpp:228:31
    #7 0xab4187e1efd4 in DB::MergeTreeSource::tryGenerate() src/Storages/MergeTree/MergeTreeSource.cpp:229:41
    #8 0xab41872d4610 in DB::ISource::work() src/Processors/ISource.cpp:110:26
    #9 0xab418730fa8c in DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) src/Processors/Executors/ExecutionThreadContext.cpp:53:26
    #10 0xab418730fa8c in DB::ExecutionThreadContext::executeTask() src/Processors/Executors/ExecutionThreadContext.cpp:102:9
    #11 0xab41872f123c in DB::PipelineExecutor::executeStepImpl(unsigned long, DB::IAcquiredSlot*, std::__1::atomic<bool>*) src/Processors/Executors/PipelineExecutor.cpp:350:26
    #12 0xab41872f456c in DB::PipelineExecutor::executeSingleThread(unsigned long, DB::IAcquiredSlot*) src/Processors/Executors/PipelineExecutor.cpp:278:5
    #13 0xab41872f456c in DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0::operator()() const src/Processors/Executors/PipelineExecutor.cpp:561:17
    #14 0xab41872f456c in decltype(std::declval<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>()()) std::__1::__invoke[abi:ne190107]<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
    #15 0xab41872f456c in void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:ne190107]<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&>(DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:224:5
    #16 0xab41872f456c in std::__1::__function::__default_alloc_func<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0, void ()>::operator()[abi:ne190107]() contrib/llvm-project/libcxx/include/__functional/function.h:210:12
    #17 0xab41872f456c in void std::__1::__function::__policy_invoker<void ()>::__call_impl[abi:ne190107]<std::__1::__function::__default_alloc_func<DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>)::$_0, void ()>>(std::__1::__function::__policy_storage const*) contrib/llvm-project/libcxx/include/__functional/function.h:610:12
    #18 0xab4171dc0df4 in std::__1::__function::__policy_func<void ()>::operator()[abi:ne190107]() const contrib/llvm-project/libcxx/include/__functional/function.h:716:12
    #19 0xab4171dc0df4 in std::__1::function<void ()>::operator()() const contrib/llvm-project/libcxx/include/__functional/function.h:989:10
    #20 0xab4171dc0df4 in ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::worker() src/Common/ThreadPool.cpp:802:17
    #21 0xab4171dcc998 in decltype(*std::declval<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&>().*std::declval<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)()>()()) std::__1::__invoke[abi:ne190107]<void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&, void>(void (ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::*&)(), ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool*&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117:25
    #22 0xab4171dcc998 in decltype(auto) std::__1::__apply_tuple_impl[abi:ne190107]<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>) contrib/llvm-project/libcxx/include/tuple:1354:5
    #23 0xab4171dcc998 in decltype(auto) std::__1::apply[abi:ne190107]<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*>&) contrib/llvm-project/libcxx/include/tuple:1358:5
    #24 0xab4171dcc998 in 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()() src/Common/ThreadPool.h:312:13
    #25 0xab4171dbc0b0 in std::__1::__function::__policy_func<void ()>::operator()[abi:ne190107]() const contrib/llvm-project/libcxx/include/__functional/function.h:716:12
    #26 0xab4171dbc0b0 in std::__1::function<void ()>::operator()() const contrib/llvm-project/libcxx/include/__functional/function.h:989:10
    #27 0xab4171dbc0b0 in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::worker() src/Common/ThreadPool.cpp:812:17
    #28 0xab4171dc8aac in decltype(*std::declval<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>().*std::declval<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)()>()()) std::__1::__invoke[abi:ne190107]<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, void>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117:25
    #29 0xab4171dc8aac in void std::__1::__thread_execute[abi:ne190107]<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>) contrib/llvm-project/libcxx/include/__thread/thread.h:192:3
    #30 0xab4171dc8aac in void* std::__1::__thread_proxy[abi:ne190107]<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*) contrib/llvm-project/libcxx/include/__thread/thread.h:201:3
    #31 0xab41641e1830 in asan_thread_start(void*) crtstuff.c
    #32 0xff985f645ed8  misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:79

previously allocated by thread T8 (TCPHandler) here:
    #0 0xab41641e3f6c in malloc (clickhouse+0xd913f6c) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b)
    #1 0xab4171aa20e0 in void* (anonymous namespace)::allocNoTrack<false, false>(unsigned long, unsigned long) src/Common/Allocator.cpp:86:19
    #2 0xab4171aa20e0 in Allocator<false, false>::alloc(unsigned long, unsigned long) src/Common/Allocator.cpp:133:18
    #3 0xab41642443d4 in void DB::PODArrayBase<1ul, 4096ul, Allocator<false, false>, 63ul, 64ul>::reserveForNextSize<>() (clickhouse+0xd9743d4) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b)
    #4 0xab41851be22c in void DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 63ul, 64ul>::push_back<char8_t>(char8_t&&) src/Common/PODArray.h:429:19
    #5 0xab41851be22c in DB::ColumnVector<char8_t>::insert(DB::Field const&) src/Columns/ColumnVector.h:243:14
    #6 0xab417c4bea5c in DB::IDataType::createColumnConst(unsigned long, DB::Field const&) const src/DataTypes/IDataType.cpp:90:13
    #7 0xab417cc7077c in DB::ConstantValue::ConstantValue(DB::Field const&, std::__1::shared_ptr<DB::IDataType const>) src/Analyzer/ConstantValue.h:20:30
    #8 0xab417cc7077c in DB::ConstantNode::ConstantNode(DB::Field, std::__1::shared_ptr<DB::IDataType const>) src/Analyzer/ConstantNode.cpp:46:20
    #9 0xab417cc70b08 in DB::ConstantNode::ConstantNode(DB::Field) src/Analyzer/ConstantNode.cpp:50:7
    #10 0xab417cdcfd24 in DB::ConstantNode* std::__1::construct_at[abi:ne190107]<DB::ConstantNode, DB::Field const&, DB::ConstantNode*>(DB::ConstantNode*, DB::Field const&) contrib/llvm-project/libcxx/include/__memory/construct_at.h:41:46
    #11 0xab417cdcfd24 in DB::ConstantNode* std::__1::__construct_at[abi:ne190107]<DB::ConstantNode, DB::Field const&, DB::ConstantNode*>(DB::ConstantNode*, DB::Field const&) contrib/llvm-project/libcxx/include/__memory/construct_at.h:49:10
    #12 0xab417cdcfd24 in void std::__1::allocator_traits<std::__1::allocator<DB::ConstantNode>>::construct[abi:ne190107]<DB::ConstantNode, DB::Field const&, void, 0>(std::__1::allocator<DB::ConstantNode>&, DB::ConstantNode*, DB::Field const&) contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:328:5
    #13 0xab417cdcfd24 in std::__1::__shared_ptr_emplace<DB::ConstantNode, std::__1::allocator<DB::ConstantNode>>::__shared_ptr_emplace[abi:ne190107]<DB::Field const&, std::__1::allocator<DB::ConstantNode>, 0>(std::__1::allocator<DB::ConstantNode>, DB::Field const&) contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:264:5
    #14 0xab417cdcfd24 in std::__1::shared_ptr<DB::ConstantNode> std::__1::allocate_shared[abi:ne190107]<DB::ConstantNode, std::__1::allocator<DB::ConstantNode>, DB::Field const&, 0>(std::__1::allocator<DB::ConstantNode> const&, DB::Field const&) contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:843:51
    #15 0xab417cdb3f48 in std::__1::shared_ptr<DB::ConstantNode> std::__1::make_shared[abi:ne190107]<DB::ConstantNode, DB::Field const&, 0>(DB::Field const&) contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:851:10
    #16 0xab417cdb3f48 in DB::(anonymous namespace)::QueryTreeBuilder::buildExpression(std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const> const&) const src/Analyzer/QueryTreeBuilder.cpp:627:22
    #17 0xab417cdb4958 in DB::(anonymous namespace)::QueryTreeBuilder::buildExpression(std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const> const&) const src/Analyzer/QueryTreeBuilder.cpp:701:76
    #18 0xab417cdb4958 in DB::(anonymous namespace)::QueryTreeBuilder::buildExpression(std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const> const&) const src/Analyzer/QueryTreeBuilder.cpp:701:76
    #19 0xab417cdba54c in DB::(anonymous namespace)::QueryTreeBuilder::buildSelectExpression(std::__1::shared_ptr<DB::IAST> const&, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const> const&) const src/Analyzer/QueryTreeBuilder.cpp:360:45
    #20 0xab417cdb1934 in DB::(anonymous namespace)::QueryTreeBuilder::buildSelectOrUnionExpression(std::__1::shared_ptr<DB::IAST> const&, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const> const&) const src/Analyzer/QueryTreeBuilder.cpp:163:22
    #21 0xab417cdb64bc in DB::(anonymous namespace)::QueryTreeBuilder::buildSelectWithUnionExpression(std::__1::shared_ptr<DB::IAST> const&, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const> const&) const src/Analyzer/QueryTreeBuilder.cpp:181:16
    #22 0xab417cdb17c4 in DB::(anonymous namespace)::QueryTreeBuilder::buildSelectOrUnionExpression(std::__1::shared_ptr<DB::IAST> const&, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const> const&) const src/Analyzer/QueryTreeBuilder.cpp:159:22
    #23 0xab417cdb00b4 in DB::(anonymous namespace)::QueryTreeBuilder::buildQueryTreeNode(std::__1::shared_ptr<DB::IAST>, std::__1::shared_ptr<DB::Context const>) src/Analyzer/QueryTreeBuilder.cpp:141:27
    #24 0xab417cdb00b4 in DB::buildQueryTree(std::__1::shared_ptr<DB::IAST>, std::__1::shared_ptr<DB::Context const>) src/Analyzer/QueryTreeBuilder.cpp:1160:20
    #25 0xab417e7e3ae8 in DB::buildQueryTreeAndRunPasses(std::__1::shared_ptr<DB::IAST> const&, DB::SelectQueryOptions const&, std::__1::shared_ptr<DB::Context const> const&, std::__1::shared_ptr<DB::IStorage> const&) src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:153:23
    #26 0xab417e7e04c8 in DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const> const&, DB::SelectQueryOptions 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>>>> const&) src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:182:18
    #27 0xab417e7e6bb4 in std::__1::__unique_if<DB::InterpreterSelectQueryAnalyzer>::__unique_single std::__1::make_unique[abi:ne190107]<DB::InterpreterSelectQueryAnalyzer, std::__1::shared_ptr<DB::IAST>&, std::__1::shared_ptr<DB::Context> const&, DB::SelectQueryOptions const&>(std::__1::shared_ptr<DB::IAST>&, std::__1::shared_ptr<DB::Context> const&, DB::SelectQueryOptions const&) contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634:30
    #28 0xab417e6fe324 in std::__1::__function::__policy_func<std::__1::unique_ptr<DB::IInterpreter, std::__1::default_delete<DB::IInterpreter>> (DB::InterpreterFactory::Arguments const&)>::operator()[abi:ne190107](DB::InterpreterFactory::Arguments const&) const contrib/llvm-project/libcxx/include/__functional/function.h:716:12
    #29 0xab417e6fe324 in std::__1::function<std::__1::unique_ptr<DB::IInterpreter, std::__1::default_delete<DB::IInterpreter>> (DB::InterpreterFactory::Arguments const&)>::operator()(DB::InterpreterFactory::Arguments const&) const contrib/llvm-project/libcxx/include/__functional/function.h:989:10
    #30 0xab417e6fe324 in DB::InterpreterFactory::get(std::__1::shared_ptr<DB::IAST>&, std::__1::shared_ptr<DB::Context>, DB::SelectQueryOptions const&) src/Interpreters/InterpreterFactory.cpp:393:12
    #31 0xab417ed74be8 in DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum, std::__1::unique_ptr<DB::ReadBuffer, std::__1::default_delete<DB::ReadBuffer>>&, std::__1::shared_ptr<DB::IAST>&, std::__1::shared_ptr<DB::ImplicitTransactionControlExecutor>) src/Interpreters/executeQuery.cpp:1496:66
    #32 0xab417ed6dde4 in DB::executeQuery(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) src/Interpreters/executeQuery.cpp:1770:11
    #33 0xab418711e9c0 in DB::TCPHandler::runImpl() src/Server/TCPHandler.cpp:739:68
    #34 0xab4187155be0 in DB::TCPHandler::run() src/Server/TCPHandler.cpp:2740:9
    #35 0xab4192aafc34 in Poco::Net::TCPServerConnection::start() base/poco/Net/src/TCPServerConnection.cpp:40:3
    #36 0xab4192ab0824 in Poco::Net::TCPServerDispatcher::run() base/poco/Net/src/TCPServerDispatcher.cpp:115:38
    #37 0xab41929cb6f4 in Poco::PooledThread::run() base/poco/Foundation/src/ThreadPool.cpp:205:14
    #38 0xab41929c5dbc in Poco::ThreadImpl::runnableEntry(void*) base/poco/Foundation/src/Thread_POSIX.cpp:341:27
    #39 0xab41641e1830 in asan_thread_start(void*) crtstuff.c
    #40 0xff985f645ed8  misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:79

Thread T718 (QueryPipelineEx) created by T709 (QueryPipelineEx) here:
    #0 0xab41641c8c40 in pthread_create (clickhouse+0xd8f8c40) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b)
    #1 0xab4171dbd8fc in std::__1::__libcpp_thread_create[abi:ne190107](unsigned long*, void* (*)(void*), void*) contrib/llvm-project/libcxx/include/__thread/support/pthread.h:182:10
    #2 0xab4171dbd8fc in std::__1::thread::thread<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, 0>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) contrib/llvm-project/libcxx/include/__thread/thread.h:211:14
    #3 0xab4171dbb5bc in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::ThreadFromThreadPool(ThreadPoolImpl<std::__1::thread>&) src/Common/ThreadPool.cpp:614:14
    #4 0xab4171dbe1bc in std::__1::__unique_if<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool>::__unique_single std::__1::make_unique[abi:ne190107]<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool, ThreadPoolImpl<std::__1::thread>&>(ThreadPoolImpl<std::__1::thread>&) contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634:30
    #5 0xab4171dbe1bc in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, Priority, std::__1::optional<unsigned long>, bool) src/Common/ThreadPool.cpp:300:30
    #6 0xab4171dc2940 in ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, Priority, unsigned long, bool) src/Common/ThreadPool.cpp:506:5
    #7 0xab4171dc2940 in 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*&&) src/Common/ThreadPool.h:279:38
    #8 0xab4171dc0138 in ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::ThreadFromThreadPool(ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>&) src/Common/ThreadPool.cpp:614:14
    #9 0xab4171dc39fc in std::__1::__unique_if<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool>::__unique_single std::__1::make_unique[abi:ne190107]<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool, ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>&>(ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>&) contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634:30
    #10 0xab4171dc39fc in void ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::scheduleImpl<void>(std::__1::function<void ()>, Priority, std::__1::optional<unsigned long>, bool) src/Common/ThreadPool.cpp:300:30
    #11 0xab4171dc36bc in ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::scheduleOrThrowOnError(std::__1::function<void ()>, Priority) src/Common/ThreadPool.cpp:494:5
    #12 0xab41872f4008 in DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>) src/Processors/Executors/PipelineExecutor.cpp:555:15
    #13 0xab41872ef15c in DB::PipelineExecutor::executeImpl(unsigned long, bool) src/Processors/Executors/PipelineExecutor.cpp:589:17
    #14 0xab41872ee9c4 in DB::PipelineExecutor::execute(unsigned long, bool) src/Processors/Executors/PipelineExecutor.cpp:136:9
    #15 0xab4187321634 in DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::__1::shared_ptr<DB::ThreadGroup>, unsigned long, bool) src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:76:24
    #16 0xab4187321634 in DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:102:13
    #17 0xab4187321634 in decltype(std::declval<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>()()) std::__1::__invoke[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
    #18 0xab4187321634 in decltype(auto) std::__1::__apply_tuple_impl[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<...>) contrib/llvm-project/libcxx/include/tuple:1354:5
    #19 0xab4187321634 in decltype(auto) std::__1::apply[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&) contrib/llvm-project/libcxx/include/tuple:1358:5
    #20 0xab4187321634 in ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() src/Common/ThreadPool.h:312:13
    #21 0xab4187321634 in decltype(std::declval<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>()()) std::__1::__invoke[abi:ne190107]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
    #22 0xab4187321634 in void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:ne190107]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:224:5
    #23 0xab4187321634 in std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:ne190107]() contrib/llvm-project/libcxx/include/__functional/function.h:210:12
    #24 0xab4187321634 in void std::__1::__function::__policy_invoker<void ()>::__call_impl[abi:ne190107]<std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) contrib/llvm-project/libcxx/include/__functional/function.h:610:12
    #25 0xab4171dbc0b0 in std::__1::__function::__policy_func<void ()>::operator()[abi:ne190107]() const contrib/llvm-project/libcxx/include/__functional/function.h:716:12
    #26 0xab4171dbc0b0 in std::__1::function<void ()>::operator()() const contrib/llvm-project/libcxx/include/__functional/function.h:989:10
    #27 0xab4171dbc0b0 in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::worker() src/Common/ThreadPool.cpp:812:17
    #28 0xab4171dc8aac in decltype(*std::declval<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>().*std::declval<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)()>()()) std::__1::__invoke[abi:ne190107]<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, void>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117:25
    #29 0xab4171dc8aac in void std::__1::__thread_execute[abi:ne190107]<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>) contrib/llvm-project/libcxx/include/__thread/thread.h:192:3
    #30 0xab4171dc8aac in void* std::__1::__thread_proxy[abi:ne190107]<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*) contrib/llvm-project/libcxx/include/__thread/thread.h:201:3
    #31 0xab41641e1830 in asan_thread_start(void*) crtstuff.c
    #32 0xff985f645ed8  misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:79

Thread T709 (QueryPipelineEx) created by T708 (QueryPipelineEx) here:
    #0 0xab41641c8c40 in pthread_create (clickhouse+0xd8f8c40) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b)
    #1 0xab4171dbd8fc in std::__1::__libcpp_thread_create[abi:ne190107](unsigned long*, void* (*)(void*), void*) contrib/llvm-project/libcxx/include/__thread/support/pthread.h:182:10
    #2 0xab4171dbd8fc in std::__1::thread::thread<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, 0>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) contrib/llvm-project/libcxx/include/__thread/thread.h:211:14
    #3 0xab4171dbb5bc in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::ThreadFromThreadPool(ThreadPoolImpl<std::__1::thread>&) src/Common/ThreadPool.cpp:614:14
    #4 0xab4171dbe1bc in std::__1::__unique_if<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool>::__unique_single std::__1::make_unique[abi:ne190107]<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool, ThreadPoolImpl<std::__1::thread>&>(ThreadPoolImpl<std::__1::thread>&) contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634:30
    #5 0xab4171dbe1bc in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, Priority, std::__1::optional<unsigned long>, bool) src/Common/ThreadPool.cpp:300:30
    #6 0xab4171dc2940 in ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, Priority, unsigned long, bool) src/Common/ThreadPool.cpp:506:5
    #7 0xab4171dc2940 in 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*&&) src/Common/ThreadPool.h:279:38
    #8 0xab4171dc0138 in ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::ThreadFromThreadPool(ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>&) src/Common/ThreadPool.cpp:614:14
    #9 0xab4171dc39fc in std::__1::__unique_if<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool>::__unique_single std::__1::make_unique[abi:ne190107]<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool, ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>&>(ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>&) contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634:30
    #10 0xab4171dc39fc in void ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::scheduleImpl<void>(std::__1::function<void ()>, Priority, std::__1::optional<unsigned long>, bool) src/Common/ThreadPool.cpp:300:30
    #11 0xab4171dc36bc in ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::scheduleOrThrowOnError(std::__1::function<void ()>, Priority) src/Common/ThreadPool.cpp:494:5
    #12 0xab41872f4008 in DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>) src/Processors/Executors/PipelineExecutor.cpp:555:15
    #13 0xab41872ef15c in DB::PipelineExecutor::executeImpl(unsigned long, bool) src/Processors/Executors/PipelineExecutor.cpp:589:17
    #14 0xab41872ee9c4 in DB::PipelineExecutor::execute(unsigned long, bool) src/Processors/Executors/PipelineExecutor.cpp:136:9
    #15 0xab4187321634 in DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::__1::shared_ptr<DB::ThreadGroup>, unsigned long, bool) src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:76:24
    #16 0xab4187321634 in DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:102:13
    #17 0xab4187321634 in decltype(std::declval<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>()()) std::__1::__invoke[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
    #18 0xab4187321634 in decltype(auto) std::__1::__apply_tuple_impl[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<...>) contrib/llvm-project/libcxx/include/tuple:1354:5
    #19 0xab4187321634 in decltype(auto) std::__1::apply[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&) contrib/llvm-project/libcxx/include/tuple:1358:5
    #20 0xab4187321634 in ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() src/Common/ThreadPool.h:312:13
    #21 0xab4187321634 in decltype(std::declval<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>()()) std::__1::__invoke[abi:ne190107]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
    #22 0xab4187321634 in void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:ne190107]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:224:5
    #23 0xab4187321634 in std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:ne190107]() contrib/llvm-project/libcxx/include/__functional/function.h:210:12
    #24 0xab4187321634 in void std::__1::__function::__policy_invoker<void ()>::__call_impl[abi:ne190107]<std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) contrib/llvm-project/libcxx/include/__functional/function.h:610:12
    #25 0xab4171dbc0b0 in std::__1::__function::__policy_func<void ()>::operator()[abi:ne190107]() const contrib/llvm-project/libcxx/include/__functional/function.h:716:12
    #26 0xab4171dbc0b0 in std::__1::function<void ()>::operator()() const contrib/llvm-project/libcxx/include/__functional/function.h:989:10
    #27 0xab4171dbc0b0 in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::worker() src/Common/ThreadPool.cpp:812:17
    #28 0xab4171dc8aac in decltype(*std::declval<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>().*std::declval<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)()>()()) std::__1::__invoke[abi:ne190107]<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, void>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117:25
    #29 0xab4171dc8aac in void std::__1::__thread_execute[abi:ne190107]<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>) contrib/llvm-project/libcxx/include/__thread/thread.h:192:3
    #30 0xab4171dc8aac in void* std::__1::__thread_proxy[abi:ne190107]<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*) contrib/llvm-project/libcxx/include/__thread/thread.h:201:3
    #31 0xab41641e1830 in asan_thread_start(void*) crtstuff.c
    #32 0xff985f645ed8  misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:79

Thread T708 (QueryPipelineEx) created by T8 (TCPHandler) here:
    #0 0xab41641c8c40 in pthread_create (clickhouse+0xd8f8c40) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b)
    #1 0xab4171dbd8fc in std::__1::__libcpp_thread_create[abi:ne190107](unsigned long*, void* (*)(void*), void*) contrib/llvm-project/libcxx/include/__thread/support/pthread.h:182:10
    #2 0xab4171dbd8fc in std::__1::thread::thread<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, 0>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) contrib/llvm-project/libcxx/include/__thread/thread.h:211:14
    #3 0xab4171dbb5bc in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::ThreadFromThreadPool(ThreadPoolImpl<std::__1::thread>&) src/Common/ThreadPool.cpp:614:14
    #4 0xab4171dbe1bc in std::__1::__unique_if<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool>::__unique_single std::__1::make_unique[abi:ne190107]<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool, ThreadPoolImpl<std::__1::thread>&>(ThreadPoolImpl<std::__1::thread>&) contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634:30
    #5 0xab4171dbe1bc in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, Priority, std::__1::optional<unsigned long>, bool) src/Common/ThreadPool.cpp:300:30
    #6 0xab4171dbf208 in ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, Priority, unsigned long, bool) src/Common/ThreadPool.cpp:506:5
    #7 0xab418731f840 in ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) src/Common/ThreadPool.h:279:38
    #8 0xab418731f840 in DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long) src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:105:24
    #9 0xab4187320100 in DB::PullingAsyncPipelineExecutor::pull(DB::Block&, unsigned long) src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:131:10
    #10 0xab4187136a4c in DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) src/Server/TCPHandler.cpp:1314:29
    #11 0xab418711ebd8 in DB::TCPHandler::runImpl() src/Server/TCPHandler.cpp:753:17
    #12 0xab4187155be0 in DB::TCPHandler::run() src/Server/TCPHandler.cpp:2740:9
    #13 0xab4192aafc34 in Poco::Net::TCPServerConnection::start() base/poco/Net/src/TCPServerConnection.cpp:40:3
    #14 0xab4192ab0824 in Poco::Net::TCPServerDispatcher::run() base/poco/Net/src/TCPServerDispatcher.cpp:115:38
    #15 0xab41929cb6f4 in Poco::PooledThread::run() base/poco/Foundation/src/ThreadPool.cpp:205:14
    #16 0xab41929c5dbc in Poco::ThreadImpl::runnableEntry(void*) base/poco/Foundation/src/Thread_POSIX.cpp:341:27
    #17 0xab41641e1830 in asan_thread_start(void*) crtstuff.c
    #18 0xff985f645ed8  misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:79

Thread T8 (TCPHandler) created by T0 here:
    #0 0xab41641c8c40 in pthread_create (clickhouse+0xd8f8c40) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b)
    #1 0xab41929c5230 in Poco::ThreadImpl::startImpl(Poco::SharedPtr<Poco::Runnable, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::Runnable>>) base/poco/Foundation/src/Thread_POSIX.cpp:203:7
    #2 0xab41929c802c in Poco::Thread::start(Poco::Runnable&) base/poco/Foundation/src/Thread.cpp:118:2
    #3 0xab41929cbee0 in Poco::PooledThread::start() base/poco/Foundation/src/ThreadPool.cpp:91:10
    #4 0xab41929cbee0 in Poco::ThreadPool::ThreadPool(int, int, int, int, unsigned long, unsigned long) base/poco/Foundation/src/ThreadPool.cpp:258:12
    #5 0xab417213f208 in DB::Server::main(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>>>> const&) programs/server/Server.cpp:1212:22
    #6 0xab4192b06fbc in Poco::Util::Application::run() base/poco/Util/src/Application.cpp:315:8
    #7 0xab4172134b24 in DB::Server::run() programs/server/Server.cpp:622:25
    #8 0xab417213067c in mainEntryClickHouseServer(int, char**) programs/server/Server.cpp:409:20
    #9 0xab416421b224 in main programs/main.cpp:381:21
    #10 0xff985f5873f8 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #11 0xff985f5874c8 in __libc_start_main csu/../csu/libc-start.c:392:3
    #12 0xab4164145030 in _start /tmp/dgboter/bbs/rhev-vm8--rhe6x86_64/buildbot/rhe6x86_64--aarch64-linux-gnu/build/src/glibc/csu/../sysdeps/aarch64/start.S:92

Thread T713 (QueryPipelineEx) created by T708 (QueryPipelineEx) here:
    #0 0xab41641c8c40 in pthread_create (clickhouse+0xd8f8c40) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b)
    #1 0xab4171dbd8fc in std::__1::__libcpp_thread_create[abi:ne190107](unsigned long*, void* (*)(void*), void*) contrib/llvm-project/libcxx/include/__thread/support/pthread.h:182:10
    #2 0xab4171dbd8fc in std::__1::thread::thread<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, 0>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) contrib/llvm-project/libcxx/include/__thread/thread.h:211:14
    #3 0xab4171dbb5bc in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::ThreadFromThreadPool(ThreadPoolImpl<std::__1::thread>&) src/Common/ThreadPool.cpp:614:14
    #4 0xab4171dbe1bc in std::__1::__unique_if<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool>::__unique_single std::__1::make_unique[abi:ne190107]<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool, ThreadPoolImpl<std::__1::thread>&>(ThreadPoolImpl<std::__1::thread>&) contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634:30
    #5 0xab4171dbe1bc in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, Priority, std::__1::optional<unsigned long>, bool) src/Common/ThreadPool.cpp:300:30
    #6 0xab4171dc2940 in ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, Priority, unsigned long, bool) src/Common/ThreadPool.cpp:506:5
    #7 0xab4171dc2940 in 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*&&) src/Common/ThreadPool.h:279:38
    #8 0xab4171dc0138 in ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool::ThreadFromThreadPool(ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>&) src/Common/ThreadPool.cpp:614:14
    #9 0xab4171dc39fc in std::__1::__unique_if<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool>::__unique_single std::__1::make_unique[abi:ne190107]<ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::ThreadFromThreadPool, ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>&>(ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>&) contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634:30
    #10 0xab4171dc39fc in void ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::scheduleImpl<void>(std::__1::function<void ()>, Priority, std::__1::optional<unsigned long>, bool) src/Common/ThreadPool.cpp:300:30
    #11 0xab4171dc36bc in ThreadPoolImpl<ThreadFromGlobalPoolImpl<false, true>>::scheduleOrThrowOnError(std::__1::function<void ()>, Priority) src/Common/ThreadPool.cpp:494:5
    #12 0xab41872f4008 in DB::PipelineExecutor::spawnThreads(std::__1::shared_ptr<DB::IAcquiredSlot>) src/Processors/Executors/PipelineExecutor.cpp:555:15
    #13 0xab41872ef15c in DB::PipelineExecutor::executeImpl(unsigned long, bool) src/Processors/Executors/PipelineExecutor.cpp:589:17
    #14 0xab41872ee9c4 in DB::PipelineExecutor::execute(unsigned long, bool) src/Processors/Executors/PipelineExecutor.cpp:136:9
    #15 0xab4187321634 in DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::__1::shared_ptr<DB::ThreadGroup>, unsigned long, bool) src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:76:24
    #16 0xab4187321634 in DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:102:13
    #17 0xab4187321634 in decltype(std::declval<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>()()) std::__1::__invoke[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
    #18 0xab4187321634 in decltype(auto) std::__1::__apply_tuple_impl[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<...>) contrib/llvm-project/libcxx/include/tuple:1354:5
    #19 0xab4187321634 in decltype(auto) std::__1::apply[abi:ne190107]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::__1::tuple<>&) contrib/llvm-project/libcxx/include/tuple:1358:5
    #20 0xab4187321634 in ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() src/Common/ThreadPool.h:312:13
    #21 0xab4187321634 in decltype(std::declval<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>()()) std::__1::__invoke[abi:ne190107]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149:25
    #22 0xab4187321634 in void std::__1::__invoke_void_return_wrapper<void, true>::__call[abi:ne190107]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:224:5
    #23 0xab4187321634 in std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:ne190107]() contrib/llvm-project/libcxx/include/__functional/function.h:210:12
    #24 0xab4187321634 in void std::__1::__function::__policy_invoker<void ()>::__call_impl[abi:ne190107]<std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) contrib/llvm-project/libcxx/include/__functional/function.h:610:12
    #25 0xab4171dbc0b0 in std::__1::__function::__policy_func<void ()>::operator()[abi:ne190107]() const contrib/llvm-project/libcxx/include/__functional/function.h:716:12
    #26 0xab4171dbc0b0 in std::__1::function<void ()>::operator()() const contrib/llvm-project/libcxx/include/__functional/function.h:989:10
    #27 0xab4171dbc0b0 in ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::worker() src/Common/ThreadPool.cpp:812:17
    #28 0xab4171dc8aac in decltype(*std::declval<ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*>().*std::declval<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)()>()()) std::__1::__invoke[abi:ne190107]<void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*, void>(void (ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::__1::thread>::ThreadFromThreadPool*&&) contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117:25
    #29 0xab4171dc8aac in void std::__1::__thread_execute[abi:ne190107]<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>) contrib/llvm-project/libcxx/include/__thread/thread.h:192:3
    #30 0xab4171dc8aac in void* std::__1::__thread_proxy[abi:ne190107]<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*) contrib/llvm-project/libcxx/include/__thread/thread.h:201:3
    #31 0xab41641e1830 in asan_thread_start(void*) crtstuff.c
    #32 0xff985f645ed8  misc/../sysdeps/unix/sysv/linux/aarch64/clone.S:79
SUMMARY: AddressSanitizer: double-free (clickhouse+0xd91431c) (BuildId: 916a80e9a3f12c0cee4f2f524cf17aaf58b79b8b) in realloc
==602==ABORTING

Metadata

Metadata

Assignees

Labels

bugConfirmed user-visible misbehaviour in official releasefuzzProblem found by one of the fuzzers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions