Repository navigation
Backport #106905 to 26.3: Fix crash in ProtobufRowInputFormat::syncAfterError on null reader - #107629
Merged
Merged
Conversation
…terError on null reader
robot-clickhouse
force-pushed
the
backport/26.3/106905
branch
from
June 16, 2026 14:56
01008c0 to
e6675f6
Compare
Contributor
|
Workflow [BackportPR], commit [e6675f6] Summary: ✅ |
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]>
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.
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
26.3.14.34