Skip to content

Revert "Print file offsets in the bare fatal stack traces and build the release binary as PIE" - #119279

Merged
alexey-milovidov merged 1 commit into
masterfrom
revert-117449-pie-trace-offsets
Sep 10, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
revert-117449-pie-trace-offsets

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Reverts #117449 ("Print file offsets in the bare fatal stack traces and build the release binary as PIE", merged as 30c09122aa60 on 2026-09-09).

Why

The test it added, 05076_error_trace_file_offsets, has never passed on two configurations:

check OK FAIL
Fast test (arm_darwin) 0 130
Stateless tests (amd_release, parallel, 1/2) 0 31
Stateless tests (arm_release, parallel) 30 0
every other configuration ~2500 0

Both 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 reached master green because neither failing configuration ran this test on the original pull request: Fast test (arm_darwin) and the amd_release stateless jobs are absent from its results entirely.

The Darwin half is already fixed; the amd_release half is not

#119145 tagged the test no-darwin (merged 09:49 UTC today), explaining that on Darwin StackTrace::resolveAddress keeps runtime addresses and system.symbols reports 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 master alone, since that fix merged:

OK FAIL last
Stateless tests (amd_release, parallel, 1/2), master only 0 15 2026-09-10 15:43:50

That includes a77884d1ffaa, the commit that merged the no-darwin tag itself. No commit since touches the test or StackTrace.cpp, and why amd_release fails while arm_release passes is undiagnosed - the Darwin explanation does not transfer, since both are ELF and both get -pie.

Rather than leave master red on every release run while that is worked out, the change is reverted whole. The revert removes the test, so the no-darwin 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

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

  • Merged into: 26.9.1.1150 (included in 26.9 and later)

…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
@clickhouse-gh

clickhouse-gh Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [34421af]

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 10, 2026
@alexey-milovidov alexey-milovidov self-assigned this Sep 10, 2026
@alexey-milovidov alexey-milovidov added the blocker This issue / pr blocks a new release label Sep 10, 2026
@alexey-milovidov
alexey-milovidov merged commit ad8622e into master Sep 10, 2026
9 of 12 checks passed
@alexey-milovidov
alexey-milovidov deleted the revert-117449-pie-trace-offsets branch September 10, 2026 16:05
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.
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 10, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker This issue / pr blocks a new release pr-not-for-changelog This PR should not be mentioned in the changelog 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