Skip to content

Backport #99042 to 26.2: Fix crash in CachedOnDiskReadBufferFromFile destructor#99235

Merged
clickhouse-gh[bot] merged 1 commit into26.2from
backport/26.2/99042
Mar 11, 2026
Merged

Backport #99042 to 26.2: Fix crash in CachedOnDiskReadBufferFromFile destructor#99235
clickhouse-gh[bot] merged 1 commit into26.2from
backport/26.2/99042

Conversation

@robot-clickhouse
Copy link
Copy Markdown
Member

@robot-clickhouse robot-clickhouse commented Mar 11, 2026

Original pull-request #99042
Cherry-pick pull-request #99234

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


Note

Low Risk
Low risk: adds a null-check before using state during destructor logging to prevent a crash; no behavior changes to caching or IO flow beyond skipping the log when state is unset.

Overview
Fixes a destructor crash in CachedOnDiskReadBufferFromFile by guarding filesystem cache log emission with an additional state check.

If the buffer is destroyed before state is initialized, the destructor now skips appendFilesystemCacheLog(...) instead of dereferencing a null state.

Written by Cursor Bugbot for commit 7e85554. This will update automatically on new commits. Configure here.

@robot-clickhouse robot-clickhouse added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Mar 11, 2026
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Mar 11, 2026

Workflow [BackportPR], commit [7e85554]

Summary:

@clickhouse-gh clickhouse-gh bot merged commit 5214815 into 26.2 Mar 11, 2026
35 checks passed
@clickhouse-gh clickhouse-gh bot deleted the backport/26.2/99042 branch March 11, 2026 07:28
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!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants