Repository navigation
Conversation
Follow-up for ClickHouse#105921. Every `Fast test (arm_darwin)` run produces a `SIGILL` ("Illegal instruction") crash report on `macOS 26`. The suspected cause is JIT: JIT-compiled expressions allocate large objects on the stack, and the smaller default stack on macOS turns this into a stack overflow that surfaces as a `SIGILL`. A similar Darwin stack-size issue was handled in ClickHouse#102645. As a reversible mitigation, disable JIT at runtime via a `users.d` profile override (`compile_expressions`, `compile_aggregate_expressions` and `compile_sort_description` set to `0`) applied only to the macOS fast test run. This keeps Linux runs and the production build untouched, so it can be reverted easily once the macOS stack issue is resolved.
|
Workflow [PR], commit [e6e2584] Summary: ✅ AI ReviewSummaryThis PR tries to stabilize Findings
Tests
Final VerdictStatus: Minimum required action: make the Darwin no-JIT override enforceable, or skip all remaining fast tests that can force JIT, then provide a Darwin fast-test run showing the mitigation holds. |
…nfig file Write the macOS no-JIT users.d override from the fast test job itself rather than committing it as tests/config/users.d/no_jit.xml. A file under tests/config/users.d/ could occasionally be picked up by another test configuration; generating it inline keeps it scoped to the macOS fast test run only.
|
@leshikus Could you please open an issue and provide a reproducer? Otherwise it won't be fixed |
|
@Algunenano I will definitely do that - but the first step is to check if disabling jit removes intermittent errors |
|
Confirmed and reproduced locally: |
| config = """<clickhouse> | ||
| <profiles> | ||
| <default> | ||
| <compile_expressions>0</compile_expressions> |
There was a problem hiding this comment.
This does not actually disable JIT for the Darwin fast test. Values under <profiles><default> are just defaults, so a stateless test can still override them with SET or SETTINGS; for example tests/queries/0_stateless/00745_compile_scalar_subquery.sql has no no-fasttest tag and sets compile_expressions = 1, which still lets the server enter LLVM codegen on macOS. Since the PR is meant to remove the stack-overflowing JIT path from this job, please make these settings const/readonly in this override, or explicitly skip the remaining JIT-forcing tests on Darwin, instead of only changing the defaults.
|
It seems disabling JIT really helped with intermittent problems |
Add the 16 tests that fail in `Fast test (arm_darwin)` to `ci/defs/darwin.skip`. Fourteen are distributed / `FileLog` / transaction / `system` tests that fail outright; two (`03716_mutations_parts_in_progress_rmt_2` and `03783_part_log_mutation_ids_rmt`) time out. Extracted from the run: https://github.com/ClickHouse/ClickHouse/actions/runs/27286787681/job/80629773460?pr=106987
…tions The test passes (`stdout: ok`) but leaks `ConnectionPoolWithFailover` connect timeouts to `127.0.0.2:9000` on stderr, which `clickhouse-test` reports as `having stderror`. The macOS run masks it behind `force_success=True`, so the job stays green while logging `Having 1 errors!`. From the run: https://github.com/ClickHouse/ClickHouse/actions/runs/27329849519/job/80742955516?pr=106987
|
At least locally #107033 fixes all the stack related issues, including this JIT one. I'll merge it once it's green |
|
The related problem is fixed #107033 |
Follow-up for #105921.
Every
Fast test (arm_darwin)run produces aSIGILL("Illegal instruction") crash report onmacOS 26. The suspected cause is JIT: JIT-compiled expressions allocate large objects on the stack, and the smaller default stack on macOS turns this into a stack overflow that surfaces as aSIGILL. A similar Darwin stack-size issue was handled in #102645.As a reversible mitigation, this disables JIT at runtime via a
users.dprofile override (compile_expressions,compile_aggregate_expressionsandcompile_sort_descriptionset to0), applied only to the macOS fast test run. Linux runs and the production build are untouched, so this can be reverted easily once the macOS stack issue is resolved. If this proves insufficient, the next step is to disable JIT on Mac at build time.Related: #105921
Related: #102645
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes