Skip to content

Segfault in RefreshTask::alterRefreshParams #78693

@tavplubix

Description

@tavplubix

https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=a06c641c9fc074ee780bb36b4d2725f758e0be4a&name_0=MasterCI&name_1=Stress%20test%20%28msan%29

 [ 31362 ] {} <Fatal> BaseDaemon: ########## Short fault info ############
 [ 31362 ] {} <Fatal> BaseDaemon: (version 25.4.1.1556 (official build), build id: 9618F6A5DF2C69B946BC09B68F7F996F6547ADE8, git hash: a06c641c9fc074ee780bb36b4d2725f758e0be4a, architecture: x86_64) (from thread 23354) Received signal 11
 [ 31362 ] {} <Fatal> BaseDaemon: Signal description: Segmentation fault
 [ 31362 ] {} <Fatal> BaseDaemon: Address: 0x178. Access: read. Address not mapped to object.
 [ 31362 ] {} <Fatal> BaseDaemon: Stack trace: 0x000055d2ba954e3e 0x000055d2bb35e532 0x000055d2a3771bae 0x00007fa58488e520 0x000055d2c959530c 0x000055d2d54289e1 0x000055d2d3205994 0x000055d2cd412ba1 0x000055d2cd40b090 0x000055d2ce2ac0a5 0x000055d2ce29c819 0x000055d2d59594e1 0x000055d2d59c0e7c 0x000055d2dbfd4860 0x000055d2dbfd5792 0x000055d2dbead915 0x000055d2dbeaa70e 0x000055d2dbea7291 0x00007fa5848e0ac3 0x00007fa584972850
 [ 31362 ] {} <Fatal> BaseDaemon: ########################################
 [ 31362 ] {} <Fatal> BaseDaemon: (version 25.4.1.1556 (official build), build id: 9618F6A5DF2C69B946BC09B68F7F996F6547ADE8, git hash: a06c641c9fc074ee780bb36b4d2725f758e0be4a) (from thread 23354) (query_id: 3b9c4f59-f7f6-4134-aaa1-e18432af1edb) (query: alter table test_11_03258.v modify query select throwIf(1) as x) Received signal Segmentation fault (11)
 [ 31362 ] {} <Fatal> BaseDaemon: Address: 0x178. Access: read. Address not mapped to object.
 [ 31362 ] {} <Fatal> BaseDaemon: Stack trace: 0x000055d2ba954e3e 0x000055d2bb35e532 0x000055d2a3771bae 0x00007fa58488e520 0x000055d2c959530c 0x000055d2d54289e1 0x000055d2d3205994 0x000055d2cd412ba1 0x000055d2cd40b090 0x000055d2ce2ac0a5 0x000055d2ce29c819 0x000055d2d59594e1 0x000055d2d59c0e7c 0x000055d2dbfd4860 0x000055d2dbfd5792 0x000055d2dbead915 0x000055d2dbeaa70e 0x000055d2dbea7291 0x00007fa5848e0ac3 0x00007fa584972850
 [ 31362 ] {} <Fatal> BaseDaemon: 0.0. inlined from ./ci/tmp/build/./src/Common/StackTrace.cpp:386: StackTrace::tryCapture()
 [ 31362 ] {} <Fatal> BaseDaemon: 0. ./ci/tmp/build/./src/Common/StackTrace.cpp:355: StackTrace::StackTrace(ucontext_t const&) @ 0x000000001fc9ee3e
 [ 31362 ] {} <Fatal> BaseDaemon: 1. ./ci/tmp/build/./src/Common/SignalHandlers.cpp:106: signalHandler(int, siginfo_t*, void*) @ 0x00000000206a8532
 [ 31362 ] {} <Fatal> BaseDaemon: 2. SignalAction(int, void*, void*) @ 0x0000000008abbbae
 [ 31362 ] {} <Fatal> BaseDaemon: 3. ? @ 0x00007fa58488e520
 [ 31362 ] {} <Fatal> BaseDaemon: 4.0. inlined from ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:1480: std::weak_ptr<DB::Context>::lock() const
 [ 31362 ] {} <Fatal> BaseDaemon: 4. ./src/Interpreters/Context_fwd.h:41: DB::WithContextImpl<std::shared_ptr<DB::Context>>::getContext() const @ 0x000000002e8df30c
 [ 31362 ] {} <Fatal> BaseDaemon: 5. ./ci/tmp/build/./src/Storages/MaterializedView/RefreshTask.cpp:240: DB::RefreshTask::alterRefreshParams(DB::ASTRefreshStrategy const&) @ 0x000000003a7729e1
 [ 31362 ] {} <Fatal> BaseDaemon: 6. ./ci/tmp/build/./src/Storages/StorageMaterializedView.cpp:681: DB::StorageMaterializedView::alter(DB::AlterCommands const&, std::shared_ptr<DB::Context const>, std::unique_lock<std::timed_mutex>&) @ 0x000000003854f994
 [ 31362 ] {} <Fatal> BaseDaemon: 7. ./ci/tmp/build/./src/Interpreters/InterpreterAlterQuery.cpp:217: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000003275cba1
 [ 31362 ] {} <Fatal> BaseDaemon: 8. ./ci/tmp/build/./src/Interpreters/InterpreterAlterQuery.cpp:78: DB::InterpreterAlterQuery::execute() @ 0x0000000032755090
 [ 31362 ] {} <Fatal> BaseDaemon: 9. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1458: DB::executeQueryImpl(char const*, char const*, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*, std::shared_ptr<DB::IAST>&) @ 0x00000000335f60a5
 [ 31362 ] {} <Fatal> BaseDaemon: 10. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1625: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000335e6819
 [ 31362 ] {} <Fatal> BaseDaemon: 11. ./ci/tmp/build/./src/Server/TCPHandler.cpp:665: DB::TCPHandler::runImpl() @ 0x000000003aca34e1
 [ 31362 ] {} <Fatal> BaseDaemon: 12. ./ci/tmp/build/./src/Server/TCPHandler.cpp:2630: DB::TCPHandler::run() @ 0x000000003ad0ae7c
 [ 31362 ] {} <Fatal> BaseDaemon: 13. ./ci/tmp/build/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x000000004131e860
 [ 31362 ] {} <Fatal> BaseDaemon: 14. ./ci/tmp/build/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000004131f792
 [ 31362 ] {} <Fatal> BaseDaemon: 15. ./ci/tmp/build/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x00000000411f7915
 [ 31362 ] {} <Fatal> BaseDaemon: 16. ./ci/tmp/build/./base/poco/Foundation/src/Thread.cpp:45: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000411f470e
 [ 31362 ] {} <Fatal> BaseDaemon: 17. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000411f1291
 [ 31362 ] {} <Fatal> BaseDaemon: 18. ? @ 0x00007fa5848e0ac3
 [ 31362 ] {} <Fatal> BaseDaemon: 19. ? @ 0x00007fa584972850
 [ 31362 ] {} <Fatal> BaseDaemon: Integrity check of the executable successfully passed (checksum: 52C808371C051F1780FCE47E1AD50C38)
 [ 31362 ] {} <Fatal> BaseDaemon: Report this error to https://github.com/ClickHouse/ClickHouse/issues
 [ 31362 ] {} <Fatal> BaseDaemon: Changed settings: min_compress_block_size = 1143955, max_compress_block_size = 2462885, max_block_size = 27252, min_external_table_block_size_bytes = 0, max_joined_block_size_rows = 82865, max_insert_threads = 2, max_threads = 3, max_read_buffer_size = 806171, connect_timeout_with_failover_ms = 2000, connect_timeout_with_failover_secure_ms = 3000, idle_connection_timeout = 36000, s3_max_get_rps = 1000000, s3_max_get_burst = 2000000, s3_max_put_rps = 1000000, s3_max_put_burst = 2000000, s3_check_objects_after_upload = true, max_remote_read_network_bandwidth = 1000000000000, max_remote_write_network_bandwidth = 1000000000000, max_local_read_bandwidth = 1000000000000, max_local_write_bandwidth = 1000000000000, stream_like_engine_allow_direct_select = true, replication_wait_for_inactive_replica_timeout = 30, min_count_to_compile_expression = 0, min_count_to_compile_sort_description = 0, group_by_two_level_threshold = 828487, group_by_two_level_threshold_bytes = 43675128, distributed_aggregation_memory_efficient = false, enable_memory_bound_merging_of_aggregation_results = false, allow_nonconst_timezone_arguments = true, group_by_use_nulls = true, min_chunk_bytes_for_parallel_parsing = 6327316, merge_tree_coarse_index_granularity = 7, min_bytes_to_use_direct_io = 3334097162, min_bytes_to_use_mmap_io = 1, log_queries = true, insert_quorum_timeout = 60000, table_function_remote_max_addresses = 200, memory_tracker_fault_probability = 0.0010000000474974513, merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability = 0.03999999910593033, http_response_buffer_size = 10014888, fsync_metadata = false, http_send_timeout = 60., http_receive_timeout = 60., use_index_for_in_with_subqueries_max_values = 1000000000, enable_zstd_qat_codec = true, enable_deflate_qpl_codec = true, opentelemetry_start_trace_probability = 0.10000000149011612, max_rows_to_read = 20000000, max_bytes_to_read = 1000000000000, max_bytes_to_read_leaf = 1000000000000, max_rows_to_group_by = 10000000000, max_bytes_ratio_before_external_group_by = 0., max_rows_to_sort = 10000000000, max_bytes_to_sort = 10000000000, prefer_external_sort_block_bytes = 0, max_bytes_ratio_before_external_sort = 0.2, max_bytes_before_remerge_sort = 719172660, max_result_rows = 1000000000, max_result_bytes = 1000000000, max_execution_time = 60., max_execution_time_leaf = 600., max_execution_speed = 100000000000, max_execution_speed_bytes = 10000000000000, timeout_before_checking_execution_speed = 300., max_estimated_execution_time = 600., max_columns_to_read = 20000, max_temporary_columns = 20000, max_temporary_non_const_columns = 20000, max_rows_in_set = 10000000000, max_bytes_in_set = 10000000000, max_rows_in_join = 10000000000, max_bytes_in_join = 10000000000, join_algorithm = \'parallel_hash\', cross_join_min_rows_to_compress = 100000000, cross_join_min_bytes_to_compress = 0, max_rows_to_transfer = 1000000000, max_bytes_to_transfer = 1000000000, max_r
 [ 3336 ] {} <Fatal> Application: Child process was terminated by signal 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions