Repository navigation
Remove tcp_protocol_fuzzer, it has never fuzzed anything - #117141
Conversation
The target has never accumulated a single corpus unit: `fuzzer/corpus/tcp_protocol_fuzzer.zip` in the artifact bucket is a 22-byte empty archive, and the nightly job logs report `tcp_protocol_fuzzer corpus having 0 units` on every one of the last 60 runs. A coverage-guided fuzzer that never saves an input is not exploring anything, and corpus minimization is permanently skipped for it with `persistent corpus is empty`. It has never produced an actionable report either. All 212 recorded failures (2025-11-04 to 2026-03-17) carry the same message, `No stack traces found - this is unusual - check output files`: the process exited non-zero without a sanitizer report, which is the `exit(-1)` in `LLVMFuzzerInitialize` taken when the embedded server thread finishes before the server reaches `isServerCompletelyStarted`. Since 2026-03-17 it reports `OK` on every run, which in this harness only means the process was still alive when the runner killed it at the timeout - so it now burns an hour of the nightly budget silently. With an empty corpus, the two remaining explanations are that startup never completes and the initialization loop spins, or that the server thread is dead and `LLVMFuzzerTestOneInput` rejects every input with `return -1`; the fuzzer output is not uploaded on success, so this cannot be narrowed down further from CI. The harness is not repairable in its current shape. It embeds a whole `clickhouse-server` in the fuzzer process and hands each input to a TCP socket, so the server handles the input on its own threads while `LLVMFuzzerTestOneInput` polls the socket. The coverage libFuzzer attributes to an input is then whatever the process happened to execute concurrently, including every background thread, which makes coverage feedback, corpus minimization and crash reproduction all unsound. Fixing that means rewriting it as an out-of-process protocol fuzzer, which is a different target. The native protocol surface is already covered by the stateless and integration suites, and query text specifically by `clickhouse_fuzzer`. Removing this also stops compiling `Server.cpp` and `MetricsTransmitter.cpp` a second time into a ~5 GB ASan binary in every fuzzers build. Note for whoever merges this: `fuzzer/corpus/tcp_protocol_fuzzer.zip` is left behind in the artifact bucket and can be deleted; it is empty anyway.
|
Workflow [PR], commit [846284d] Summary: ✅
AI ReviewSummaryThis PR removes the unused Missing context / blind spots
Final Verdict✅ No review findings at this time. LLVM Coverage Report |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline. |
|
📊 Cloud Performance Report ✅ AI verdict: This PR only deletes the TCP-protocol fuzzer (a fuzzing-only build target gated behind ENABLE_FUZZING) and its CMake wiring; it changes no query-execution code. None of the four flagged ClickBench queries (18, 30, 31, 33) exercise anything this diff touches, and all four are already not_sure with either flat CPU time inside master's variance band or the two tests disagreeing. Read all four deltas as run-to-run variance, not a PR effect. clickbenchFlagged queries (4 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
The target has never accumulated a single corpus unit:
fuzzer/corpus/tcp_protocol_fuzzer.zipin the artifact bucket is a 22-byte empty archive, and the nightly job logs reporttcp_protocol_fuzzer corpus having 0 unitson every one of the last 60 runs. A coverage-guided fuzzer that never saves an input is not exploring anything, and corpus minimization is permanently skipped for it withpersistent corpus is empty.It has never produced an actionable report either. All 212 recorded failures (2025-11-04 to 2026-03-17) carry the same message,
No stack traces found - this is unusual - check output files: the process exited non-zero without a sanitizer report, which is theexit(-1)inLLVMFuzzerInitializetaken when the embedded server thread finishes before the server reachesisServerCompletelyStarted. Since 2026-03-17 it reportsOKon every run, which in this harness only means the process was still alive when the runner killed it at the timeout - so it now burns an hour of the nightly budget silently. With an empty corpus the two remaining explanations are that startup never completes and the initialization loop spins, or that the server thread is dead andLLVMFuzzerTestOneInputrejects every input withreturn -1; the fuzzer output is not uploaded on success, so this cannot be narrowed down further from CI.The harness is not repairable in its current shape. It embeds a whole
clickhouse-serverin the fuzzer process and hands each input to a TCP socket, so the server handles the input on its own threads whileLLVMFuzzerTestOneInputpolls the socket. The coverage libFuzzer attributes to an input is then whatever the process happened to execute concurrently, including every background thread, which makes coverage feedback, corpus minimization and crash reproduction all unsound. Fixing that means rewriting it as an out-of-process protocol fuzzer, which is a different target.The native protocol surface is already covered by the stateless and integration suites, and query text specifically by
clickhouse_fuzzer. Removing this also stops compilingServer.cppandMetricsTransmitter.cppa second time into a ~5 GB ASan binary in every fuzzers build.One follow-up for whoever merges this:
fuzzer/corpus/tcp_protocol_fuzzer.zipis left behind in the artifact bucket and can be deleted; it is empty anyway.Related: #117140
Related: #117142
Related: #117143
Related: #117144
Related: #117145
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/117141]
Version info
26.9.1.510(included in26.9and later)