query:
```
SELECT number FROM remote('127.0.0.{3|2}', numbers(256)) WHERE number GLOBAL IN (SELECT number FROM numbers(9223372036854775807)) SETTINGS async_socket_for_remote = 1, use_hedge
d_requests = 1, sleep_in_send_data_ms = 10, receive_data_timeout_ms = 1
```

Log
```
2022.02.07 16:15:09.686401 [ 461 ] {} <Fatal> BaseDaemon: ########################################
2022.02.07 16:15:09.686700 [ 461 ] {} <Fatal> BaseDaemon: (version 22.2.1.4050, build id: 3259743F56FAF964) (from thread 201) (query_id: 507ad9c1-ab5b-455b-9185-864264994977) (query: SELECT number FROM remote('127.0.0.{3|2}', numbers(256)) WHERE number GLOBAL IN (SELECT number FROM numbers(9223372036854775807)) SETTINGS async_socket_for_remote = 1, use_hedged_requests = 1, sleep_in_send_data_ms = 10, receive_data_timeout_ms = 1) Received signal Unknown signal (-3)
2022.02.07 16:15:09.686864 [ 461 ] {} <Fatal> BaseDaemon: Sanitizer trap.
2022.02.07 16:15:09.687035 [ 461 ] {} <Fatal> BaseDaemon: Stack trace: 0xcd32bc7 0x27e0a825 0xcc4bf76 0xcc330a1 0xcc34be6 0xcc35458 0x2c832b2b 0x2c82335a 0x2c8227d8 0x2c85766e 0x2ccf70e8 0x2877d03c 0x287a4187 0x2c71514e 0x2c743300 0x333bcb4f 0x333bd8c1 0x33897de6 0x3389109a 0x7f63f6d3e609 0x7f63f6c65293
2022.02.07 16:15:09.712511 [ 461 ] {} <Fatal> BaseDaemon: 0.1. inlined from ./obj-x86_64-linux-gnu/../src/Common/StackTrace.cpp:305: StackTrace::tryCapture()
2022.02.07 16:15:09.712689 [ 461 ] {} <Fatal> BaseDaemon: 0. ../src/Common/StackTrace.cpp:266: StackTrace::StackTrace() @ 0xcd32bc7 in /workspace/clickhouse
2022.02.07 16:15:09.773395 [ 461 ] {} <Fatal> BaseDaemon: 1. ./obj-x86_64-linux-gnu/../base/daemon/BaseDaemon.cpp:0: sanitizerDeathCallback() @ 0x27e0a825 in /workspace/clickhouse
2022.02.07 16:15:13.191721 [ 461 ] {} <Fatal> BaseDaemon: 2. __sanitizer::Die() @ 0xcc4bf76 in /workspace/clickhouse
2022.02.07 16:15:16.577540 [ 461 ] {} <Fatal> BaseDaemon: 3. ? @ 0xcc330a1 in /workspace/clickhouse
2022.02.07 16:15:19.964086 [ 461 ] {} <Fatal> BaseDaemon: 4. __asan::ReportGenericError(unsigned long, unsigned long, unsigned long, unsigned long, bool, unsigned long, unsigned int, bool) @ 0xcc34be6 in /workspace/clickhouse
2022.02.07 16:15:23.348800 [ 461 ] {} <Fatal> BaseDaemon: 5. __asan_report_load8 @ 0xcc35458 in /workspace/clickhouse
2022.02.07 16:15:23.398293 [ 461 ] {} <Fatal> BaseDaemon: 6. ./obj-x86_64-linux-gnu/../src/Processors/Executors/ExecutingGraph.cpp:0: DB::ExecutingGraph::updateNode(unsigned long, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&) @ 0x2c832b2b in /workspace/clickhouse
2022.02.07 16:15:23.439585 [ 461 ] {} <Fatal> BaseDaemon: 7. ./obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:232: DB::PipelineExecutor::executeStepImpl(unsigned long, std::__1::atomic<bool>*) @ 0x2c82335a in /workspace/clickhouse
2022.02.07 16:15:23.477331 [ 461 ] {} <Fatal> BaseDaemon: 8.1. inlined from ./obj-x86_64-linux-gnu/../contrib/libcxx/include/atomic:1006: bool std::__1::__cxx_atomic_load<bool>(std::__1::__cxx_atomic_base_impl<bool> const*, std::__1::memory_order)
2022.02.07 16:15:23.477447 [ 461 ] {} <Fatal> BaseDaemon: 8.2. inlined from ../contrib/libcxx/include/atomic:1615: std::__1::__atomic_base<bool, false>::load(std::__1::memory_order) const
2022.02.07 16:15:23.477513 [ 461 ] {} <Fatal> BaseDaemon: 8.3. inlined from ../contrib/libcxx/include/atomic:1619: std::__1::__atomic_base<bool, false>::operator bool() const
2022.02.07 16:15:23.477575 [ 461 ] {} <Fatal> BaseDaemon: 8.4. inlined from ../src/Processors/Executors/ExecutorTasks.h:49: DB::ExecutorTasks::isFinished() const
2022.02.07 16:15:23.477650 [ 461 ] {} <Fatal> BaseDaemon: 8. ../src/Processors/Executors/PipelineExecutor.cpp:117: DB::PipelineExecutor::executeStep(std::__1::atomic<bool>*) @ 0x2c8227d8 in /workspace/clickhouse
2022.02.07 16:15:23.498075 [ 461 ] {} <Fatal> BaseDaemon: 9.1. inlined from ./obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:3211: ~shared_ptr
2022.02.07 16:15:23.498201 [ 461 ] {} <Fatal> BaseDaemon: 9. ../src/Processors/Executors/PushingPipelineExecutor.cpp:73: DB::PushingPipelineExecutor::~PushingPipelineExecutor() @ 0x2c85766e in /workspace/clickhouse
2022.02.07 16:15:23.518487 [ 461 ] {} <Fatal> BaseDaemon: 10.1. inlined from ./obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:1397: std::__1::default_delete<DB::PushingPipelineExecutor>::operator()(DB::PushingPipelineExecutor*) const
2022.02.07 16:15:23.518596 [ 461 ] {} <Fatal> BaseDaemon: 10.2. inlined from ../contrib/libcxx/include/memory:1658: std::__1::unique_ptr<DB::PushingPipelineExecutor, std::__1::default_delete<DB::PushingPipelineExecutor> >::reset(DB::PushingPipelineExecutor*)
2022.02.07 16:15:23.518661 [ 461 ] {} <Fatal> BaseDaemon: 10.3. inlined from ../contrib/libcxx/include/memory:1612: ~unique_ptr
2022.02.07 16:15:23.518740 [ 461 ] {} <Fatal> BaseDaemon: 10. ../src/Processors/Transforms/CreatingSetsTransform.cpp:21: DB::CreatingSetsTransform::~CreatingSetsTransform() @ 0x2ccf70e8 in /workspace/clickhouse
2022.02.07 16:15:23.581098 [ 461 ] {} <Fatal> BaseDaemon: 11.1. inlined from ./obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:2518: std::__1::__shared_weak_count::__release_shared()
2022.02.07 16:15:23.581212 [ 461 ] {} <Fatal> BaseDaemon: 11.2. inlined from ../contrib/libcxx/include/memory:3212: ~shared_ptr
2022.02.07 16:15:23.581279 [ 461 ] {} <Fatal> BaseDaemon: 11.3. inlined from ../contrib/libcxx/include/memory:891: std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >::destroy(std::__1::shared_ptr<DB::IProcessor>*)
2022.02.07 16:15:23.581358 [ 461 ] {} <Fatal> BaseDaemon: 11.4. inlined from ../contrib/libcxx/include/__memory/allocator_traits.h:539: void std::__1::allocator_traits<std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::__destroy<std::__1::shared_ptr<DB::IProcessor> >(std::__1::integral_constant<bool, true>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >&, std::__1::shared_ptr<DB::IProcessor>*)
2022.02.07 16:15:23.581462 [ 461 ] {} <Fatal> BaseDaemon: 11.5. inlined from ../contrib/libcxx/include/__memory/allocator_traits.h:487: void std::__1::allocator_traits<std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::destroy<std::__1::shared_ptr<DB::IProcessor> >(std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >&, std::__1::shared_ptr<DB::IProcessor>*)
2022.02.07 16:15:23.581542 [ 461 ] {} <Fatal> BaseDaemon: 11.6. inlined from ../contrib/libcxx/include/vector:428: std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::__destruct_at_end(std::__1::shared_ptr<DB::IProcessor>*)
2022.02.07 16:15:23.581615 [ 461 ] {} <Fatal> BaseDaemon: 11.7. inlined from ../contrib/libcxx/include/vector:371: std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::clear()
2022.02.07 16:15:23.581683 [ 461 ] {} <Fatal> BaseDaemon: 11.8. inlined from ../contrib/libcxx/include/vector:465: ~__vector_base
2022.02.07 16:15:23.581748 [ 461 ] {} <Fatal> BaseDaemon: 11. ../contrib/libcxx/include/vector:557: std::__1::vector<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::~vector() @ 0x2877d03c in /workspace/clickhouse
2022.02.07 16:15:23.645834 [ 461 ] {} <Fatal> BaseDaemon: 12.1. inlined from ./obj-x86_64-linux-gnu/../src/QueryPipeline/QueryPipeline.cpp:0: ~QueryPipeline
2022.02.07 16:15:23.645951 [ 461 ] {} <Fatal> BaseDaemon: 12. ../src/QueryPipeline/QueryPipeline.cpp:535: DB::QueryPipeline::reset() @ 0x287a4187 in /workspace/clickhouse
2022.02.07 16:15:23.755965 [ 461 ] {} <Fatal> BaseDaemon: 13. ./obj-x86_64-linux-gnu/../src/QueryPipeline/BlockIO.h:0: DB::TCPHandler::runImpl() @ 0x2c71514e in /workspace/clickhouse
2022.02.07 16:15:23.939463 [ 461 ] {} <Fatal> BaseDaemon: 14. ./obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1917: DB::TCPHandler::run() @ 0x2c743300 in /workspace/clickhouse
2022.02.07 16:15:23.942586 [ 461 ] {} <Fatal> BaseDaemon: 15. ./obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x333bcb4f in /workspace/clickhouse
2022.02.07 16:15:23.951887 [ 461 ] {} <Fatal> BaseDaemon: 16.1. inlined from ./obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:1397: std::__1::default_delete<Poco::Net::TCPServerConnection>::operator()(Poco::Net::TCPServerConnection*) const
2022.02.07 16:15:23.951993 [ 461 ] {} <Fatal> BaseDaemon: 16.2. inlined from ../contrib/libcxx/include/memory:1658: std::__1::unique_ptr<Poco::Net::TCPServerConnection, std::__1::default_delete<Poco::Net::TCPServerConnection> >::reset(Poco::Net::TCPServerConnection*)
2022.02.07 16:15:23.952065 [ 461 ] {} <Fatal> BaseDaemon: 16.3. inlined from ../contrib/libcxx/include/memory:1612: ~unique_ptr
2022.02.07 16:15:23.952120 [ 461 ] {} <Fatal> BaseDaemon: 16. ../contrib/poco/Net/src/TCPServerDispatcher.cpp:116: Poco::Net::TCPServerDispatcher::run() @ 0x333bd8c1 in /workspace/clickhouse
2022.02.07 16:15:23.962387 [ 461 ] {} <Fatal> BaseDaemon: 17. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:0: Poco::PooledThread::run() @ 0x33897de6 in /workspace/clickhouse
2022.02.07 16:15:23.972231 [ 461 ] {} <Fatal> BaseDaemon: 18. ./obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_POSIX.cpp:0: Poco::ThreadImpl::runnableEntry(void*) @ 0x3389109a in /workspace/clickhouse
2022.02.07 16:15:23.972328 [ 461 ] {} <Fatal> BaseDaemon: 19. ? @ 0x7f63f6d3e609 in ?
2022.02.07 16:15:23.972378 [ 461 ] {} <Fatal> BaseDaemon: 20. clone @ 0x7f63f6c65293 in ?
2022.02.07 16:15:24.795161 [ 461 ] {} <Fatal> BaseDaemon: Calculated checksum of the binary: 86CD2A70EB48418C857B254DE2A14EAD. There is no information about the reference checksum.
```

report 
```

==99==ERROR: AddressSanitizer: heap-use-after-free on address 0x6130007b94d8 at pc 0x00002c832b2b bp 0x7f630ed28d70 sp 0x7f630ed28d68
READ of size 8 at 0x6130007b94d8 thread T3 (TCPHandler)
    #0 0x2c832b2a in DB::ExecutingGraph::updateNode(unsigned long, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&) obj-x86_64-linux-gnu/../src/Processors/Executors/ExecutingGraph.cpp:266:66
    #1 0x2c823359 in DB::PipelineExecutor::executeStepImpl(unsigned long, std::__1::atomic<bool>*) obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:232:29
    #2 0x2c8227d7 in DB::PipelineExecutor::executeStep(std::__1::atomic<bool>*) obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:115:5
    #3 0x2c85766d in DB::PushingPipelineExecutor::finish() obj-x86_64-linux-gnu/../src/Processors/Executors/PushingPipelineExecutor.cpp:118:19
    #4 0x2c85766d in DB::PushingPipelineExecutor::~PushingPipelineExecutor() obj-x86_64-linux-gnu/../src/Processors/Executors/PushingPipelineExecutor.cpp:67:9
    #5 0x2ccf70e7 in std::__1::default_delete<DB::PushingPipelineExecutor>::operator()(DB::PushingPipelineExecutor*) const obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:1397:5
    #6 0x2ccf70e7 in std::__1::unique_ptr<DB::PushingPipelineExecutor, std::__1::default_delete<DB::PushingPipelineExecutor> >::reset(DB::PushingPipelineExecutor*) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:1658:7
    #7 0x2ccf70e7 in std::__1::unique_ptr<DB::PushingPipelineExecutor, std::__1::default_delete<DB::PushingPipelineExecutor> >::~unique_ptr() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:1612:19
    #8 0x2ccf70e7 in DB::CreatingSetsTransform::~CreatingSetsTransform() obj-x86_64-linux-gnu/../src/Processors/Transforms/CreatingSetsTransform.cpp:21:47
    #9 0x2877d03b in std::__1::__shared_count::__release_shared() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:2475:9
    #10 0x2877d03b in std::__1::__shared_weak_count::__release_shared() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:2517:27
    #11 0x2877d03b in std::__1::shared_ptr<DB::IProcessor>::~shared_ptr() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:3212:19
    #12 0x2877d03b in std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >::destroy(std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:891:15
    #13 0x2877d03b in void std::__1::allocator_traits<std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::__destroy<std::__1::shared_ptr<DB::IProcessor> >(std::__1::integral_constant<bool, true>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >&, std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:539:21
    #14 0x2877d03b in void std::__1::allocator_traits<std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::destroy<std::__1::shared_ptr<DB::IProcessor> >(std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >&, std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:487:14
    #15 0x2877d03b in std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::__destruct_at_end(std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:428:9
    #16 0x2877d03b in std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::clear() obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:371:29
    #17 0x2877d03b in std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::~__vector_base() obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:465:9
    #18 0x2877d03b in std::__1::vector<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::~vector() obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:557:5
    #19 0x287a4186 in DB::QueryPipeline::~QueryPipeline() obj-x86_64-linux-gnu/../src/QueryPipeline/QueryPipeline.cpp:29:31
    #20 0x287a4186 in DB::QueryPipeline::reset() obj-x86_64-linux-gnu/../src/QueryPipeline/QueryPipeline.cpp:535:1
    #21 0x2c71514d in DB::BlockIO::onException() obj-x86_64-linux-gnu/../src/QueryPipeline/BlockIO.h:48:18
    #22 0x2c71514d in DB::TCPHandler::runImpl() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:398:22
    #23 0x2c7432ff in DB::TCPHandler::run() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1915:9
    #24 0x333bcb4e in Poco::Net::TCPServerConnection::start() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:43:3
    #25 0x333bd8c0 in Poco::Net::TCPServerDispatcher::run() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:115:20
    #26 0x33897de5 in Poco::PooledThread::run() obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:199:14
    #27 0x33891099 in Poco::ThreadImpl::runnableEntry(void*) obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_POSIX.cpp:345:27
    #28 0x7f63f6d3e608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477:8
    #29 0x7f63f6c65292 in __clone /build/glibc-eX1tMB/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95

0x6130007b94d8 is located 24 bytes inside of 352-byte region [0x6130007b94c0,0x6130007b9620)
freed by thread T3 (TCPHandler) here:
    #0 0xcc61b62 in operator delete(void*, unsigned long) (/workspace/clickhouse+0xcc61b62)
    #1 0x2877d043 in std::__1::__shared_weak_count::__release_shared() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:2518:9
    #2 0x2877d043 in std::__1::shared_ptr<DB::IProcessor>::~shared_ptr() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:3212:19
    #3 0x2877d043 in std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >::destroy(std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:891:15
    #4 0x2877d043 in void std::__1::allocator_traits<std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::__destroy<std::__1::shared_ptr<DB::IProcessor> >(std::__1::integral_constant<bool, true>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >&, std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:539:21
    #5 0x2877d043 in void std::__1::allocator_traits<std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::destroy<std::__1::shared_ptr<DB::IProcessor> >(std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >&, std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:487:14
    #6 0x2877d043 in std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::__destruct_at_end(std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:428:9
    #7 0x2877d043 in std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::clear() obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:371:29
    #8 0x2877d043 in std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::~__vector_base() obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:465:9
    #9 0x2877d043 in std::__1::vector<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::~vector() obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:557:5
    #10 0x28797451 in DB::QueryPipeline::~QueryPipeline() obj-x86_64-linux-gnu/../src/QueryPipeline/QueryPipeline.cpp:29:31
    #11 0x2ccf70b0 in DB::CreatingSetsTransform::~CreatingSetsTransform() obj-x86_64-linux-gnu/../src/Processors/Transforms/CreatingSetsTransform.cpp:21:47
    #12 0x2877d03b in std::__1::__shared_count::__release_shared() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:2475:9
    #13 0x2877d03b in std::__1::__shared_weak_count::__release_shared() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:2517:27
    #14 0x2877d03b in std::__1::shared_ptr<DB::IProcessor>::~shared_ptr() obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:3212:19
    #15 0x2877d03b in std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >::destroy(std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:891:15
    #16 0x2877d03b in void std::__1::allocator_traits<std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::__destroy<std::__1::shared_ptr<DB::IProcessor> >(std::__1::integral_constant<bool, true>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >&, std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:539:21
    #17 0x2877d03b in void std::__1::allocator_traits<std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::destroy<std::__1::shared_ptr<DB::IProcessor> >(std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> >&, std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:487:14
    #18 0x2877d03b in std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::__destruct_at_end(std::__1::shared_ptr<DB::IProcessor>*) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:428:9
    #19 0x2877d03b in std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::clear() obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:371:29
    #20 0x2877d03b in std::__1::__vector_base<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::~__vector_base() obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:465:9
    #21 0x2877d03b in std::__1::vector<std::__1::shared_ptr<DB::IProcessor>, std::__1::allocator<std::__1::shared_ptr<DB::IProcessor> > >::~vector() obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:557:5
    #22 0x287a4186 in DB::QueryPipeline::~QueryPipeline() obj-x86_64-linux-gnu/../src/QueryPipeline/QueryPipeline.cpp:29:31
    #23 0x287a4186 in DB::QueryPipeline::reset() obj-x86_64-linux-gnu/../src/QueryPipeline/QueryPipeline.cpp:535:1
    #24 0x2c71514d in DB::BlockIO::onException() obj-x86_64-linux-gnu/../src/QueryPipeline/BlockIO.h:48:18
    #25 0x2c71514d in DB::TCPHandler::runImpl() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:398:22
    #26 0x2c7432ff in DB::TCPHandler::run() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1915:9
    #27 0x333bcb4e in Poco::Net::TCPServerConnection::start() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:43:3
    #28 0x333bd8c0 in Poco::Net::TCPServerDispatcher::run() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:115:20
    #29 0x33897de5 in Poco::PooledThread::run() obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:199:14
    #30 0x33891099 in Poco::ThreadImpl::runnableEntry(void*) obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_POSIX.cpp:345:27
    #31 0x7f63f6d3e608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477:8

previously allocated by thread T235 (QueryPipelineEx) here:
    #0 0xcc60efd in operator new(unsigned long) (/workspace/clickhouse+0xcc60efd)
    #1 0x2b4bcb34 in void* std::__1::__libcpp_operator_new<unsigned long>(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/new:235:10
    #2 0x2b4bcb34 in std::__1::__libcpp_allocate(unsigned long, unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/new:261:10
    #3 0x2b4bcb34 in std::__1::allocator<std::__1::__shared_ptr_emplace<DB::MemorySink, std::__1::allocator<DB::MemorySink> > >::allocate(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:840:38
    #4 0x2b4bcb34 in std::__1::allocator_traits<std::__1::allocator<std::__1::__shared_ptr_emplace<DB::MemorySink, std::__1::allocator<DB::MemorySink> > > >::allocate(std::__1::allocator<std::__1::__shared_ptr_emplace<DB::MemorySink, std::__1::allocator<DB::MemorySink> > >&, unsigned l
ong) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:468:21
    #5 0x2b4bcb34 in std::__1::__allocation_guard<std::__1::allocator<std::__1::__shared_ptr_emplace<DB::MemorySink, std::__1::allocator<DB::MemorySink> > > >::__allocation_guard<std::__1::allocator<DB::MemorySink> >(std::__1::allocator<DB::MemorySink>, unsigned long) obj-x86_64-linux-
gnu/../contrib/libcxx/include/__memory/utilities.h:56:18
    #6 0x2b4bcb34 in std::__1::shared_ptr<DB::MemorySink> std::__1::allocate_shared<DB::MemorySink, std::__1::allocator<DB::MemorySink>, DB::StorageMemory&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, void>(std::__1::allocator<DB::MemorySink> const&, DB::StorageMemo
ry&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:3359:48
    #7 0x2b4b523f in std::__1::shared_ptr<DB::MemorySink> std::__1::make_shared<DB::MemorySink, DB::StorageMemory&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, void>(DB::StorageMemory&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&) obj-x86_64-linux
-gnu/../contrib/libcxx/include/memory:3369:12
    #8 0x2b4b523f in DB::StorageMemory::write(std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, std::__1::shared_ptr<DB::Context const>) obj-x86_64-linux-gnu/../src/Storages/StorageMemory.cpp:228:12
    #9 0x2ccf9338 in DB::CreatingSetsTransform::startSubquery() obj-x86_64-linux-gnu/../src/Processors/Transforms/CreatingSetsTransform.cpp:53:51
    #10 0x2ccf8368 in DB::CreatingSetsTransform::init() obj-x86_64-linux-gnu/../src/Processors/Transforms/CreatingSetsTransform.cpp:93:5
    #11 0x2ccf8368 in DB::CreatingSetsTransform::work() obj-x86_64-linux-gnu/../src/Processors/Transforms/CreatingSetsTransform.cpp:39:9
    #12 0x2c842965 in DB::executeJob(DB::IProcessor*) obj-x86_64-linux-gnu/../src/Processors/Executors/ExecutionThreadContext.cpp:45:20
    #13 0x2c842965 in DB::ExecutionThreadContext::executeTask() obj-x86_64-linux-gnu/../src/Processors/Executors/ExecutionThreadContext.cpp:63:9
    #14 0x2c823226 in DB::PipelineExecutor::executeStepImpl(unsigned long, std::__1::atomic<bool>*) obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:213:26
    #15 0x2c825f00 in DB::PipelineExecutor::executeSingleThread(unsigned long) obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:178:5
    #16 0x2c825f00 in DB::PipelineExecutor::executeImpl(unsigned long)::$_1::operator()() const obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:306:21
    #17 0x2c825f00 in decltype(std::__1::forward<DB::PipelineExecutor::executeImpl(unsigned long)::$_1&>(fp)()) std::__1::__invoke_constexpr<DB::PipelineExecutor::executeImpl(unsigned long)::$_1&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&) obj-x86_64-linux-gnu/../contrib/l
ibcxx/include/type_traits:3682:1
    #18 0x2c825f00 in decltype(auto) std::__1::__apply_tuple_impl<DB::PipelineExecutor::executeImpl(unsigned long)::$_1&, std::__1::tuple<>&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&, std::__1::tuple<>&, std::__1::__tuple_indices<>) obj-x86_64-linux-gnu/../contrib/libcxx/
include/tuple:1415:1
    #19 0x2c825f00 in decltype(auto) std::__1::apply<DB::PipelineExecutor::executeImpl(unsigned long)::$_1&, std::__1::tuple<>&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&, std::__1::tuple<>&) obj-x86_64-linux-gnu/../contrib/libcxx/include/tuple:1424:1
    #20 0x2c825f00 in ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_1>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&&)::'lambda'()::operator()() obj-x86_64-linux-gnu/../src/Common/ThreadPool.h:188:13
    #21 0x2c825f00 in decltype(std::__1::forward<DB::PipelineExecutor::executeImpl(unsigned long)::$_1>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_1>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&&)::
'lambda'()&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&&) obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3676:1
    #22 0x2c825f00 in void std::__1::__invoke_void_return_wrapper<void>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_1>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGloba
lPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_1>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&&)::'lambda'()&) obj-x86_64-linux-gnu/../contrib/libcxx/include/__functional_base:348:9
    #23 0x2c825f00 in std::__1::__function::__default_alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_1>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&&)::'lambda'(), void ()>::operator()() obj-x86_64-linux-gnu/../contri
b/libcxx/include/functional:1608:12
    #24 0x2c825f00 in void std::__1::__function::__policy_invoker<void ()>::__call_impl<std::__1::__function::__default_alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_1>(DB::PipelineExecutor::executeImpl(unsigned long)::$_1&&):
:'lambda'(), void ()> >(std::__1::__function::__policy_storage const*) obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2089:16
    #25 0xce47786 in std::__1::__function::__policy_func<void ()>::operator()() const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2221:16
    #26 0xce47786 in std::__1::function<void ()>::operator()() const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2560:12
    #27 0xce47786 in ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:277:17
    #28 0xce4fd16 in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()::operator()() const obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:142:73
    #29 0xce4fd16 in decltype(std::__1::forward<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()>(void&&) obj-x86_64-linux-gnu/../contrib/libcxx/include/type_trait
s:3676:1
    #30 0xce4fd16 in void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'l
ambda0'()>(std::__1::tuple<void, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()>&, std::__1::__tuple_indices<>) obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:280:5
    #31 0xce4fd16 in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsi
gned long>)::'lambda0'()> >(void*) obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:291:5
    #32 0x7f63f6d3e608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477:8

Thread T3 (TCPHandler) created by T0 here:
    #0 0xcc197dc in pthread_create (/workspace/clickhouse+0xcc197dc)
    #1 0x33890349 in Poco::ThreadImpl::startImpl(Poco::SharedPtr<Poco::Runnable, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::Runnable> >) obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_POSIX.cpp:202:6
    #2 0x338933dd in Poco::Thread::start(Poco::Runnable&) obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread.cpp:128:2
    #3 0x338987d9 in Poco::PooledThread::start() obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:85:10
    #4 0x338987d9 in Poco::ThreadPool::ThreadPool(int, int, int, int) obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:252:12
    #5 0xcc7643b 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&) obj-x86_64-linux-gnu/../pro
grams/server/Server.cpp:585:22
    #6 0x333fddba in Poco::Util::Application::run() obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:334:8
    #7 0xcc6f7d8 in DB::Server::run() obj-x86_64-linux-gnu/../programs/server/Server.cpp:452:25
    #8 0x3344343d in Poco::Util::ServerApplication::run(int, char**) obj-x86_64-linux-gnu/../contrib/poco/Util/src/ServerApplication.cpp:611:9
    #9 0xcc68f3d in mainEntryClickHouseServer(int, char**) obj-x86_64-linux-gnu/../programs/server/Server.cpp:183:20
    #10 0xcc64ac8 in main obj-x86_64-linux-gnu/../programs/main.cpp:378:12
    #11 0x7f63f6b6a0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16

Thread T235 (QueryPipelineEx) created by T3 (TCPHandler) here:
    #0 0xcc197dc in pthread_create (/workspace/clickhouse+0xcc197dc)
    #1 0xce4ecf6 in std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) obj-x86_64-linux-gnu/../contrib/libcxx/include/__threading_support:509:10
    #2 0xce4ecf6 in std::__1::thread::thread<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'(), void>(void&&) obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:307:16
    #3 0xce44059 in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:142:35
    #4 0xce52785 in ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:174:5
    #5 0xce52785 in ThreadFromGlobalPool::ThreadFromGlobalPool<void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()>(void&&) obj-x86_64-linux-gnu/../src/Common/ThreadPool.h:169:38
    #6 0xce4941f in void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:142:35
    #7 0xce48ab5 in ThreadPoolImpl<ThreadFromGlobalPool>::scheduleOrThrowOnError(std::__1::function<void ()>, int) obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:162:5
    #8 0x2bf72a14 in DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::__1::vector<std::__1::shared_ptr<DB::IMergeTreeDataPart const>, std::__1::allocator<std::__1::shared_ptr<DB::IMergeTreeDataPart const> > >&&, std::__1::shared_ptr<DB::StorageInMemoryMetadat
a const>, DB::SelectQueryInfo const&, std::__1::shared_ptr<DB::Context const> const&, DB::KeyCondition const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::__1::vector<DB::ReadFromMergeTree::IndexStat, std::__1::allocator<DB::ReadFromMergeTree::IndexStat> >&,
bool) obj-x86_64-linux-gnu/../src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:988:22
    #9 0x2cfe59a0 in DB::ReadFromMergeTree::selectRangesToRead(std::__1::vector<std::__1::shared_ptr<DB::IMergeTreeDataPart const>, std::__1::allocator<std::__1::shared_ptr<DB::IMergeTreeDataPart const> > >, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, std::__1::shar
ed_ptr<DB::StorageInMemoryMetadata const> const&, DB::SelectQueryInfo const&, std::__1::shared_ptr<DB::Context const>, unsigned int, std::__1::shared_ptr<std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, long, std::__1::hash<
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<cha
r>, std::__1::allocator<char> > const, long> > > >, DB::MergeTreeData 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&, bool, Poco::Logger*) obj-x86_64-linux-gnu/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:928:36
    #10 0x2cfe8a2a in DB::ReadFromMergeTree::selectRangesToRead(std::__1::vector<std::__1::shared_ptr<DB::IMergeTreeDataPart const>, std::__1::allocator<std::__1::shared_ptr<DB::IMergeTreeDataPart const> > >) const obj-x86_64-linux-gnu/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:
825:12
    #11 0x2cfe8a2a in DB::ReadFromMergeTree::getAnalysisResult() const obj-x86_64-linux-gnu/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:983:67
    #12 0x2cfe9128 in DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) obj-x86_64-linux-gnu/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:992:19
    #13 0x2cf615f1 in DB::ISourceStep::updatePipeline(std::__1::vector<std::__1::unique_ptr<DB::QueryPipelineBuilder, std::__1::default_delete<DB::QueryPipelineBuilder> >, std::__1::allocator<std::__1::unique_ptr<DB::QueryPipelineBuilder, std::__1::default_delete<DB::QueryPipelineBuild
er> > > >, DB::BuildQueryPipelineSettings const&) obj-x86_64-linux-gnu/../src/Processors/QueryPlan/ISourceStep.cpp:16:5
    #14 0x2cfb52e9 in DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) obj-x86_64-linux-gnu/../src/Processors/QueryPlan/QueryPlan.cpp:169:47
    #15 0x2a4e936e in DB::InterpreterSelectWithUnionQuery::execute() obj-x86_64-linux-gnu/../src/Interpreters/InterpreterSelectWithUnionQuery.cpp:333:40
    #16 0x2aac558c in DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:666:36
    #17 0x2aac06f0 in DB::executeQuery(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum) obj-x86_64-linux-gnu/../src/Interpreters/executeQuery.cpp:985:30
    #18 0x2c7123f5 in DB::TCPHandler::runImpl() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:333:24
    #19 0x2c7432ff in DB::TCPHandler::run() obj-x86_64-linux-gnu/../src/Server/TCPHandler.cpp:1915:9
    #20 0x333bcb4e in Poco::Net::TCPServerConnection::start() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:43:3
    #21 0x333bd8c0 in Poco::Net::TCPServerDispatcher::run() obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:115:20
    #22 0x33897de5 in Poco::PooledThread::run() obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:199:14
    #23 0x33891099 in Poco::ThreadImpl::runnableEntry(void*) obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_POSIX.cpp:345:27
    #24 0x7f63f6d3e608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477:8

SUMMARY: AddressSanitizer: heap-use-after-free obj-x86_64-linux-gnu/../src/Processors/Executors/ExecutingGraph.cpp:266:66 in DB::ExecutingGraph::updateNode(unsigned long, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::Execu
tingGraph::Node*> > >&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&)
Shadow bytes around the buggy address:
  0x0c26800ef240: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c26800ef250: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c26800ef260: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c26800ef270: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c26800ef280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c26800ef290: fa fa fa fa fa fa fa fa fd fd fd[fd]fd fd fd fd
  0x0c26800ef2a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c26800ef2b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c26800ef2c0: fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c26800ef2d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c26800ef2e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==99==ABORTING
```
if (tmp.empty())
            {
                
                ref = StringRef(buf.position(), next_pos - buf.position());
                buf.position() += next_pos + have_value - buf.position();
            }
            else
            {
                
                tmp.append(buf.position(), next_pos - buf.position());
                buf.position() += next_pos + have_value - buf.position();
                ref = StringRef(tmp);
            }
            return have_value;
        }
        
        else
        {
            tmp.append(buf.position(), next_pos - buf.position());
            buf.position() += next_pos + 1 - buf.position();
            if (buf.eof())
                throw Exception("Cannot parse escape sequence", ErrorCodes::CANNOT_PARSE_ESCAPE_SEQUENCE);
            tmp.push_back(parseEscapeSequence(*buf.position()));
            ++buf.position();
            continue;
        }
    }
    throw ParsingException("Unexpected end of stream while reading key name from TSKV format", ErrorCodes::CANNOT_READ_ALL_DATA);
}
bool TSKVRowInputFormat::readRow(MutableColumns & columns, RowReadExtension & ext)