Repository navigation
Description
Important: This issue was automatically generated and is used by CI for matching failures. DO NOT modify the body content. DO NOT remove labels.
Test name: Logical error: 'Pipeline stuck. Current state: (STID: 3833-2f20)
CI report: AST fuzzer (amd_debug)
Failing test history: cidb
Test output:
Error:
Logical error: 'Pipeline stuck. Current state:
digraph
{
rankdir="LR";
{ node [shape = rect]
n0[label="NumbersRange_0:(13 jobs, execution time: 0 sec., preparation time: 0.000010597 sec.) (PortFull)"];
n1[label="NumbersRange_1:(92 jobs, execution time: 0 sec., preparation time: 0.000089961 sec.) (Finished)"];
n2[label="NumbersRange_2:(99 jobs, execution time: 0 sec., preparation time: 0.000096734 sec.) (Finished)"];
n3[label="NumbersRange_3:(87 jobs, execution time: 0 sec., preparation time: 0.000074075 sec.) (Finished)"];
n4[label="NumbersRange_4:(113 jobs, execution time: 0 sec., preparation time: 0.000110756 sec.) (Finished)"];
---
Failed query:
SELECT sum(a[length(a)]) FROM (SELECT groupArray(number) IGNORE NULLS OVER (PARTITION BY modulo(number, 11) ORDER BY modulo(number, 1111) ASC, number ASC) AS a FROM numbers_mt(10000)) SETTINGS max_block_size = 7
---
Reproduce commands (auto-generated; may require manual adjustment):
SELECT sum(a[length(a)]) FROM (SELECT groupArray(number) IGNORE NULLS OVER (PARTITION BY modulo(number, 11) ORDER BY modulo(number, 1111) ASC, number ASC) AS a FROM numbers_mt(10000)) SETTINGS max_block_size = 7;
DROP TABLE IF EXISTS numbers_mt(10000);
---
Stack trace:
__pthread_kill @ 0x00000000000969fd
raise @ 0x0000000000042476
__lgamma_r_finite@GLIBC_2.15 @ 0x00000000000287f3
/ClickHouse/src/Common/Exception.cpp:57:5: DB::abortOnFailedAssertion(String const&, std::basic_string_view<char, std::char_traits<char>>, void* const*, unsigned long, unsigned long) @ 0x0000000016569d1d
/ClickHouse/src/Common/Exception.cpp:90:13: DB::handle_error_code(String const&, std::basic_string_view<char, std::char_traits<char>>, int, bool, std::vector<void*, std::allocator<void*>> const&) @ 0x000000001656b10d
/ClickHouse/src/Common/Exception.cpp:143:19: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000001656b3f9
/ClickHouse/src/Common/Exception.h:172:100: DB::Exception::Exception(String&&, int, String, bool) @ 0x000000000db48894
/ClickHouse/src/Common/Exception.h:58:54: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000db48391
/ClickHouse/src/Common/Exception.h:190:77: DB::Exception::Exception<String, String>(int, FormatStringHelperImpl<std::type_identity<String>::type, std::type_identity<String>::type>, String&&, String&&) @ 0x000000000db467c6
/ClickHouse/src/Processors/Executors/PipelineExecutor.cpp:274:15: DB::PipelineExecutor::finalizeExecution() @ 0x000000002032b131
/ClickHouse/src/Processors/Executors/PipelineExecutor.cpp:161:5: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000020329f44
inlined from /ClickHouse/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:76: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr<DB::ThreadGroup>, unsigned long, bool)
inlined from /ClickHouse/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:102: operator()
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87: std::__invoke_result_impl<void, DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>::type std::__invoke[abi:se210105]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&)
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/tuple:1380: decltype(auto) std::__apply_tuple_impl[abi:se210105]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<...>)
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/tuple:1384: decltype(auto) std::apply[abi:se210105]<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&)
inlined from /ClickHouse/src/Common/ThreadPool.h:312: operator()
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/__type_traits/invoke.h:87: std::__invoke_result_impl<void, ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>::type std::__invoke[abi:se210105]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&)
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/__type_traits/invoke.h:342: void std::__invoke_void_return_wrapper<void, true>::__call[abi:se210105]<ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&)
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/__type_traits/invoke.h:348: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0 std::__invoke_r[abi:se210105]<void, ThreadFromGlobalPoolImpl<true, true>::ThreadFromGlobalPoolImpl<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>()
/ClickHouse/contrib/llvm-project/libcxx/include/__functional/function.h:450:24: ? @ 0x0000000020341bd7
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/__functional/function.h:508: ?
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/__functional/function.h:772: ?
/ClickHouse/src/Common/ThreadPool.cpp:811:12: ThreadPoolImpl<std::thread>::ThreadFromThreadPool::worker() @ 0x00000000166b7943
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/__type_traits/invoke.h:0: std::__invoke_result_impl<void, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>::type std::__invoke[abi:se210105]<void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>(void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*&&)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*&&)
inlined from /ClickHouse/contrib/llvm-project/libcxx/include/__thread/thread.h:159: void std::__thread_execute[abi:se210105]<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>)
/ClickHouse/contrib/llvm-project/libcxx/include/__thread/thread.h:168: void* std::__thread_proxy[abi:se210105]<std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void (ThreadPoolImpl<std::thread>::ThreadFromThreadPool::*)(), ThreadPoolImpl<std::thread>::ThreadFromThreadPool*>>(void*) @ 0x00000000166be4ce
start_thread @ 0x0000000000094ac3
clone3 @ 0x00000000001268c0
Version info
- Resolved by: Add a test for pipeline suck with sort overflow and window functions #98543
- Merged into:
26.3.1.453
Activity
alexey-milovidov commentedon Aug 3, 2024
@KochetovNicolai, it failed: https://s3.amazonaws.com/clickhouse-test-reports/67645/b1e6c9b543f4d7647874a54fcf7f0aecc25efb9c/ast_fuzzer__tsan_.html
alexey-milovidov commentedon Aug 16, 2024
@KochetovNicolai Pipeline stuck in the test: https://s3.amazonaws.com/clickhouse-test-reports/66837/7b7c4d008f67453b00129ce5211287cd891d36a4/stateless_tests__aarch64_.html
al13n321 commentedon Aug 16, 2024
https://s3.amazonaws.com/clickhouse-test-reports/68433/253188381759d062967c9bb3b9d0907f30eab61a/stateless_tests__tsan__[2_4].html
Also https://s3.amazonaws.com/clickhouse-test-reports/68433/253188381759d062967c9bb3b9d0907f30eab61a/stateless_tests__tsan__[4_4].html with a different test and query and smaller graph:
alexey-milovidov commentedon Aug 16, 2024
@KochetovNicolai Pipeline stuck: https://s3.amazonaws.com/clickhouse-test-reports/68435/c80ab00b15d0534fe0b38128ad3295d04eec502b/stress_test__tsan_.html
Avogar commentedon Aug 18, 2024
One more: https://s3.amazonaws.com/clickhouse-test-reports/68459/c85d5e753899503f93a8f9ca7b67776d386d9130/stateless_tests__msan__[3_4].html
alexey-milovidov commentedon Aug 18, 2024
@KochetovNicolai, it is stuck: https://s3.amazonaws.com/clickhouse-test-reports/68482/784a1a1e30476923c5f79335dbde5e43b6005569/stateless_tests__msan__[2_4].html
tavplubix commentedon Sep 26, 2024
https://s3.amazonaws.com/clickhouse-test-reports/69093/5f2414a1e3372e86d43e9377761d87549d7d60be/ast_fuzzer__asan_.html
https://pastila.nl/?0002d5b1/b7452508649deb5bf49f666fb6b07239#Q4L3C4LLxdV9XsETuE3VsQ==
alexkats commentedon Nov 28, 2024
Another one: https://s3.amazonaws.com/clickhouse-test-reports/72427/622bb661ee9882faa6a6c46c26dbc67b947524df/ast_fuzzer__debug_.html
PedroTadim commentedon Jun 6, 2025
Simplified here: https://fiddle.clickhouse.com/170afd79-f40b-470a-a2de-ccb7e9fc72e9. The issue doesn't always happen, so it may be a race condition somewhere. Also, the result is not deterministic.
serxa commentedon Jun 16, 2025
One more repro https://s3.amazonaws.com/clickhouse-test-reports/PRs/81250/19e8dc7a931e7f4ba430318e51e0946d2dbb0645//stress_test_amd_tsan/fatal_messages.txt
kssenii commentedon Aug 14, 2025
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=85287&sha=2dc5aee349b2dce53e135c7aa1b70c7002b9fee5&name_0=PR&name_1=Stateless%20tests%20%28amd_ubsan%2C%20sequential%29
azat commentedon Aug 18, 2025
Became more and more frequent in the past days - https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=85743&sha=latest&name_0=PR&name_1=Stateless+tests+%28amd_debug%2C+sequential%29
kssenii commentedon Aug 19, 2025
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=85783&sha=9897271fc2469732be41fa3ce3737f5367bdd431&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20sequential%29
PedroTadim commentedon Nov 26, 2025
BuzzHouse finally reproduced it: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=fb95ad52a887cc3c665a83c7af46c8c309c8caba&name_0=MasterCI&name_1=BuzzHouse+%28arm_asan%29
nickitat commentedon Jan 26, 2026
There were a few errors recently: link
Fix "Pipeline stuck" exception in `ResizeProcessor` due to stale `wai…
Fix "Pipeline stuck" deadlock in `PingPongProcessor` with `full_sorti…
alexey-milovidov commentedon Mar 2, 2026
Tested the fiddle from comments on current master (ed6302e) with
clickhouse-local. The issue appears to be fixed — the query completes successfully without pipeline getting stuck:No pipeline stall. This can be closed once a regression test is added.
Add a test for pipeline stuck with sort overflow and window functions
[-]Pipeline stuck[/-][+]Pipeline suck[/+]alexey-milovidov commentedon Mar 2, 2026
Not fixed!
Fix pipeline stuck with `sort_overflow_mode = 'break'` and window fun…
Fix flaky test 04007_pipeline_stuck_ping_pong_deadlock
Address review: cover filter-by-set-on-the-fly under the sharded merg…