[ip-172-31-18-156] 2025.04.01 09:28:31.444994 [ 2383272 ] <Fatal> BaseDaemon: ########################################
[ip-172-31-18-156] 2025.04.01 09:28:31.445067 [ 2383272 ] <Fatal> BaseDaemon: (version 25.4.1.1493 (official build), build id: 9B5AC4E313A3D3EA9F56914EF1CB3173FB0F8F47, git hash: 3c7b8ff4e284b1de6b3a8810a417155c047bb92f) (from thread 2383240) (query_id: c3d9b704-7be8-4515-93bc-0cd927b8adaa) (query: SELECT 1 FROM d0) Received signal sanitizer trap (-3)
[ip-172-31-18-156] 2025.04.01 09:28:31.445098 [ 2383272 ] <Fatal> BaseDaemon: Sanitizer trap.
[ip-172-31-18-156] 2025.04.01 09:28:31.445129 [ 2383272 ] <Fatal> BaseDaemon: Stack trace: 0x000055557916ef43 0x000055557964f7eb 0x000055556ce9dd30 0x000055556cea8487 0x000055558abf5460 0x000055558abf3ad3 0x000055558acf5012 0x000055557e4933ce 0x000055557e492933 0x000055558033851d 0x0000555580337807 0x0000555582f30be3 0x0000555582f4423c 0x0000555582f420bf 0x0000555582f48e11 0x000055557925122f 0x0000555579258eca 0x00007ffff7ca1e2e 0x00007ffff7d33a4c
[ip-172-31-18-156] 2025.04.01 09:28:31.455836 [ 2383272 ] <Fatal> BaseDaemon: 0.0. inlined from src/Common/StackTrace.cpp:386: StackTrace::tryCapture()
[ip-172-31-18-156] 2025.04.01 09:28:31.455880 [ 2383272 ] <Fatal> BaseDaemon: 0. src/Common/StackTrace.cpp:61: StackTrace::StackTrace() @ 0x0000000023c1af43
[ip-172-31-18-156] 2025.04.01 09:28:31.472183 [ 2383272 ] <Fatal> BaseDaemon: 1. src/Common/SignalHandlers.cpp:212: sanitizerDeathCallback() @ 0x00000000240fb7eb
[ip-172-31-18-156] 2025.04.01 09:28:31.527775 [ 2383272 ] <Fatal> BaseDaemon: 2. __sanitizer::Die() @ 0x0000000017949d30
[ip-172-31-18-156] 2025.04.01 09:28:31.555544 [ 2383272 ] <Fatal> BaseDaemon: 3. ? @ 0x0000000017954487
[ip-172-31-18-156] 2025.04.01 09:28:31.559195 [ 2383272 ] <Fatal> BaseDaemon: 4. base/poco/Foundation/include/Poco/NumericString.h:132: bool Poco::strToInt<int>(char const*, int&, short, char) @ 0x00000000356a1460
[ip-172-31-18-156] 2025.04.01 09:28:31.561731 [ 2383272 ] <Fatal> BaseDaemon: 5.0. inlined from base/poco/Foundation/src/NumberParser.cpp:50: Poco::NumberParser::tryParse(String const&, int&, char)
[ip-172-31-18-156] 2025.04.01 09:28:31.561764 [ 2383272 ] <Fatal> BaseDaemon: 5. base/poco/Foundation/src/NumberParser.cpp:41: Poco::NumberParser::parse(String const&, char) @ 0x000000003569fad3
[ip-172-31-18-156] 2025.04.01 09:28:31.568916 [ 2383272 ] <Fatal> BaseDaemon: 6.0. inlined from base/poco/Util/src/AbstractConfiguration.cpp:497: Poco::Util::AbstractConfiguration::parseInt(String const&)
[ip-172-31-18-156] 2025.04.01 09:28:31.568950 [ 2383272 ] <Fatal> BaseDaemon: 6. base/poco/Util/src/AbstractConfiguration.cpp:137: Poco::Util::AbstractConfiguration::getInt(String const&, int) const @ 0x00000000357a1012
[ip-172-31-18-156] 2025.04.01 09:28:31.578546 [ 2383272 ] <Fatal> BaseDaemon: 7. src/Dictionaries/registerHashedDictionary.cpp:64: DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_4::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr<DB::IDictionarySource>, std::shared_ptr<DB::Context const>, DB::DictionaryKeyType, bool) const @ 0x0000000028f3f3ce
[ip-172-31-18-156] 2025.04.01 09:28:31.587393 [ 2383272 ] <Fatal> BaseDaemon: 8.0. inlined from src/Dictionaries/registerHashedDictionary.cpp:125: operator()<const std::basic_string<char, std::char_traits<char>, std::allocator<char> > &, const DB::DictionaryStructure &, const Poco::Util::AbstractConfiguration &, const std::basic_string<char, std::char_traits<char>, std::allocator<char> > &>
[ip-172-31-18-156] 2025.04.01 09:28:31.587463 [ 2383272 ] <Fatal> BaseDaemon: 8.1. inlined from contrib/llvm-project/libcxx/include/__type_traits/invoke.h:149: decltype(std::declval<DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&>()(std::declval<String const&>(), std::declval<DB::DictionaryStructure const&>(), std::declval<Poco::Util::AbstractConfiguration const&>(), std::declval<String const&>(), std::declval<std::shared_ptr<DB::IDictionarySource>>(), std::declval<std::shared_ptr<DB::Context const>>(), std::declval<bool>())) std::__invoke[abi:ne190107]<DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr<DB::IDictionarySource>, std::shared_ptr<DB::Context const>, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr<DB::IDictionarySource>&&, std::shared_ptr<DB::Context const>&&, bool&&)
[ip-172-31-18-156] 2025.04.01 09:28:31.587520 [ 2383272 ] <Fatal> BaseDaemon: 8.2. inlined from contrib/llvm-project/libcxx/include/__type_traits/invoke.h:216: std::unique_ptr<DB::IDictionary, std::default_delete<DB::IDictionary>> std::__invoke_void_return_wrapper<std::unique_ptr<DB::IDictionary, std::default_delete<DB::IDictionary>>, false>::__call[abi:ne190107]<DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr<DB::IDictionarySource>, std::shared_ptr<DB::Context const>, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr<DB::IDictionarySource>&&, std::shared_ptr<DB::Context const>&&, bool&&)
[ip-172-31-18-156] 2025.04.01 09:28:31.587561 [ 2383272 ] <Fatal> BaseDaemon: 8.3. inlined from contrib/llvm-project/libcxx/include/__functional/function.h:210: ?
[ip-172-31-18-156] 2025.04.01 09:28:31.587593 [ 2383272 ] <Fatal> BaseDaemon: 8. contrib/llvm-project/libcxx/include/__functional/function.h:610: ? @ 0x0000000028f3e933
[ip-172-31-18-156] 2025.04.01 09:28:31.594893 [ 2383272 ] <Fatal> BaseDaemon: 9.0. inlined from contrib/llvm-project/libcxx/include/__functional/function.h:716: ?
[ip-172-31-18-156] 2025.04.01 09:28:31.594926 [ 2383272 ] <Fatal> BaseDaemon: 9. contrib/llvm-project/libcxx/include/__functional/function.h:989: ? @ 0x000000002ade451d
[ip-172-31-18-156] 2025.04.01 09:28:31.601720 [ 2383272 ] <Fatal> BaseDaemon: 10. src/Dictionaries/DictionaryFactory.cpp:58: DB::DictionaryFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x000000002ade3807
[ip-172-31-18-156] 2025.04.01 09:28:31.612117 [ 2383272 ] <Fatal> BaseDaemon: 11. src/Interpreters/ExternalDictionariesLoader.cpp:47: DB::ExternalDictionariesLoader::createObject(String const&, Poco::Util::AbstractConfiguration const&, String const&, String const&) const @ 0x000000002d9dcbe3
[ip-172-31-18-156] 2025.04.01 09:28:31.647352 [ 2383272 ] <Fatal> BaseDaemon: 12. src/Interpreters/ExternalLoader.cpp:1043: DB::ExternalLoader::LoadingDispatcher::loadSingleObject(String const&, DB::ExternalLoader::ObjectConfig const&, std::shared_ptr<DB::IExternalLoadable const>) @ 0x000000002d9f023c
[ip-172-31-18-156] 2025.04.01 09:28:31.678609 [ 2383272 ] <Fatal> BaseDaemon: 13. src/Interpreters/ExternalLoader.cpp:998: DB::ExternalLoader::LoadingDispatcher::doLoading(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>) @ 0x000000002d9ee0bf
[ip-172-31-18-156] 2025.04.01 09:28:31.701130 [ 2383272 ] <Fatal> BaseDaemon: 14.0. inlined from contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117: decltype(*std::declval<DB::ExternalLoader::LoadingDispatcher*&>().*std::declval<void (DB::ExternalLoader::LoadingDispatcher::*&)(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>)>()(std::declval<String&>(), std::declval<unsigned long&>(), std::declval<bool&>(), std::declval<unsigned long&>(), std::declval<bool&>(), std::declval<std::shared_ptr<DB::ThreadGroup>&>())) std::__invoke[abi:ne190107]<void (DB::ExternalLoader::LoadingDispatcher::*&)(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>), DB::ExternalLoader::LoadingDispatcher*&, String&, unsigned long&, bool&, unsigned long&, bool&, std::shared_ptr<DB::ThreadGroup>&, void>(void (DB::ExternalLoader::LoadingDispatcher::*&)(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>), DB::ExternalLoader::LoadingDispatcher*&, String&, unsigned long&, bool&, unsigned long&, bool&, std::shared_ptr<DB::ThreadGroup>&)
[ip-172-31-18-156] 2025.04.01 09:28:31.701184 [ 2383272 ] <Fatal> BaseDaemon: 14.1. inlined from contrib/llvm-project/libcxx/include/tuple:1354: decltype(auto) std::__apply_tuple_impl[abi:ne190107]<void (DB::ExternalLoader::LoadingDispatcher::*&)(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>), std::tuple<DB::ExternalLoader::LoadingDispatcher*, String, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>>&, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul>(void (DB::ExternalLoader::LoadingDispatcher::*&)(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>), std::tuple<DB::ExternalLoader::LoadingDispatcher*, String, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>>&, std::__tuple_indices<0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul>)
[ip-172-31-18-156] 2025.04.01 09:28:31.701232 [ 2383272 ] <Fatal> BaseDaemon: 14.2. inlined from contrib/llvm-project/libcxx/include/tuple:1358: decltype(auto) std::apply[abi:ne190107]<void (DB::ExternalLoader::LoadingDispatcher::*&)(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>), std::tuple<DB::ExternalLoader::LoadingDispatcher*, String, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>>&>(void (DB::ExternalLoader::LoadingDispatcher::*&)(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>), std::tuple<DB::ExternalLoader::LoadingDispatcher*, String, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>>&)
[ip-172-31-18-156] 2025.04.01 09:28:31.701278 [ 2383272 ] <Fatal> BaseDaemon: 14. src/Common/ThreadPool.h:312: ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<void (DB::ExternalLoader::LoadingDispatcher::*)(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>), DB::ExternalLoader::LoadingDispatcher*, String&, unsigned long&, bool&, unsigned long&, bool, std::shared_ptr<DB::ThreadGroup>>(void (DB::ExternalLoader::LoadingDispatcher::*&&)(String const&, unsigned long, bool, unsigned long, bool, std::shared_ptr<DB::ThreadGroup>), DB::ExternalLoader::LoadingDispatcher*&&, String&, unsigned long&, bool&, unsigned long&, bool&&, std::shared_ptr<DB::ThreadGroup>&&)::'lambda'()::operator()() @ 0x000000002d9f4e11
[ip-172-31-18-156] 2025.04.01 09:28:31.712257 [ 2383272 ] <Fatal> BaseDaemon: 15.0. inlined from contrib/llvm-project/libcxx/include/__functional/function.h:716: ?
[ip-172-31-18-156] 2025.04.01 09:28:31.712287 [ 2383272 ] <Fatal> BaseDaemon: 15.1. inlined from contrib/llvm-project/libcxx/include/__functional/function.h:989: ?
[ip-172-31-18-156] 2025.04.01 09:28:31.712322 [ 2383272 ] <Fatal> BaseDaemon: 15. src/Common/ThreadPool.cpp:809: ThreadPoolImpl<std::thread>::ThreadFromThreadPool::worker() @ 0x0000000023cfd22f
[ip-172-31-18-156] 2025.04.01 09:28:31.731962 [ 2383272 ] <Fatal> BaseDaemon: 16.0. inlined from contrib/llvm-project/libcxx/include/__type_traits/invoke.h:117: decltype(*std::declval<ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>().*std::declval<void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)()>()()) std::__invoke[abi:ne190107]<void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*, void>(void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*&&)
[ip-172-31-18-156] 2025.04.01 09:28:31.732003 [ 2383272 ] <Fatal> BaseDaemon: 16.1. inlined from contrib/llvm-project/libcxx/include/__thread/thread.h:192: void std::__thread_execute[abi:ne190107]<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*, 2ul>(std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>&, std::__tuple_indices<2ul>)
[ip-172-31-18-156] 2025.04.01 09:28:31.732049 [ 2383272 ] <Fatal> BaseDaemon: 16. contrib/llvm-project/libcxx/include/__thread/thread.h:201: void* std::__thread_proxy[abi:ne190107]<std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>>(void*) @ 0x0000000023d04eca
[ip-172-31-18-156] 2025.04.01 09:28:31.732084 [ 2383272 ] <Fatal> BaseDaemon: 17. ? @ 0x00007ffff7ca1e2e
[ip-172-31-18-156] 2025.04.01 09:28:31.732120 [ 2383272 ] <Fatal> BaseDaemon: 18. ? @ 0x00007ffff7d33a4c
[ip-172-31-18-156] 2025.04.01 09:28:31.994962 [ 2383272 ] <Fatal> BaseDaemon: Integrity check of the executable successfully passed (checksum: 5DED61E6AB091E642AF84C45990CBED2)
[ip-172-31-18-156] 2025.04.01 09:28:32.250582 [ 2383272 ] <Fatal> BaseDaemon: Changed settings: allow_reorder_prewhere_conditions = 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, allow_nonconst_timezone_arguments = 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_execute_multiif_columnar = true, allow_drop_detached = true, allow_materialized_view_with_bad_select = true, allow_settings_after_format_in_insert = true, allow_nondeterministic_mutations = true, allow_non_metadata_alters = true, allow_experimental_kafka_offsets_storage_in_keeper = true, allow_unrestricted_reads_from_keeper = true, allow_deprecated_database_ordinary = true, allow_deprecated_syntax_for_merge_tree = true, allow_get_client_http_header = true, allow_create_index_without_type = true, allow_named_collection_override_by_default = true, allow_deprecated_error_prone_window_functions = true, allow_deprecated_snowflake_conversion_functions = true, allow_experimental_parallel_reading_from_replicas = 1, cluster_for_parallel_replicas = 'test_cluster_one_shard_two_replicas', parallel_replicas_for_non_replicated_merge_tree = true, parallel_replicas_for_cluster_engines = false, allow_experimental_analyzer = true, allow_experimental_variant_type = true, allow_experimental_dynamic_type = true, allow_experimental_json_type = 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_vector_similarity_index = true, allow_experimental_codecs = true, allow_experimental_shared_set_join = true, allow_experimental_join_right_table_sorting = true, allow_experimental_statistics = true, allow_archive_path_syntax = true, allow_experimental_inverted_index = true, allow_experimental_full_text_index = true, allow_experimental_join_condition = true, allow_experimental_live_view = true, allow_experimental_window_view = true, allow_experimental_database_materialized_postgresql = true, allow_experimental_database_iceberg = true, allow_experimental_kusto_dialect = true, allow_experimental_prql_dialect = true, allow_experimental_ts_to_grid_aggregate_function = true, allow_experimental_bfloat16_type = true, type_json_skip_duplicated_paths = true
Describe the bug
It seems the
SHARD_LOAD_QUEUE_BACKLOGparameter is not validated for large numbers.How to reproduce
Run Fiddle: https://fiddle.clickhouse.com/6a592dd6-b6e7-40e5-aee2-dc38309e9b01
With UBSAN, the SELECT gives:
Error message and/or stacktrace
Stack trace: