Skip to content

ci: install core_dump.yaml so coredumps are not capped at 1 GiB - #105631

Merged
Algunenano merged 2 commits into
ClickHouse:masterfrom
Algunenano:ci-install-core-dump-yaml
May 26, 2026
Merged

Algunenano merged 2 commits into
ClickHouse:masterfrom
Algunenano:ci-install-core-dump-yaml

Conversation

@Algunenano

@Algunenano Algunenano commented May 22, 2026 •

Copy link
Copy Markdown
Member

tests/config/config.d/core_dump.yaml was added in 41df483 to centralize the RLIMIT_CORE override for CI to 100 GiB, but it was never linked into /etc/clickhouse-server/config.d/ by tests/config/install.sh. The server therefore falls back to the C++ default of 1 GiB (programs/server/Server.cpp:2598), which truncates core dumps from large processes well before the relevant memory regions are written.

Symptom: the encrypted core artifact attached to a stateless tests run decompresses to a coredump whose PT_LOAD headers reference offsets far past EOF. Most LOAD segments referenced in the headers - including the fault page and the crashing thread's signal stack - are missing, so even with the correct binary and decryption key the dump is effectively unusable for post-mortem analysis.

Refs: #105626

cc @leshikus

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

tests/config/config.d/core_dump.yaml was added in 41df483 to centralize
the RLIMIT_CORE override for CI to 100 GiB, but it was never linked into
/etc/clickhouse-server/config.d/ by tests/config/install.sh. The server
therefore falls back to the C++ default of 1 GiB
(programs/server/Server.cpp:2598), which truncates core dumps from large
processes well before the relevant memory regions are written.

Symptom: the encrypted core dump artifact attached to a stateless tests
run decompresses to a coredump whose PT_LOAD headers reference offsets far
past EOF. Most of the LOAD segments referenced in the headers, including
the fault page and the crashing thread's signal stack, are missing.

Link the YAML alongside the other config.d entries so the override
actually takes effect.

Refs: ClickHouse#105626
@clickhouse-gh

clickhouse-gh Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [0469806]

Summary: ✅


AI Review

Summary

This PR updates tests/config/install.sh to install tests/config/config.d/core_dump.yaml into config.d, so CI servers actually apply the intended core_dump.size_limit override instead of falling back to the 1 GiB default. The change is scoped, consistent with existing config installation patterns, and I found no unresolved correctness, safety, or reliability concerns in the current code.

Final Verdict
  • Status: ✅ Approve

@Algunenano
Algunenano added this pull request to the merge queue May 26, 2026
Merged via the queue into ClickHouse:master with commit 6a6b592 May 26, 2026
166 checks passed
@Algunenano
Algunenano deleted the ci-install-core-dump-yaml branch May 26, 2026 08:19
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants