Skip to content

Backport #106905 to 26.3: Fix crash in ProtobufRowInputFormat::syncAfterError on null reader - #107629

Merged
Avogar merged 1 commit into
26.3from
backport/26.3/106905
Jun 17, 2026
Merged

Avogar merged 1 commit into
26.3from
backport/26.3/106905

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #106905
Cherry-pick pull-request #107628

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.14.34

@robot-clickhouse robot-clickhouse added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Jun 16, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [e6675f6]

Summary: ✅

@Avogar
Avogar merged commit bee8a53 into 26.3 Jun 17, 2026
34 checks passed
@Avogar
Avogar deleted the backport/26.3/106905 branch June 17, 2026 12:40
bytehalo-infra added a commit to sentioxyz/ClickHouse that referenced this pull request Sep 25, 2026
PROTO: ProtobufRowInputFormat with input_format_allow_errors_num/ratio: after a parse error, readRow destroyed
the reader and IRowInputFormat then called syncAfterError, which dereferenced the null reader -> crash.
Dependency of the ClickHouse#107739 backport (50b1854): the 26.3 branch had this fix (e6675f6, 2026-06-16) before
ClickHouse#107739 (1c4cb1f, 2026-07-25), and the fork's v26.3.12.3 base predates it. Found by the CAND4 release gate:
the ClickHouse#107739 test 04409_protobuf_skip_bad_row_after_valid crashed CAND4 (e7432ca) with SIGSEGV in
ProtobufReader::endMessage via IRowInputFormat::read (evidence/fix_ci_20260925/release_cand4/logs/).
Upstream patch unchanged (hunks at an 8-line offset because of ClickHouse#107739), with its gtest
gtest_protobuf_sync_after_error.cpp; the stateless test is ClickHouse#107739's 04409.

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.

2 participants