Skip to content

Backport #115704 to 26.3: Do not expose uninitialized memory in query results - #115927

Merged
alexey-milovidov merged 2 commits into
26.3from
backport/26.3/115704
Aug 26, 2026
Merged

alexey-milovidov merged 2 commits into
26.3from
backport/26.3/115704

Conversation

@robot-ch-test-poll4

@robot-ch-test-poll4 robot-ch-test-poll4 commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #115704

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.3.23.6

@robot-ch-test-poll4 robot-ch-test-poll4 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Aug 22, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [35293f6]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The only CI failure, test_distributed_frozen_replica/test.py::test_cluster_all_replicas_query[3-test_cluster], is unrelated to this backport: docker compose pause failed at the runner level with OCI runtime pause failed: unable to freeze before the test logic ran. CIDB shows this error appeared only twice in 30 days (once on master), so it is a rare Docker/cgroup infrastructure flake. I merged the current 26.3 into the branch to re-run CI. @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115927&sha=0aa064d308b1eafb2692193859266c7f551f4569&name_0=BackportPR&name_1=Integration%20tests%20%28amd_asan%2C%20db%20disk%2C%20old%20analyzer%2C%206%2F6%29 and provide a fix in a separate PR if there is anything fixable. If the fix is already in progress, link it here.

@groeneai

Copy link
Copy Markdown
Collaborator

Confirmed unrelated to this backport, and it is fixable: this is a backport gap, and the fix is already merged on master.

The traceback puts the failure inside the pause helper itself, before any test logic runs:

helpers/cluster.py:4092 - in pause_container
    self._pause_container(instance_name)
helpers/cluster.py:4075 - in _pause_container
    subprocess_check_call(self.base_cmd + ["pause", instance_name])
Exception: ... OCI runtime pause failed: unable to freeze: unknown

On 26.3, pause_container calls _pause_container bare, so a failed docker compose pause propagates and fails the test at setup. On master that call is wrapped in try/except with a SIGSTOP fallback, added by #103075 (merged 2026-04-19). 26.3 was cut on 2026-03-19, a month earlier, so it never received it. Checking tests/integration/helpers/cluster.py per branch: the fallback is present on 26.5, 26.6, 26.7, 26.8 and absent on 26.3 and 25.8.

This is a different failure mode from #104167 (the pause-effective probe), which covers pause succeeding but not yet being observable to fresh connections. Here pause fails outright, so the probe would never be reached.

One correction to the CIDB figures: both 30-day hits are on the 26.3 lineage, neither on master. head_ref is 26.3 for the 2026-07-29 ReleaseBranchCI hit and backport/26.3/115704 here. Widening the window, the signature has 22 hits on this test since 2026-03-01, and one of those was on master, on 2026-04-17, two days before #103075 merged. I resolved the head commit of every hit after that date: all of them are on trees that do not contain #103075.

Requested action: apply v26.3-must-backport to #103075. That expands to 26.3, 26.5, 26.6, 26.7, 26.8; the four newer branches already contain the change, so the automation skips them and only the 26.3 backport is created. The patch applies cleanly to 26.3's current cluster.py (offset -159, no conflict). pr-must-backport would additionally target 25.8, where the patch does not apply cleanly and test_distributed_frozen_replica does not exist, so the version-specific label is the correct one.

Per @ pufit's standing rule I am not hand-authoring a release-branch PR for this.

@alexey-milovidov
alexey-milovidov merged commit 02b8a70 into 26.3 Aug 26, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.3/115704 branch August 26, 2026 03:03
bytehalo-infra added a commit to sentioxyz/ClickHouse that referenced this pull request Sep 25, 2026
OTHER: binary literal whose length is not a multiple of 8; empty LZ4 block -> wrong (uninitialized memory).
Effect in the production build a394e92: wrong/failing (the upstream test fails on it and passes on official 26.8.8.8; evidence/fix_ci_20260925/upstream_repro/residual/115704.PROD263.txt).
Upstream patch unchanged, with its test(s): 05024_binary_string_literal_uninitialized_byte, 05028_lz4_empty_compressed_body.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants