Repository navigation
Revert "Print file offsets in the bare fatal stack traces and build the release binary as PIE" - #119279
Merged
Conversation
…he release binary as PIE" This reverts the changes merged in 30c0912 (pull request #117449). The test it added, `05076_error_trace_file_offsets`, has never passed on two configurations and is red on `master` and on every pull request opened since it merged on 2026-09-09: Fast test (arm_darwin) 0 ok / 130 fail Stateless tests (amd_release, parallel, 1/2) 0 ok / 31 fail Stateless tests (arm_release, parallel) 30 ok / 0 fail every other configuration ~2500 ok / 0 fail Both failing configurations produce the same diff: the second column drops from 1 to 0, so no captured frame lies outside the main executable. The `amd_release` runner reproduced it 48 out of 48 times with the randomized settings and 49 out of 49 without them, so it is deterministic rather than flaky, and `arm_release` passes at the same times, so it is not a scheduling artifact. It merged green because neither failing configuration ran the test on the original pull request - `Fast test (arm_darwin)` and the `amd_release` stateless jobs are absent from its results. The Darwin half was since addressed on `master` by 734d678 (pull request #119145), which tags the test `no-darwin`. That tag cannot help `amd_release`, which is still failing on `master` as of 2026-09-10 15:13 - including on a77884d, the very commit that merged the tag. Reverting removes the test altogether, so that tag goes with it. The feature is worth having; it should return with the test guarded for the configurations whose premise it does not match, and with both jobs above exercised before it merges. Related: #117449 Related: #119145
Contributor
alexey-milovidov
added a commit
to ei-grad/ClickHouse
that referenced
this pull request
Sep 10, 2026
Resolves the conflict on 05076_error_trace_file_offsets.sh by taking master's deletion: the test was removed from master by ClickHouse#119279, which reverted ClickHouse#117449. The no-parallel tag this branch added to it goes with the file.
alexey-milovidov
added a commit
to ei-grad/ClickHouse
that referenced
this pull request
Sep 10, 2026
Resolves the conflict on 05076_error_trace_file_offsets.sh by taking master's deletion: the test was removed from master by ClickHouse#119279, which reverted ClickHouse#117449. The no-parallel tag this branch added to it goes with the file.
pull Bot
pushed a commit
to Mu-L/ClickHouse
that referenced
this pull request
Sep 15, 2026
… build the release binary as PIE"" This reverts 34421af (pull request ClickHouse#119279), restoring pull request ClickHouse#117449. ClickHouse#119279 reverted the change to get `master` green: the test it added, `05076_error_trace_file_offsets`, was failing on every release run. The Darwin half had already been fixed on `master` by 734d678 (pull request ClickHouse#119145), whose `no-darwin` tag comes back with this re-land, but `amd_release` was still failing and remains undiagnosed. Do not merge this before that is fixed - it re-introduces a known red job. What is known about the remaining failure: - Only `Stateless tests (amd_release, parallel, 1/2)` fails. `arm_release` passes at the same times, and so does every other configuration. - It is deterministic, not flaky: 48 of 48 runs with the randomized settings and 49 of 49 without them. - It is the second column that fails, dropping from 1 to 0: no captured frame lies outside the main executable, so either every frame is being stored as a file offset, or `max(address_end)` from `system.symbols` is above all of them. - Both release builds are configured identically apart from the toolchain file, and both set `ENABLE_THINLTO=1`. Before this change PIE was gated on `NOT ENABLE_THINLTO`, so the release builds are exactly the ones whose PIE status it flips - and only the amd64 one fails. The difference is therefore in architecture-specific link or runtime behaviour, not in the CMake configuration. Related: ClickHouse#117449 Related: ClickHouse#119145 Related: ClickHouse#119279
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #117449 ("Print file offsets in the bare fatal stack traces and build the release binary as PIE", merged as
30c09122aa60on 2026-09-09).Why
The test it added,
05076_error_trace_file_offsets, has never passed on two configurations:Fast test (arm_darwin)Stateless tests (amd_release, parallel, 1/2)Stateless tests (arm_release, parallel)Both produce the same diff - the second column drops from
1to0, so no captured frame lies outside the main executable. Theamd_releaserunner reproduced it 48 out of 48 times with the randomized settings and 49 out of 49 without them, so it is deterministic rather than flaky, andarm_releasepasses at the same times, so it is not a scheduling artifact.It reached
mastergreen because neither failing configuration ran this test on the original pull request:Fast test (arm_darwin)and theamd_releasestateless jobs are absent from its results entirely.The Darwin half is already fixed; the
amd_releasehalf is not#119145 tagged the test
no-darwin(merged 09:49 UTC today), explaining that on DarwinStackTrace::resolveAddresskeeps runtime addresses andsystem.symbolsreports absolute addresses of every loaded image, so neither column can measure anything there. That is correct, and it is an ancestor of every commit below.It cannot help an amd64 Linux release build. On
masteralone, since that fix merged:Stateless tests (amd_release, parallel, 1/2),masteronlyThat includes
a77884d1ffaa, the commit that merged theno-darwintag itself. No commit since touches the test orStackTrace.cpp, and whyamd_releasefails whilearm_releasepasses is undiagnosed - the Darwin explanation does not transfer, since both are ELF and both get-pie.Rather than leave
masterred on every release run while that is worked out, the change is reverted whole. The revert removes the test, so theno-darwintag goes with it.The feature is worth having. It should return with the test guarded for the configurations whose premise it does not match, and with both jobs above exercised before it merges.
Related: #117449
Related: #119145
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/119279]
Version info
26.9.1.1150(included in26.9and later)