Repository navigation
Backport #131789 to 26.9: Check the aggregates of deserialized query plan steps against their input - #133175
Conversation
…plan steps against their input
|
Workflow [BackportPR], commit [97e5ef3] Summary: ✅ |
The backport dropped `#include <Core/Block_fwd.h>` from `AggregateDescription.h` and `#include <Core/Block.h>` from `AggregateDescription.cpp`, which the original change has on master; on 26.9 nothing else brings `Block` into scope, so every build failed with "unknown type name 'Block'". CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=133175&sha=cc5a655eb8cd1608444d1bd0643deef567b0863e&name_0=BackportPR&name_1=Build%20%28amd_release%29 PR: #133175 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rgument_types` to 19 in the backport The test pinned version 21, the current one on master, but 26.9 serializes plans with `DBMS_QUERY_PLAN_SERIALIZATION_VERSION` = 19, so the server refused every forged plan with `NOT_IMPLEMENTED`. The test sends no step settings, so the byte layout of the forged steps is the same at version 19 (the sibling test `05790_filling_step_repeated_interpolate_output` pins 19 too). CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=133175&sha=c411f93684ec4f1c3f89d40694385ac010c1d411&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 PR: #133175 Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the binary format of 26.9 The test wrote the settings of a forged step as on master: name, flags and the value as a string, terminated by an empty name. 26.9 reads them with `BaseSettings::readBinary`: the number of settings, then name, flags and the binary value of each. The first forged plan with a step setting (`distributed_aggregation_memory_efficient` of `MergingAggregated`) was therefore misread, the server waited for more bytes, and the test timed out reading the response. Plans without settings were not affected, as the terminating empty name and a zero count are the same byte. Checked against the `arm_release` binary built by CI for b198d44, started with `process_query_plan_packet`: the previous version of the test times out on `grouping set key is repeated after the states`, this one matches the reference. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=133175&sha=b198d44b4bbfebcb764a47f5de53271f86a3097d&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 PR: #133175 Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=133175&sha=b198d44b4bbfebcb764a47f5de53271f86a3097d&name_0=BackportPR&name_1=Stress%20test%20%28amd_tsan%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.
The other failure, |
|
The fix is already merged: #127593 (pad the buffer that The report is the 15-byte SIMD over-read of an unpadded buffer, not a real use-after-free: the read at Since #133296 merged, CIDB has no report of this STID (or its ASan form 0988-35bc) on any branch or PR. On 26.9 that covers 5 commits of |
Original pull-request #131789
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
26.9.37.4