-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Open
Labels
bugConfirmed user-visible misbehaviour in official releaseConfirmed user-visible misbehaviour in official releasefuzzProblem found by one of the fuzzersProblem found by one of the fuzzersminorPriority: minorPriority: minor
Description
Describe the bug
Easy to reproduce. Seems to happen in the current head.
How to reproduce
Run:
SELECT mortonEncode(());
Error message and/or stacktrace
Stack trace:
contrib/llvm-project/libcxx/include/vector:1436: assertion __n < size() failed: vector[] index out of bounds
2025.09.29 15:52:26.783407 [ 3353230 ] {} <Trace> BaseDaemon: Received signal 6
2025.09.29 15:52:26.783462 [ 3353230 ] {} <Fatal> BaseDaemon: ########## Short fault info ############
2025.09.29 15:52:26.783479 [ 3353230 ] {} <Fatal> BaseDaemon: (version 25.10.1.1061 (official build), build id: 0F76C47A174ADDCCE7C25644D432A3CA03CF3FE7, git hash: 947d3542da2b4f9c7509415c7a7ec884a9453768, architecture: x86_64) (from thread 3353232) Received signal 6
2025.09.29 15:52:26.783485 [ 3353230 ] {} <Fatal> BaseDaemon: Signal description: Aborted
2025.09.29 15:52:26.783487 [ 3353230 ] {} <Fatal> BaseDaemon:
2025.09.29 15:52:26.783507 [ 3353230 ] {} <Fatal> BaseDaemon: Stack trace: 0x000079c0b96a49bd 0x000079c0b964579e 0x000079c0b96288cd 0x00006361c31b545d 0x00006361acb73aa4 0x00006361a807af81 0x00006361acb71818 0x00006361a7df478a 0x00006361b427b1ba 0x00006361b4274eb1 0x00006361b4274a02 0x00006361b4274e58 0x00006361b42764d9 0x00006361b4277122 0x00006361b5c49ee9 0x00006361b59b6e1e 0x00006361b59b6131 0x00006361b59d3d32 0x00006361b59b08a0 0x00006361b59af7b4 0x00006361b59aee50 0x00006361b5a03813 0x00006361b657dea7 0x00006361b657c778 0x00006361b657f170 0x00006361b650b684 0x00006361b689af81 0x00006361b6895372 0x00006361ba14068e 0x00006361ba159fa4 0x00006361c224de87 0x00006361c224e465 0x00006361c21ed5ff 0x00006361c21eacd1 0x000079c0b96a27f1 0x000079c0b9733b5c
2025.09.29 15:52:26.783517 [ 3353230 ] {} <Fatal> BaseDaemon: ########################################
2025.09.29 15:52:26.783585 [ 3353230 ] {} <Fatal> BaseDaemon: (version 25.10.1.1061 (official build), build id: 0F76C47A174ADDCCE7C25644D432A3CA03CF3FE7, git hash: 947d3542da2b4f9c7509415c7a7ec884a9453768) (from thread 3353232) (query_id: b6ada8e2-0c82-43a0-99d7-099beedafd22) (query: SELECT mortonEncode(());) Received signal Aborted (6)
2025.09.29 15:52:26.783658 [ 3353230 ] {} <Fatal> BaseDaemon:
2025.09.29 15:52:26.783684 [ 3353230 ] {} <Fatal> BaseDaemon: Stack trace: 0x000079c0b96a49bd 0x000079c0b964579e 0x000079c0b96288cd 0x00006361c31b545d 0x00006361acb73aa4 0x00006361a807af81 0x00006361acb71818 0x00006361a7df478a 0x00006361b427b1ba 0x00006361b4274eb1 0x00006361b4274a02 0x00006361b4274e58 0x00006361b42764d9 0x00006361b4277122 0x00006361b5c49ee9 0x00006361b59b6e1e 0x00006361b59b6131 0x00006361b59d3d32 0x00006361b59b08a0 0x00006361b59af7b4 0x00006361b59aee50 0x00006361b5a03813 0x00006361b657dea7 0x00006361b657c778 0x00006361b657f170 0x00006361b650b684 0x00006361b689af81 0x00006361b6895372 0x00006361ba14068e 0x00006361ba159fa4 0x00006361c224de87 0x00006361c224e465 0x00006361c21ed5ff 0x00006361c21eacd1 0x000079c0b96a27f1 0x000079c0b9733b5c
2025.09.29 15:52:26.783745 [ 3353230 ] {} <Fatal> BaseDaemon: 3. __GI___pthread_kill @ 0x00000000000a49bd
2025.09.29 15:52:26.783779 [ 3353230 ] {} <Fatal> BaseDaemon: 4. raise @ 0x000000000004579e
2025.09.29 15:52:26.783803 [ 3353230 ] {} <Fatal> BaseDaemon: 5. __GI_abort @ 0x00000000000288cd
2025.09.29 15:52:26.788506 [ 3353230 ] {} <Fatal> BaseDaemon: 6. contrib/llvm-project/libcxx/src/verbose_abort.cpp:74: ? @ 0x000000002866445d
2025.09.29 15:52:26.802424 [ 3353230 ] {} <Fatal> BaseDaemon: 7.0. inlined from contrib/llvm-project/libcxx/include/vector:1436: std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>>::operator[][abi:se190107](unsigned long)
2025.09.29 15:52:26.802462 [ 3353230 ] {} <Fatal> BaseDaemon: 7. src/Functions/mortonEncode.cpp:137: DB::TargetSpecific::Default::FunctionMortonEncode::executeImpl(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x0000000012022aa4
2025.09.29 15:52:26.817502 [ 3353230 ] {} <Fatal> BaseDaemon: 8. src/Functions/PerformanceAdaptors.h:228: DB::ImplementationSelector<DB::IFunction>::selectAndExecute(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x000000000d529f81
2025.09.29 15:52:26.830010 [ 3353230 ] {} <Fatal> BaseDaemon: 9. src/Functions/mortonEncode.cpp:275: DB::FunctionMortonEncode::executeImpl(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x0000000012020818
2025.09.29 15:52:26.842843 [ 3353230 ] {} <Fatal> BaseDaemon: 10. src/Functions/IFunction.h:437: DB::IFunction::executeImplDryRun(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x000000000d2a378a
2025.09.29 15:52:26.845534 [ 3353230 ] {} <Fatal> BaseDaemon: 11. src/Functions/IFunctionAdaptors.cpp:16: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x000000001972a1ba
2025.09.29 15:52:26.859183 [ 3353230 ] {} <Fatal> BaseDaemon: 12. src/Functions/IFunction.cpp:350: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x0000000019723eb1
2025.09.29 15:52:26.871207 [ 3353230 ] {} <Fatal> BaseDaemon: 13. src/Functions/IFunction.cpp:176: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x0000000019723a02
2025.09.29 15:52:26.883558 [ 3353230 ] {} <Fatal> BaseDaemon: 14. src/Functions/IFunction.cpp:342: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x0000000019723e58
2025.09.29 15:52:26.897488 [ 3353230 ] {} <Fatal> BaseDaemon: 15. src/Functions/IFunction.cpp:419: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x00000000197254d9
2025.09.29 15:52:26.911785 [ 3353230 ] {} <Fatal> BaseDaemon: 16. src/Functions/IFunction.cpp:497: DB::IExecutableFunction::execute(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x0000000019726122
2025.09.29 15:52:26.938150 [ 3353230 ] {} <Fatal> BaseDaemon: 17. src/Analyzer/Resolve/resolveFunction.cpp:1058: DB::QueryAnalyzer::resolveFunction(std::shared_ptr<DB::IQueryTreeNode>&, DB::IdentifierResolveScope&) @ 0x000000001b0f8ee9
2025.09.29 15:52:26.997556 [ 3353230 ] {} <Fatal> BaseDaemon: 18. src/Analyzer/Resolve/QueryAnalyzer.cpp:2676: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr<DB::IQueryTreeNode>&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001ae65e1e
2025.09.29 15:52:27.053825 [ 3353230 ] {} <Fatal> BaseDaemon: 19. src/Analyzer/Resolve/QueryAnalyzer.cpp:2827: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr<DB::IQueryTreeNode>&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001ae65131
2025.09.29 15:52:27.119321 [ 3353230 ] {} <Fatal> BaseDaemon: 20. src/Analyzer/Resolve/QueryAnalyzer.cpp:3151: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr<DB::IQueryTreeNode>&, DB::IdentifierResolveScope&) @ 0x000000001ae82d32
2025.09.29 15:52:27.182051 [ 3353230 ] {} <Fatal> BaseDaemon: 21. src/Analyzer/Resolve/QueryAnalyzer.cpp:4581: DB::QueryAnalyzer::resolveQuery(std::shared_ptr<DB::IQueryTreeNode> const&, DB::IdentifierResolveScope&) @ 0x000000001ae5f8a0
2025.09.29 15:52:27.236215 [ 3353230 ] {} <Fatal> BaseDaemon: 22. src/Analyzer/Resolve/QueryAnalyzer.cpp:135: DB::QueryAnalyzer::resolve(std::shared_ptr<DB::IQueryTreeNode>&, std::shared_ptr<DB::IQueryTreeNode> const&, std::shared_ptr<DB::Context const>) @ 0x000000001ae5e7b4
2025.09.29 15:52:27.238524 [ 3353230 ] {} <Fatal> BaseDaemon: 23. src/Analyzer/Resolve/QueryAnalysisPass.cpp:18: DB::QueryAnalysisPass::run(std::shared_ptr<DB::IQueryTreeNode>&, std::shared_ptr<DB::Context const>) @ 0x000000001ae5de50
2025.09.29 15:52:27.247283 [ 3353230 ] {} <Fatal> BaseDaemon: 24. src/Analyzer/QueryTreePassManager.cpp:188: DB::QueryTreePassManager::run(std::shared_ptr<DB::IQueryTreeNode>) @ 0x000000001aeb2813
2025.09.29 15:52:27.269629 [ 3353230 ] {} <Fatal> BaseDaemon: 25. src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:165: DB::buildQueryTreeAndRunPasses(std::shared_ptr<DB::IAST> const&, DB::SelectQueryOptions const&, std::shared_ptr<DB::Context const> const&, std::shared_ptr<DB::IStorage> const&) @ 0x000000001ba2cea7
2025.09.29 15:52:27.288283 [ 3353230 ] {} <Fatal> BaseDaemon: 26. src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:182: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr<DB::IAST> const&, std::shared_ptr<DB::Context const> const&, DB::SelectQueryOptions const&, std::vector<String, std::allocator<String>> const&) @ 0x000000001ba2b778
2025.09.29 15:52:27.309696 [ 3353230 ] {} <Fatal> BaseDaemon: 27. contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:634: std::__unique_if<DB::InterpreterSelectQueryAnalyzer>::__unique_single std::make_unique[abi:se190107]<DB::InterpreterSelectQueryAnalyzer, std::shared_ptr<DB::IAST>&, std::shared_ptr<DB::Context> const&, DB::SelectQueryOptions const&>(std::shared_ptr<DB::IAST>&, std::shared_ptr<DB::Context> const&, DB::SelectQueryOptions const&) @ 0x000000001ba2e170
2025.09.29 15:52:27.316938 [ 3353230 ] {} <Fatal> BaseDaemon: 28.0. inlined from contrib/llvm-project/libcxx/include/__functional/function.h:716: ?
2025.09.29 15:52:27.316967 [ 3353230 ] {} <Fatal> BaseDaemon: 28.1. inlined from contrib/llvm-project/libcxx/include/__functional/function.h:989: ?
2025.09.29 15:52:27.317001 [ 3353230 ] {} <Fatal> BaseDaemon: 28. src/Interpreters/InterpreterFactory.cpp:393: DB::InterpreterFactory::get(std::shared_ptr<DB::IAST>&, std::shared_ptr<DB::Context>, DB::SelectQueryOptions const&) @ 0x000000001b9ba684
2025.09.29 15:52:27.357857 [ 3353230 ] {} <Fatal> BaseDaemon: 29. src/Interpreters/executeQuery.cpp:1534: DB::executeQueryImpl(char const*, char const*, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum, std::unique_ptr<DB::ReadBuffer, std::default_delete<DB::ReadBuffer>>&, std::shared_ptr<DB::IAST>&, std::shared_ptr<DB::ImplicitTransactionControlExecutor>, std::function<void ()>) @ 0x000000001bd49f81
2025.09.29 15:52:27.406127 [ 3353230 ] {} <Fatal> BaseDaemon: 30. src/Interpreters/executeQuery.cpp:1812: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000001bd44372
2025.09.29 15:52:27.442056 [ 3353230 ] {} <Fatal> BaseDaemon: 31. src/Server/TCPHandler.cpp:743: DB::TCPHandler::runImpl() @ 0x000000001f5ef68e
2025.09.29 15:52:27.499817 [ 3353230 ] {} <Fatal> BaseDaemon: 32. src/Server/TCPHandler.cpp:2754: DB::TCPHandler::run() @ 0x000000001f608fa4
2025.09.29 15:52:27.503525 [ 3353230 ] {} <Fatal> BaseDaemon: 33. base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x00000000276fce87
2025.09.29 15:52:27.508126 [ 3353230 ] {} <Fatal> BaseDaemon: 34. base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x00000000276fd465
2025.09.29 15:52:27.512697 [ 3353230 ] {} <Fatal> BaseDaemon: 35. base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x000000002769c5ff
2025.09.29 15:52:27.517186 [ 3353230 ] {} <Fatal> BaseDaemon: 36. base/poco/Foundation/src/Thread_POSIX.cpp:341: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000027699cd1
2025.09.29 15:52:27.517221 [ 3353230 ] {} <Fatal> BaseDaemon: 37. start_thread @ 0x00000000000a27f1
2025.09.29 15:52:27.517242 [ 3353230 ] {} <Fatal> BaseDaemon: 38. __GI___clone3 @ 0x0000000000133b5c
2025.09.29 15:52:27.735323 [ 3353230 ] {} <Fatal> BaseDaemon: Integrity check of the executable successfully passed (checksum: 386FF4055DDB4493D1EA561CF49E02F6)2025.09.29 15:52:27.746463 [ 3353230 ] {} <Fatal> BaseDaemon: Report this error to https://github.com/ClickHouse/ClickHouse/issues
2025.09.29 15:52:27.746720 [ 3353230 ] {} <Fatal> BaseDaemon: Changed settings: s3_truncate_on_insert = true, azure_truncate_on_insert = true, allow_suspicious_low_cardinality_types = true, allow_suspicious_fixed_string_types = true, allow_suspicious_indices = true, allow_suspicious_ttl_expressions = true, allow_suspicious_variant_types = true, allow_suspicious_primary_key = true, allow_suspicious_types_in_group_by = true, allow_suspicious_types_in_order_by = true, allow_not_comparable_types_in_order_by = true, allow_not_comparable_types_in_comparison_functions = true, enable_positional_arguments = true, allow_nonconst_timezone_arguments = true, allow_experimental_time_time64_type = true, allow_nondeterministic_optimize_skip_unused_shards = true, allow_distributed_ddl = true, allow_suspicious_codecs = true, enable_zstd_qat_codec = true, enable_deflate_qpl_codec = true, max_execution_time = 60., allow_custom_error_code_in_throwif = true, allow_ddl = true, allow_introspection_functions = true, allow_drop_detached = true, enable_lightweight_delete = true, allow_materialized_view_with_bad_select = true, allow_settings_after_format_in_insert = true, allow_nondeterministic_mutations = true, allow_non_metadata_alters = true, enable_lightweight_update = true, allow_experimental_kafka_offsets_storage_in_keeper = true, engine_file_truncate_on_insert = true, database_replicated_allow_replicated_engine_arguments = 1, allow_experimental_correlated_subqueries = true, keeper_max_retries = 15, enable_order_by_all = true, allow_named_collection_override_by_default = true, allow_experimental_delta_lake_writes = true, parallel_replicas_for_non_replicated_merge_tree = true, parallel_replicas_for_cluster_engines = false, allow_experimental_database_iceberg = true, allow_experimental_database_unity_catalog = true, allow_experimental_database_glue_catalog = true, allow_experimental_analyzer = true, allow_experimental_materialized_postgresql_table = true, allow_experimental_funnel_functions = true, allow_experimental_nlp_functions = true, allow_experimental_hash_functions = true, allow_experimental_object_type = true, allow_experimental_time_series_table = true, allow_experimental_codecs = true, allow_experimental_join_right_table_sorting = true, allow_experimental_statistics = true, allow_experimental_full_text_index = true, allow_experimental_live_view = true, allow_experimental_database_materialized_postgresql = true, allow_experimental_qbit_type = true, allow_experimental_database_hms_catalog = true, allow_experimental_insert_into_iceberg = true, allow_experimental_iceberg_compaction = true, allow_experimental_bfloat16_type = true, allow_experimental_inverted_index = true, allow_experimental_vector_similarity_index = true, allow_experimental_join_condition = true, allow_experimental_variant_type = true, allow_experimental_dynamic_type = true, allow_experimental_json_type = true, allow_experimental_shared_set_join = true, type_json_skip_duplicated_paths = true, input_format_parquet_allow_geoparquet_parser = true
Metadata
Metadata
Assignees
Labels
bugConfirmed user-visible misbehaviour in official releaseConfirmed user-visible misbehaviour in official releasefuzzProblem found by one of the fuzzersProblem found by one of the fuzzersminorPriority: minorPriority: minor