```
2022.11.08 11:21:03.863555 [ 452480 ] {} <Trace> BaseDaemon: Received signal 11
2022.11.08 11:21:03.863976 [ 455262 ] {} <Fatal> BaseDaemon: ########################################
2022.11.08 11:21:03.864151 [ 455262 ] {} <Fatal> BaseDaemon: (version 22.11.1.1, build id: BD019FFE7A1D4A5EC3B03BD7E0F82AB378ABF7E2) (from thread 452490) (query_id: fb8308fb-87a7-452d-b0e5-4d8f1fc71632) (query: SELECT SUM(check <> 0) FROM ((SELECT (NOT (-1313224515)) AS `check` FROM t0 AS left)) as res) Received signal Segmentation fault (11)
2022.11.08 11:21:03.864287 [ 455262 ] {} <Fatal> BaseDaemon: Address: 0x150 Access: read. Address not mapped to object.
2022.11.08 11:21:03.864447 [ 455262 ] {} <Fatal> BaseDaemon: Stack trace: 0x1c871e18 0x1d52eb8b 0x1d684855 0x1dfbc59b 0x1dfbadb1 0x1dfbee8b 0x1dfbf076 0x1df7dbe5 0x1dfa3bdc 0x1c52ba8c 0x1c955b39 0x1c95a639 0x1d9fa5e7 0x1d9feb7a 0x1da808ca 0x21350483 0x21350cf3 0x215ab03a 0x215a93f0 0x215a7a28 0xb9fbae7 0x7face2f5d609 0x7face2e82163
2022.11.08 11:21:04.232545 [ 455262 ] {} <Fatal> BaseDaemon: 5. ./build_docker/../src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriterResult::getArrayJoinSourceNameSet() const @ 0x1c871e18 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:05.268534 [ 455262 ] {} <Fatal> BaseDaemon: 6. ./build_docker/../src/Storages/MergeTree/KeyCondition.cpp:0: DB::KeyCondition::KeyCondition(DB::SelectQueryInfo const&, std::__1::shared_ptr<DB::Context 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&, std::__1::shared_ptr<DB::ExpressionActions> const&, bool, bool) @ 0x1d52eb8b in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:05.922356 [ 455262 ] {} <Fatal> BaseDaemon: 7.1. inlined from ./build_docker/../contrib/libcxx/include/optional:378: void std::__1::__optional_storage_base<DB::KeyCondition, false>::__construct[abi:v15003]<DB::SelectQueryInfo const&, std::__1::shared_ptr<DB::Context const> 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>>>>&, std::__1::shared_ptr<DB::ExpressionActions>>(DB::SelectQueryInfo const&, std::__1::shared_ptr<DB::Context const> 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>>>>&, std::__1::shared_ptr<DB::ExpressionActions>&&)
2022.11.08 11:21:05.922633 [ 455262 ] {} <Fatal> BaseDaemon: 7.2. inlined from ./build_docker/../contrib/libcxx/include/optional:898: DB::KeyCondition& std::__1::optional<DB::KeyCondition>::emplace[abi:v15003]<DB::SelectQueryInfo const&, std::__1::shared_ptr<DB::Context const> 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>>>>&, std::__1::shared_ptr<DB::ExpressionActions>, void>(DB::SelectQueryInfo const&, std::__1::shared_ptr<DB::Context const> 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>>>>&, std::__1::shared_ptr<DB::ExpressionActions>&&)
2022.11.08 11:21:05.922785 [ 455262 ] {} <Fatal> BaseDaemon: 7. ./build_docker/../src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:793: DB::MergeTreeDataSelectExecutor::filterPartsByPartition(std::__1::vector<std::__1::shared_ptr<DB::IMergeTreeDataPart const>, std::__1::allocator<std::__1::shared_ptr<DB::IMergeTreeDataPart const>>>&, std::__1::optional<std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, 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::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>>> const&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::__1::shared_ptr<DB::Context const> const&, 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<char>, std::__1::allocator<char>> const, long>>> const*, Poco::Logger*, std::__1::vector<DB::ReadFromMergeTree::IndexStat, std::__1::allocator<DB::ReadFromMergeTree::IndexStat>>&) @ 0x1d684855 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:06.509077 [ 455262 ] {} <Fatal> BaseDaemon: 8. ./build_docker/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:962: 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::PrewhereInfo> const&, DB::ActionDAGNodes const&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, DB::SelectQueryInfo const&, std::__1::shared_ptr<DB::Context const>, unsigned long, 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<char>, 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*) @ 0x1dfbc59b in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:07.078139 [ 455262 ] {} <Fatal> BaseDaemon: 9. ./build_docker/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::ReadFromMergeTree::selectRangesToRead(std::__1::vector<std::__1::shared_ptr<DB::IMergeTreeDataPart const>, std::__1::allocator<std::__1::shared_ptr<DB::IMergeTreeDataPart const>>>) const @ 0x1dfbadb1 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:07.673058 [ 455262 ] {} <Fatal> BaseDaemon: 10. ./build_docker/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:1089: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x1dfbee8b in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:08.139189 [ 455262 ] {} <Fatal> BaseDaemon: 11. ./build_docker/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:1099: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x1dfbf076 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:08.208757 [ 455262 ] {} <Fatal> BaseDaemon: 12. ./build_docker/../src/Processors/QueryPlan/ISourceStep.cpp:0: 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::QueryPipelineBuilder>>>>, DB::BuildQueryPipelineSettings const&) @ 0x1df7dbe5 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:08.348817 [ 455262 ] {} <Fatal> BaseDaemon: 13. ./build_docker/../src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x1dfa3bdc in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:08.426582 [ 455262 ] {} <Fatal> BaseDaemon: 14. ./build_docker/../src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:98: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x1c52ba8c in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:08.815986 [ 455262 ] {} <Fatal> BaseDaemon: 15. ./build_docker/../src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x1c955b39 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:09.219887 [ 455262 ] {} <Fatal> BaseDaemon: 16. ./build_docker/../src/Interpreters/executeQuery.cpp:1142: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::__1::shared_ptr<DB::Context>, std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)>, std::__1::optional<DB::FormatSettings> const&) @ 0x1c95a639 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:09.434085 [ 455262 ] {} <Fatal> BaseDaemon: 17.1. inlined from ./build_docker/../contrib/libcxx/include/optional:260: ~__optional_destruct_base
2022.11.08 11:21:09.434197 [ 455262 ] {} <Fatal> BaseDaemon: 17. ./build_docker/../src/Server/HTTPHandler.cpp:800: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::__1::optional<DB::CurrentThread::QueryScope>&) @ 0x1d9fa5e7 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:09.685329 [ 455262 ] {} <Fatal> BaseDaemon: 18. ./build_docker/../src/Server/HTTPHandler.cpp:976: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x1d9feb7a in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:09.719404 [ 455262 ] {} <Fatal> BaseDaemon: 19. ./build_docker/../src/Server/HTTP/HTTPServerConnection.cpp:0: DB::HTTPServerConnection::run() @ 0x1da808ca in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:09.745593 [ 455262 ] {} <Fatal> BaseDaemon: 20. ./build_docker/../contrib/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x21350483 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:09.781639 [ 455262 ] {} <Fatal> BaseDaemon: 21.1. inlined from ./build_docker/../contrib/libcxx/include/__memory/unique_ptr.h:48: std::__1::default_delete<Poco::Net::TCPServerConnection>::operator()[abi:v15003](Poco::Net::TCPServerConnection*) const
2022.11.08 11:21:09.781778 [ 455262 ] {} <Fatal> BaseDaemon: 21.2. inlined from ./build_docker/../contrib/libcxx/include/__memory/unique_ptr.h:305: std::__1::unique_ptr<Poco::Net::TCPServerConnection, std::__1::default_delete<Poco::Net::TCPServerConnection>>::reset[abi:v15003](Poco::Net::TCPServerConnection*)
2022.11.08 11:21:09.781848 [ 455262 ] {} <Fatal> BaseDaemon: 21.3. inlined from ./build_docker/../contrib/libcxx/include/__memory/unique_ptr.h:259: ~unique_ptr
2022.11.08 11:21:09.781904 [ 455262 ] {} <Fatal> BaseDaemon: 21. ./build_docker/../contrib/poco/Net/src/TCPServerDispatcher.cpp:116: Poco::Net::TCPServerDispatcher::run() @ 0x21350cf3 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:09.822345 [ 455262 ] {} <Fatal> BaseDaemon: 22. ./build_docker/../contrib/poco/Foundation/src/ThreadPool.cpp:213: Poco::PooledThread::run() @ 0x215ab03a in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:09.863938 [ 455262 ] {} <Fatal> BaseDaemon: 23. ./build_docker/../contrib/poco/Foundation/src/Thread.cpp:56: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x215a93f0 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:09.899723 [ 455262 ] {} <Fatal> BaseDaemon: 24.1. inlined from ./build_docker/../contrib/poco/Foundation/include/Poco/SharedPtr.h:277: Poco::SharedPtr<Poco::Runnable, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::Runnable>>::get()
2022.11.08 11:21:09.899866 [ 455262 ] {} <Fatal> BaseDaemon: 24.2. inlined from ./build_docker/../contrib/poco/Foundation/include/Poco/SharedPtr.h:156: Poco::SharedPtr<Poco::Runnable, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::Runnable>>::assign(Poco::Runnable*)
2022.11.08 11:21:09.899953 [ 455262 ] {} <Fatal> BaseDaemon: 24.3. inlined from ./build_docker/../contrib/poco/Foundation/include/Poco/SharedPtr.h:208: Poco::SharedPtr<Poco::Runnable, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::Runnable>>::operator=(Poco::Runnable*)
2022.11.08 11:21:09.900020 [ 455262 ] {} <Fatal> BaseDaemon: 24. ./build_docker/../contrib/poco/Foundation/src/Thread_POSIX.cpp:360: Poco::ThreadImpl::runnableEntry(void*) @ 0x215a7a28 in /home/ubuntu/thread-ch/clickhouse
2022.11.08 11:21:16.189421 [ 455262 ] {} <Fatal> BaseDaemon: 26. ? @ 0x7face2f5d609 in ?
2022.11.08 11:21:16.189517 [ 455262 ] {} <Fatal> BaseDaemon: 27. clone @ 0x7face2e82163 in ?
2022.11.08 11:21:18.224131 [ 455262 ] {} <Fatal> BaseDaemon: Integrity check of the executable skipped because the reference checksum could not be read. (calculated checksum: 62F509E4AD69EDAC65AF33BF6DA9A663)
IdentifierResolveScope lambda_scope(lambda_to_resolve, &scope );
            lambda_projection_names = resolveLambda(lambda_argument, lambda_to_resolve, lambda_arguments, lambda_scope);
            if (auto * lambda_list_node_result = lambda_to_resolve_typed.getExpression()->as<ListNode>())
            {
                size_t lambda_list_node_result_nodes_size = lambda_list_node_result->getNodes().size();
                if (lambda_list_node_result_nodes_size != 1)
                    throw Exception(ErrorCodes::UNSUPPORTED_METHOD,
                        "Lambda as function argument resolved as list node with size {}. Expected 1. In scope {}",
                        lambda_list_node_result_nodes_size,
                        lambda_to_resolve->formatASTForErrorMessage());
                lambda_to_resolve_typed.getExpression() = lambda_list_node_result->getNodes().front();
            }
            if (arguments_projection_names.at(function_lambda_argument_index) == PROJECTION_NAME_PLACEHOLDER)
            {
                size_t lambda_projection_names_size =lambda_projection_names.size();
                if (lambda_projection_names_size != 1)
                    throw Exception(ErrorCodes::LOGICAL_ERROR,
                        "Lambda argument inside function expected to have 1 projection name. Actual {}",
                        lambda_projection_names_size);
                WriteBufferFromOwnString lambda_argument_projection_name_buffer;
                lambda_argument_projection_name_buffer << "lambda(";
                lambda_argument_projection_name_buffer << "tuple(";
                size_t lambda_argument_names_size = lambda_argument_names.size();
                for (size_t i = 0; i < lambda_argument_names_size; ++i)
                {
                    const auto & lambda_argument_name = lambda_argument_names[i];
                    lambda_argument_projection_name_buffer << lambda_argument_name;
                    if (i + 1 != lambda_argument_names_size)
                        lambda_argument_projection_name_buffer << ", ";
                }