Repository navigation
Fix SEGV in execute_query_fuzzer due to a nullptr TemporaryDataOnDiskScope - #95920
Merged
Merged
Conversation
The fuzzer crashed when `ProcessList::insert` tried to create a `TemporaryDataOnDiskScope` with a null parent, because: 1. The fuzzer never initialized temporary storage via `setTemporaryStoragePath` 2. `getSharedTempDataOnDisk()` returned null 3. The child constructor dereferenced null at `parent->file_provider` Fix by: 1. Adding null check in `ProcessListForUser` before creating child scope 2. Initializing temporary storage in the fuzzer like clickhouse-local does Co-Authored-By: Claude Opus 4.5 <[email protected]>
Contributor
|
Workflow [PR], commit [dd53f06] Summary: ❌
|
Member
|
@alexey-milovidov this fuzzer doesn't work properly: |
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.
The fuzzer crashed when
ProcessList::inserttried to create aTemporaryDataOnDiskScopewith a nullptr parent, because:setTemporaryStoragePathgetSharedTempDataOnDisk()returned nullparent->file_providerFix by:
ProcessListForUserbefore creating child scopeChangelog category (leave one):
See https://s3.amazonaws.com/clickhouse-test-reports/REFs/master/ea16f9975e4c7cf0264f18017cacb26a03c25180/libfuzzer_tests/execute_query_fuzzer/out.txt
This is only relevant to libFuzzer's fuzzer. No bug exists in the server.
Version info
26.2.1.232