Skip to content

Test 01111_create_drop_replicated_db_stress caused server process crash #85774

@shankar-iyer

Description

@shankar-iyer

Link

Callstack (null pointer dereference)

clickhouse-server.err.log:2025.08.18 07:36:21.205374 [ 1639 ] {} <Fatal> BaseDaemon: (version 25.8.1.1, build id: 632E9A7DD488C2E6E81B74985E0E31ADB9E343B9, git hash: 6c8f6aae614091998d4fb9675d49c1da6c05974c, architecture: x86_64) (from thread 190983) Received signal 11
clickhouse-server.err.log:2025.08.18 07:36:21.205392 [ 1639 ] {} <Fatal> BaseDaemon: Signal description: Segmentation fault
clickhouse-server.err.log:2025.08.18 07:36:21.205398 [ 1639 ] {} <Fatal> BaseDaemon: Address: 0x77. Access: read. Address not mapped to object.
clickhouse-server.err.log:2025.08.18 07:36:21.205411 [ 1639 ] {} <Fatal> BaseDaemon: Stack trace: 0x0000563018ef126e 0x0000563019c97815 0x0000563019ca47dc 0x000056301a06628e 0x000056301a061a6e 0x000056301d7ebb39 0x000056301d808816 0x00005630237cd2c7 0x00005630237cd87e 0x000056302376cabf 0x000056302376a0cf 0x00007fe609054ac3 0x00007fe6090e6850
clickhouse-server.err.log:2025.08.18 07:36:21.205422 [ 1639 ] {} <Fatal> BaseDaemon: ########################################
clickhouse-server.err.log:2025.08.18 07:36:21.205458 [ 1639 ] {} <Fatal> BaseDaemon: (version 25.8.1.1, build id: 632E9A7DD488C2E6E81B74985E0E31ADB9E343B9, git hash: 6c8f6aae614091998d4fb9675d49c1da6c05974c) (from thread 190983) (query_id: 98bf178e-8a52-4fcb-91d3-727475760474) (query: CREATE TABLE test_pn1kq4eq_repl_01111_5.rmt_31844_31790_341 (`n` int) ENGINE = ReplicatedMergeTree ORDER BY tuple() SETTINGS index_granularity = 34102, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 0.5132519006729126, replace_long_file_name_to_hash = false, max_file_name_length = 128, min_bytes_for_full_part_storage = 271154394, compact_parts_max_bytes_to_buffer = 213180390, compact_parts_max_granules_to_buffer = 100, compact_parts_merge_max_bytes_to_prefetch_part = 6319554, merge_max_block_size = 13712, old_parts_lifetime = 199., prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 2463924, use_const_adaptive_granularity = false, enable_index_granularity_compression = false, concurrent_part_removal_threshold = 79, allow_vertical_merges_from_compact_to_wide_parts = true, enable_block_number_column = true, enable_block_offset_column = false, cache_populated_by_fetch = false, marks_compress_block_size = 22653, primary_key_compress_block_size = 39236, use_primary_key_cache = true, prewarm_primary_key_cache = false, prewarm_mark_cache = true) Received signal Segmentation fault (11)
clickhouse-server.err.log:2025.08.18 07:36:21.205484 [ 1639 ] {} <Fatal> BaseDaemon: Address: 0x77. Access: read. Address not mapped to object.
clickhouse-server.err.log:2025.08.18 07:36:21.205494 [ 1639 ] {} <Fatal> BaseDaemon: Stack trace: 0x0000563018ef126e 0x0000563019c97815 0x0000563019ca47dc 0x000056301a06628e 0x000056301a061a6e 0x000056301d7ebb39 0x000056301d808816 0x00005630237cd2c7 0x00005630237cd87e 0x000056302376cabf 0x000056302376a0cf 0x00007fe609054ac3 0x00007fe6090e6850
clickhouse-server.err.log:2025.08.18 07:36:21.269815 [ 1639 ] {} <Fatal> BaseDaemon: 3.0. inlined from ./contrib/llvm-project/libcxx/include/string:1880: String::__is_long[abi:ne190107]() const
clickhouse-server.err.log:2025.08.18 07:36:21.269856 [ 1639 ] {} <Fatal> BaseDaemon: 3.1. inlined from ./contrib/llvm-project/libcxx/include/string:1001: basic_string
clickhouse-server.err.log:2025.08.18 07:36:21.269873 [ 1639 ] {} <Fatal> BaseDaemon: 3.2. inlined from ./src/Interpreters/DDLWorker.h:76: DB::DDLWorker::getCommonHostID() const
clickhouse-server.err.log:2025.08.18 07:36:21.269892 [ 1639 ] {} <Fatal> BaseDaemon: 3. ./ci/tmp/build/./src/Databases/DatabaseReplicated.cpp:1234: DB::DatabaseReplicated::tryEnqueueReplicatedDDL(std::shared_ptr<DB::IAST> const&, std::shared_ptr<DB::Context const>, DB::QueryFlags) @ 0x0000000014c3f26e
clickhouse-server.err.log:2025.08.18 07:36:21.337958 [ 1639 ] {} <Fatal> BaseDaemon: 4. ./ci/tmp/build/./src/Interpreters/InterpreterCreateQuery.cpp:1731: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x00000000159e5815
clickhouse-server.err.log:2025.08.18 07:36:21.410820 [ 1639 ] {} <Fatal> BaseDaemon: 5. ./ci/tmp/build/./src/Interpreters/InterpreterCreateQuery.cpp:2364: DB::InterpreterCreateQuery::execute() @ 0x00000000159f27dc
clickhouse-server.err.log:2025.08.18 07:36:21.446686 [ 1639 ] {} <Fatal> BaseDaemon: 6. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1561: 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>) @ 0x0000000015db428e
clickhouse-server.err.log:2025.08.18 07:36:21.487111 [ 1639 ] {} <Fatal> BaseDaemon: 7. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1770: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000015dafa6e
clickhouse-server.err.log:2025.08.18 07:36:21.517242 [ 1639 ] {} <Fatal> BaseDaemon: 8. ./ci/tmp/build/./src/Server/TCPHandler.cpp:742: DB::TCPHandler::runImpl() @ 0x0000000019539b39
clickhouse-server.err.log:2025.08.18 07:36:21.567666 [ 1639 ] {} <Fatal> BaseDaemon: 9. ./ci/tmp/build/./src/Server/TCPHandler.cpp:2743: DB::TCPHandler::run() @ 0x0000000019556816
clickhouse-server.err.log:2025.08.18 07:36:21.570107 [ 1639 ] {} <Fatal> BaseDaemon: 10. ./ci/tmp/build/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x000000001f51b2c7
clickhouse-server.err.log:2025.08.18 07:36:21.574018 [ 1639 ] {} <Fatal> BaseDaemon: 11. ./ci/tmp/build/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000001f51b87e
clickhouse-server.err.log:2025.08.18 07:36:21.578771 [ 1639 ] {} <Fatal> BaseDaemon: 12. ./ci/tmp/build/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x000000001f4baabf
clickhouse-server.err.log:2025.08.18 07:36:21.585162 [ 1639 ] {} <Fatal> BaseDaemon: 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:341: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001f4b80cf
clickhouse-server.err.log:2025.08.18 07:36:21.590043 [ 1639 ] {} <Fatal> BaseDaemon: 14. ? @ 0x0000000000094ac3
clickhouse-server.err.log:2025.08.18 07:36:21.590055 [ 1639 ] {} <Fatal> BaseDaemon: 15. ? @ 0x0000000000126850
clickhouse-server.err.log:2025.08.18 07:36:21.590073 [ 1639 ] {} <Fatal> BaseDaemon: Integrity check of the executable skipped because the reference checksum could not be read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky testflaky test found by CI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions