Repository navigation
Closed
Labels
fuzzProblem found by one of the fuzzers
Description
How to reproduce:
set allow_experimental_analyzer=1;
CREATE TABLE local_01099_a (number UInt64) ENGINE = MergeTree() ORDER BY number;
CREATE TABLE local_01099_b (number UInt64) ENGINE = MergeTree() ORDER BY number;
CREATE TABLE distributed_01099_a AS local_01099_a ENGINE = Distributed('test_cluster_two_shards_localhost', currentDatabase(), local_01099_a, rand());
CREATE TABLE distributed_01099_b AS local_01099_b ENGINE = Distributed('test_cluster_two_shards_localhost', currentDatabase(), local_01099_b, rand());
INSERT INTO local_01099_a SELECT number from system.numbers limit 3;
INSERT INTO distributed_01099_b SELECT * from distributed_01099_a;Stacktrace:
[avogar-dev] 2022.12.23 20:41:38.504650 [ 491665 ] <Fatal> BaseDaemon: ########################################
[avogar-dev] 2022.12.23 20:41:38.505151 [ 491665 ] <Fatal> BaseDaemon: (version 22.13.1.1 (official build), build id: 8532327C2A89046A5D9EF4A0D3995BF7F8C2CD5E) (from thread 491351) (query_id: c7aeed0a-227c-4b84-afbd-964db5b093cc) (query: INSERT INTO distributed_01099_b SELECT * from distributed_01099_a;) Received signal Segmentation fault (11)
[avogar-dev] 2022.12.23 20:41:38.505479 [ 491665 ] <Fatal> BaseDaemon: Address: 0x50 Access: read. Address not mapped to object.
[avogar-dev] 2022.12.23 20:41:38.505769 [ 491665 ] <Fatal> BaseDaemon: Stack trace: 0x298af615 0x298af1dd 0x298b0936 0x298ad81d 0x298ac325 0x2b6cc775 0x2b6cc3ad 0x2b6cec8d 0x2b6cee3b 0x2b686f15 0x2b6ae2bf 0x297d1687 0x297cb6e6 0x29da314a 0x29d9f0c4 0x2af9e174 0x2afae6c5 0x3024c439 0x3024cc7c 0x3049bf54 0x30498cfa 0x30497ade 0x7f3d7ff6a609 0x7f3d7fe8f163
[avogar-dev] 2022.12.23 20:41:38.711320 [ 491665 ] <Fatal> BaseDaemon: 4. /build/build_docker/../contrib/llvm-project/libcxx/include/__hash_table:768: std::__1::__bucket_list_deallocator<std::__1::allocator<std::__1::__hash_node_base<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>, void*>*>*>>::size[abi:v15000]() const @ 0x298af615 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:38.916269 [ 491665 ] <Fatal> BaseDaemon: 5. /build/build_docker/../contrib/llvm-project/libcxx/include/__hash_table:1164: std::__1::__hash_table<std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>, std::__1::__unordered_map_hasher<std::__1::shared_ptr<DB::IQueryTreeNode>, std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>, std::__1::hash<std::__1::shared_ptr<DB::IQueryTreeNode>>, std::__1::equal_to<std::__1::shared_ptr<DB::IQueryTreeNode>>, true>, std::__1::__unordered_map_equal<std::__1::shared_ptr<DB::IQueryTreeNode>, std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>, std::__1::equal_to<std::__1::shared_ptr<DB::IQueryTreeNode>>, std::__1::hash<std::__1::shared_ptr<DB::IQueryTreeNode>>, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>>>::bucket_count[abi:v15000]() const @ 0x298af1dd in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:39.124113 [ 491665 ] <Fatal> BaseDaemon: 6. /build/build_docker/../contrib/llvm-project/libcxx/include/__hash_table:2307: std::__1::__hash_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>, void*>*> std::__1::__hash_table<std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>, std::__1::__unordered_map_hasher<std::__1::shared_ptr<DB::IQueryTreeNode>, std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>, std::__1::hash<std::__1::shared_ptr<DB::IQueryTreeNode>>, std::__1::equal_to<std::__1::shared_ptr<DB::IQueryTreeNode>>, true>, std::__1::__unordered_map_equal<std::__1::shared_ptr<DB::IQueryTreeNode>, std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>, std::__1::equal_to<std::__1::shared_ptr<DB::IQueryTreeNode>>, std::__1::hash<std::__1::shared_ptr<DB::IQueryTreeNode>>, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData>>>::find<std::__1::shared_ptr<DB::IQueryTreeNode>>(std::__1::shared_ptr<DB::IQueryTreeNode> const&) @ 0x298b0936 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:39.310675 [ 491665 ] <Fatal> BaseDaemon: 7. /build/build_docker/../contrib/llvm-project/libcxx/include/unordered_map:1443: std::__1::unordered_map<std::__1::shared_ptr<DB::IQueryTreeNode>, DB::TableExpressionData, std::__1::hash<std::__1::shared_ptr<DB::IQueryTreeNode>>, std::__1::equal_to<std::__1::shared_ptr<DB::IQueryTreeNode>>, std::__1::allocator<std::__1::pair<std::__1::shared_ptr<DB::IQueryTreeNode> const, DB::TableExpressionData>>>::find[abi:v15000](std::__1::shared_ptr<DB::IQueryTreeNode> const&) @ 0x298ad81d in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:39.496125 [ 491665 ] <Fatal> BaseDaemon: 8. /build/build_docker/../src/Planner/PlannerContext.cpp:72: DB::PlannerContext::getTableExpressionDataOrThrow(std::__1::shared_ptr<DB::IQueryTreeNode> const&) @ 0x298ac325 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:40.412877 [ 491665 ] <Fatal> BaseDaemon: 9. /build/build_docker/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:958: 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*) @ 0x2b6cc775 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:41.324707 [ 491665 ] <Fatal> BaseDaemon: 10. /build/build_docker/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:901: DB::ReadFromMergeTree::selectRangesToRead(std::__1::vector<std::__1::shared_ptr<DB::IMergeTreeDataPart const>, std::__1::allocator<std::__1::shared_ptr<DB::IMergeTreeDataPart const>>>) const @ 0x2b6cc3ad in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:42.235434 [ 491665 ] <Fatal> BaseDaemon: 11. /build/build_docker/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:1206: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x2b6cec8d in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:43.089654 [ 491665 ] <Fatal> BaseDaemon: 12. /build/build_docker/../src/Processors/QueryPlan/ReadFromMergeTree.cpp:0: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x2b6cee3b in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:43.256887 [ 491665 ] <Fatal> BaseDaemon: 13. /build/build_docker/../src/Processors/QueryPlan/ISourceStep.cpp:16: 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&) @ 0x2b686f15 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:43.537710 [ 491665 ] <Fatal> BaseDaemon: 14. /build/build_docker/../src/Processors/QueryPlan/QueryPlan.cpp:187: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x2b6ae2bf in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:43.736713 [ 491665 ] <Fatal> BaseDaemon: 15. /build/build_docker/../src/Interpreters/IInterpreterUnionOrSelectQuery.cpp:30: DB::IInterpreterUnionOrSelectQuery::buildQueryPipeline() @ 0x297d1687 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:44.122724 [ 491665 ] <Fatal> BaseDaemon: 16. /build/build_docker/../src/Interpreters/InterpreterInsertQuery.cpp:388: DB::InterpreterInsertQuery::execute() @ 0x297cb6e6 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:44.597469 [ 491665 ] <Fatal> BaseDaemon: 17. /build/build_docker/../src/Interpreters/executeQuery.cpp:686: DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x29da314a in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:45.109069 [ 491665 ] <Fatal> BaseDaemon: 18. /build/build_docker/../src/Interpreters/executeQuery.cpp:1083: 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) @ 0x29d9f0c4 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:45.606533 [ 491665 ] <Fatal> BaseDaemon: 19. /build/build_docker/../src/Server/TCPHandler.cpp:375: DB::TCPHandler::runImpl() @ 0x2af9e174 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:46.152271 [ 491665 ] <Fatal> BaseDaemon: 20. /build/build_docker/../src/Server/TCPHandler.cpp:1920: DB::TCPHandler::run() @ 0x2afae6c5 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:46.248057 [ 491665 ] <Fatal> BaseDaemon: 21. /build/build_docker/../contrib/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x3024c439 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:46.358717 [ 491665 ] <Fatal> BaseDaemon: 22. /build/build_docker/../contrib/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x3024cc7c in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:46.474266 [ 491665 ] <Fatal> BaseDaemon: 23. /build/build_docker/../contrib/poco/Foundation/src/ThreadPool.cpp:199: Poco::PooledThread::run() @ 0x3049bf54 in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:46.585640 [ 491665 ] <Fatal> BaseDaemon: 24. /build/build_docker/../contrib/poco/Foundation/src/Thread.cpp:56: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x30498cfa in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:46.698900 [ 491665 ] <Fatal> BaseDaemon: 25. /build/build_docker/../contrib/poco/Foundation/src/Thread_POSIX.cpp:345: Poco::ThreadImpl::runnableEntry(void*) @ 0x30497ade in /home/avogar/tmp/master/clickhouse-debug
[avogar-dev] 2022.12.23 20:41:46.699241 [ 491665 ] <Fatal> BaseDaemon: 26. ? @ 0x7f3d7ff6a609 in ?
[avogar-dev] 2022.12.23 20:41:46.699509 [ 491665 ] <Fatal> BaseDaemon: 27. clone @ 0x7f3d7fe8f163 in ?
[avogar-dev] 2022.12.23 20:41:47.600291 [ 491665 ] <Fatal> BaseDaemon: Integrity check of the executable successfully passed (checksum: 2B67CFA4CF85A05EFDD940F61C78C634)
Metadata
Metadata
Assignees
Labels
fuzzProblem found by one of the fuzzers
Activity