Skip to content

Keeping Fuzzers on the Job: Repairing Build Failures in Continuous Fuzzing of Open-Source ProjectsKeeping Fuzzers on Duty: Repairing Fuzzing Build Breakages in Continuous Open-Source Fuzzing

arXiv· arXiv:2611.06358· Zhuang Zhao, Jiongchi Yu, Yao Zhang, Dongge Liu, Qiang Hu, Xiaohong Li, Yang LiuTianjin University; Nanyang Technological University; GoogleIndexed by this site · 18 days ago· Originally publishedTools

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

The authors propose OSS-Fuzz build repair agent FuzzMedic, which fixed 62 of 128 reproducible failures (48.44%), and 29 patches were merged upstream.

Questions
About 20% of onboarded projects in OSS-Fuzz remain in a build-failure state long-term, so the fuzzers cannot work. Platform maintainers lack project context, and project maintainers lack fuzzing infrastructure experience; existing program repair techniques are difficult to apply directly to cross-workspace fuzz build repair.
Methods
FuzzMedic is a multi-agent system based on Google ADK: ECRCL locates causal commits from logs, FGRK retrieves historical fix knowledge, RSMC maintains cross-round memory, and HSR performs branching and rollback on a repair state graph; patches are verified via the containerized check_build.
Experiments and results
On 128 reproducible failures, 62 cases repaired (48.44%), higher than CompileAgent's 21.09%; the ablation shows that removing HSR reduces the number of repairs from 62 to 42; 29 patches were merged by maintainers, including 3 failures that had been pending for over a year.
Limitations and future work
The authors note: the benchmark is biased toward recoverable historical environments, and parameter selection and evaluation sharing the same benchmark may be optimistic; knowledge isolation cannot exclude public fixes in closed models' pretraining; non-equivalent native budgets limit causal interpretation; resource statistics count only successful cases.
Experimental setupDeepSeek-V4-Flash、Claude Sonnet 4.6 et al. · 128 个可复现 OSS-Fuzz 构建失败基准(来自 113 个项目,从 1,820 条失败日志筛选) · 修复率(check_build 通过)、token 消耗 et al.
Evaluated models
DeepSeek-V4-FlashClaude Sonnet 4.6GPT-5.5 InstantDeepSeek-V4-Flash-0731
Benchmarks
128 个可复现 OSS-Fuzz 构建失败基准(来自 113 个项目,从 1,820 条失败日志筛选)
Metrics
修复率(check_build 通过)token 消耗修复时间模型服务成本
AI summaryResearchers propose FuzzMedic, an agent that automatically repairs fuzzing build failures, achieving a 48.44% repair rate on 128 reproducible OSS-Fuzz build failures extracted from 1,820 real failures, surpassing three representative program repair baselines. The paper notes that about 20% of integrated projects on continuous fuzzing platforms such as OSS-Fuzz are in a build-failure state, so fuzzers stall; platform maintainers lack project-specific context and project maintainers lack fuzzing and infrastructure experience, creating a maintenance gap. FuzzMedic performs evidence-guided diagnosis between project and fuzzing infrastructure artifacts, explores repairs on a repair state graph (RSG) that records workspace evolution and build feedback, recovers from invalid repair paths via branching and rollback, and validates candidate patches by whether they restore an executable fuzzing target. In practical use, 29 patches produced by FuzzMedic have been merged into upstream or the OSS-Fuzz main branch, including three failures that had been pending for over a year and two cases that had never built successfully.

Researchers propose FuzzMedic, an agent that automatically repairs fuzzing build failures, achieving a 48.44% repair rate on 128 reproducible OSS-Fuzz build failures extracted from 1,820 real failures, surpassing three representative program repair baselines. The paper notes that about 20% of integrated projects on continuous fuzzing platforms such as OSS-Fuzz are in a build-failure state, so fuzzers stall; platform maintainers lack project-specific context and project maintainers lack fuzzing and infrastructure experience, creating a maintenance gap. FuzzMedic performs evidence-guided diagnosis between project and fuzzing infrastructure artifacts, explores repairs on a repair state graph (RSG) that records workspace evolution and build feedback, recovers from invalid repair paths via branching and rollback, and validates candidate patches by whether they restore an executable fuzzing target. In practical use, 29 patches produced by FuzzMedic have been merged into upstream or the OSS-Fuzz main branch, including three failures that had been pending for over a year and two cases that had never built successfully.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    About 20% of OSS-Fuzz projects remain in build failure long-term; the authors propose the automated repair agent FuzzMedic.

    Core problem: about 20% of onboarded projects in OSS-Fuzz continuous fuzzing remain in a build-failure state long-term, so the fuzzers are effectively "suspended"; the authors aim to automatically repair such fuzz build failures.

    • Problem setting: OSS-Fuzz continuously builds instrumented fuzz targets for open-source projects; when a build fails, no newly built target can be supplied, even if the project builds normally outside the fuzzing environment. The authors state this creates a maintenance gap between platform maintainers (lacking project context) and project maintainers (lacking fuzzing and infrastructure experience).
    • Insufficiency of existing methods: The authors state that existing program repair techniques cannot be directly applied—fuzz build failures span project and infrastructure artifacts and require repeated infrastructure-aware diagnosis rather than local code edits; build repair systems such as BuildMedic, CXXCrafter, and CompileAgent target different tasks and datasets.
    • Core observations: Compiler or linker errors are only symptoms; the responsible change may be in another workspace or in a dependency; the failure occurs before a runnable target exists, so only build feedback is available; patch attempts modify the workspace, and erroneous edits may break already-repaired stages.
    • Proposed in the paper: FuzzMedic—a multi-agent repair system based on Google ADK, combining evidence-guided localization, repair knowledge, trajectory memory, and rollback-capable build-state exploration; the authors also built a benchmark of 128 reproducible failures and deployed on real OSS-Fuzz failures, with 29 patches merged by maintainers.
    • Task setting (not security offense/defense; no threat model): The victim/service object is the OSS-Fuzz continuous fuzzing infrastructure and its onboarded projects; the repair goal is for the patch to pass OSS-Fuzz's check_build validation and restore an executable fuzz target, rather than merely suppressing the error.
  2. What related research exists?

    Related work falls into four groups: fuzzing and build failure research, build repair, program and vulnerability repair, and repair agents and feedback mechanisms.

    Empirical studies of fuzzing and build failures

    • Nourry et al. [25]—analyzed over 1.2 million OSS-Fuzz build logs, characterizing failures involving project code, dependencies, the fuzzing environment, the Docker environment, and external resources, and proposed a taxonomy of 25 root causes in 11 major categories; this paper adopts their taxonomy, but the paper notes that this work only characterizes and classifies failures and does not generate patches.
    • OSS-Fuzz [8, 29], ClusterFuzzLite [9]—continuous fuzzing platforms and CI/CD integration; the evaluation in this paper is based only on OSS-Fuzz.
    • Build-bench [42]—a cross-architecture software package build benchmark with executable validation; the construction of this paper's benchmark follows it.

    Build repair

    • BuildMedic [22]—repairs Maven dependency build breakage; HireBuild [12]—uses build history to repair build scripts.
    • CXXCrafter [38], CompileAgent [14]—automated general C/C++ builds and repository-level compilation. The paper notes that their reported results target different tasks and datasets and cannot be directly compared with the OSS-Fuzz repair rate.

    Program and vulnerability repair

    • GenProg [19], GenProgJS [6]—test-based program repair; KNOD [15], Tare [43], ITER [35], etc.—neural repair incorporating domain knowledge, type constraints, and multi-location iteration.
    • Zhang et al. [41]—repairs security bugs using OSS-Fuzz vulnerability reports, but the paper notes that it assumes fuzzing has already successfully produced crash inputs; Kim et al. [17]—connects fuzzing and APR at the patch search level, not at the build maintenance level.

    Repair agents and feedback mechanisms

    • Agentless [33], SWE-Search [2]—localization and search strategies for repository-level repair; the paper notes that in this paper's setting, the actionable change may lie outside the upstream repository, and the repair must satisfy container, instrumentation, and fuzz-target validation constraints.
    • AutoCodeRover [40], RepairAgent [4], HAFixAgent [31]—autonomous or history-aware repair agents; SWE-bench [16]—repository issue resolution evaluation.
    • ReAct [34], Reflexion [32], Lost in the Middle [21]—work on combining reasoning and action, language feedback, and long context; this paper's RSMC memory design is inspired by them.

    Baselines and benchmark: The comparison baselines are three program repair systems, Agentless, CompileAgent, and SWE-Search (plus a supplementary comparison of CXXCrafter on 20 applicable cases); the benchmark is the 128 reproducible OSS-Fuzz build failures constructed in this paper. The authors position this paper as a system for OSS-Fuzz fuzzing build failures that repairs before a runnable target exists, distinguishing it from the adjacent tasks above.

  3. How does the paper address this problem?

    FuzzMedic uses four components—localization, knowledge, memory and rollback—to form an iterative repair loop around observable build states.

    Overall approach: FuzzMedic organizes repair as an iterative loop around the observable OSS-Fuzz build state—ECRCL localizes candidate causal commits, FGRK injects repair constraints before patch generation, each patch is validated in a containerized build environment, RSMC stores validated results as compact memory, and HSR tracks the physical workspace state and rolls back from invalid branches. The system is implemented in Python based on Google ADK, with all agents using DeepSeek-V4-Flash as the base model and seed 42; agents for localization, rollback, and patch application use temperature 0.0 and top_p 0.1, while RSMC and prompt assembly use temperature 0.2 and top_p 0.3.

    Task setting

    • The only inputs are build logs and failure timestamps, with no binary artifacts, coverage feedback, or runtime traces; repair spans two workspaces, the upstream repository and the OSS-Fuzz configuration.
    • Success criterion: The patch passes OSS-Fuzz's check_build in the rebuilt historical environment; list_fuzzers and run_fuzzer serve only as reference signals for search, not as additional acceptance thresholds.

    ECRCL: evidence-constrained root-cause localization

    • The log is abstracted into a primary-fault evidence region of the earliest fatal diagnostic, filtering out cascading diagnostics; spatial correlation, temporal proximity, and repair scope are used to determine the candidate commit set.
    • PageRank-style bounded message passing is performed on a directed heterogeneous evidence graph: Pt(u) = (1−d)I(u) + d ∑v ∈ N−(u) Pr(v → u) Pt−1(v), i.e., relevance mass propagates from the primary-fault region along edge weights, with d=0.85 and T=3.
    • Each candidate commit is multiplied by an environment-compatibility gating coefficient and then ranked, with final score Score(ci) = M(ci)  PT(ci); the main experiment takes top-1 for counterfactual verification: the root cause is confirmed only if the parent version builds and replaying that commit reproduces the original failure stage and diagnostic features; otherwise UNKNOWN is returned.

    FGRK: failure-guided repair knowledge

    • From 1,940 candidate source records, after temporal/completeness checks, event deduplication, and exclusion of evaluated projects and associated events, 188 failures and 110 projects were retained, from which 43 error patterns (ERR) and 13 reusable guidelines (GL) were distilled, 56 in total (Table 3).
    • At retrieval time, regex and keyword matching is performed against FAILURE_REGION or log-tail slices, and at most 4 ERR/GL entries are injected into the Solver prompt each time; the knowledge base is frozen during evaluation, and reference patches and source evidence are not visible to the Solver.

    RSMC and HSR: memory and state rollback

    • RSMC compares the validation state before and after the patch, produces a structured progress assessment, distills verbose logs into per-round summaries, and keeps only the extracted memory, reflection results, and patch-level artifacts in context.
    • HSR builds a repair state graph (RSG): nodes store state S=⟨L, V⟩, where L is 6 pipeline stages (L1 environment bootstrap to L6 runtime fuzz execution) and V is the number of passed checks among three (0–3).
    • Rollback policy (Algorithm 1): If the stage advances or validation improves within the same stage, the current node is accepted; if there is no progress for two consecutive rounds (neutral tolerance θ=2) or the stage regresses/validation declines, roll back to the nearest ancestor that dominates the current state, and physically restore both repositories to the commits recorded at that node.
    • Budget control: The main configuration is 8 rounds and 1.5 hours per case, selected by sweeping 42 round/time budget combinations (run separately from the main comparison).
  4. What experiments did the paper conduct?

    Repair rate of 48.44% on the 128 cases, higher than the strongest baseline's 21.09%; ablations, model and budget sweeps, and real deployment are all reported.

    Experimental setup

    • Benchmark: 128 reproducible OSS-Fuzz build failures from 113 projects, selected from 1,820 failure logs (2022-12-29 to 2026-06-14) through deduplication, metadata checks, and historical replay screening (Table 1); language distribution: C++ 45, JVM 21, C 19, Python 18, Rust 12, Go 11, Swift 2.
    • Categories: Following Nourry et al.'s taxonomy, 9 root-cause categories are covered: RC1 compilation errors 83 cases (64.84%), RC2 dependency issues 29 cases (22.66%), and each of the remaining seven categories no more than 6 cases (Table 8); three authors annotated, with Fleiss' κ=0.76 on the calibration set.
    • Baselines: Agentless (6 patch candidates per case), CompileAgent (40-step budget), SWE-Search (20 rounds of MCTS); FuzzMedic, Agentless, and CompileAgent use DeepSeek-V4-Flash, while SWE-Search additionally uses GPT-5.5 Instant and Claude Sonnet 4.6 for trajectory discrimination; the methods' native budgets are not equivalent in tokens, time, interactions, or build attempts.
    • Metrics and criterion: Repair success = the patch passes check_build; tokens and time are medians over successful cases, and cost is the mean over successful cases.
    • Number of repetitions: The main method and ablations were each run independently 3 times; FuzzMedic averages 48.44%, with a sample standard deviation of 1.56 percentage points and a 95% confidence interval of [44.56%, 52.32%] (t distribution, 2 degrees of freedom).

    Main results

    According to Figure 4 (128-case benchmark, native budgets):

    Swipe horizontally to read the table

    MethodRepairsRepair rateMedian tokensMedian time (min)Mean cost (USD)
    FuzzMedic62/12848.44%1,874,87622.96$0.3257
    CompileAgent27/12821.09%410,94713.04$0.6521
    SWE-Search17/12813.28%52,4597.16$0.0122
    Agentless10/1287.81%145,0145.79$0.0177
    • The authors report a gap of 27.35 percentage points between FuzzMedic and the strongest native-budget baseline, and explicitly note that the non-equivalent native budgets limit the causal interpretation of this gap.
    • Figure 3 shows 31 cases repaired only by FuzzMedic and not repaired by any of the three baselines.
    • The authors state that CompileAgent uses fewer tokens and less time on successful cases, while FuzzMedic has a higher repair rate.

    Supplementary comparisons and per-category results

    • Matched-cap pilot (Table 4, unified model, matched per-case token/time caps, build and interaction budgets not matched): at 1M/15 minutes, CompileAgent repairs 16 cases and FuzzMedic 11; at 4M/60 minutes, 22 versus 50; at 8M/90 minutes, 25 versus 59. The authors state that at low caps CompileAgent repairs more, and at high caps FuzzMedic repairs more.
    • Other supplements: On 64 cases, a bare iterative agent repairs 4 cases and FuzzMedic repairs 35; on 20 applicable C/C++ compilation failures, CXXCrafter repairs 5 cases and FuzzMedic repairs 12.
    • Per category (Figure 5): RC1 40/83 (48.19%), RC2 13/29 (44.83%), RC3 2/6, RC4 2/4, RC5–RC9 each 1–2 cases; the authors note that the ratios for small categories are only descriptive and do not support category-level generalization.

    Ablation and sensitivity

    • Component ablation (Table 5, 128 cases): Removing any component lowers the number of repairs and raises the median tokens on successful cases by about 1.24–1.48 times; w/o HSR 42 cases (32.81%), w/o ECRCL 46 cases (35.94%), w/o RSMC 51 cases (39.84%), w/o FGRK 52 cases (40.62%). Figure 6 shows 25 cases repaired by all configurations and 5 cases repaired only by the full system.
    • Base models (Table 6, same prompts, tools, and budgets): Claude Sonnet 4.6 repairs 64 cases (50.00%), DeepSeek-V4-Flash 62 cases (48.44%), GPT-5.5 Instant 58 cases (45.31%); the locally deployed DeepSeek-V4-Flash-0731 repairs 17 of 32 cases (53.12%, 8 80GB A100s).
    • Budget sweep (Figure 7, 42 combinations, counted by project): At 8 rounds, increasing time from 1.0 to 1.5 and 2.0 hours raises repaired projects from 59 to 62 and 64; the highest is 67 at 10 rounds and 3 hours; the authors state that going from 1.5 to 3 hours repairs only 3 more projects, showing diminishing returns.

    Real deployment and failure analysis

    • PR experiment: The workflow is submitted as a PR to Google's oss-fuzz-gen, and patches are sent out after manual verification; 29 patches were merged, covering 28 projects, of which 10 are upstream fixes and 19 are OSS-Fuzz integration fixes (Figure 8, Table 7); this includes 3 failures that had been pending for over a year (airflow 510 days, toml_edit 449 days, mdbook-i18n-helpers 470 days) and 2 cases that had never built successfully (bc-gh, bazel-rules-fuzzing-test). The authors note that this does not mean it has become an unattended production service.
    • Failure analysis: Among failed attempts that entered the repair loop, 41.8% had a root-cause localization record and 58.2% did not; the authors state that even after localization, coupled dependency and integration constraints may remain unresolved, and use quiche as an example to illustrate failures in patch construction and evidence grounding.
    • Repair characteristics: Successful patches have a median of 1 file and 5 lines changed; among repaired cases, 38.71% had successful root-cause localization and 50.00% involved rollback.
  5. What are some points that can be further explored?

    The authors list threats including benchmark scope, knowledge isolation and budget comparability; the experiments cover 128 cases, 3 models and 3 repetitions.

    Limitations and future directions noted by the authors

    • Benchmark scope (Section 7): Retaining reproducible failures biases toward recoverable historical environments and accessible version metadata; parameter selection and evaluation share the same 128-case benchmark, which may produce optimistic estimates; compilation and dependency failures dominate, and several categories have only one or two cases.
    • Knowledge separation (Section 7): The frozen FGRK excludes the evaluated projects and associated events, and reference patches are not visible at runtime, but these controls cannot fully exclude public fixes already present in closed models' pretraining.
    • Variation and comparison (Section 7): Only three full runs were performed, and the uncertainty summary covers only the full system; the methods' native search budgets differ, and after matching token/time caps the number of builds and interactions still does not match; resource summaries are conditioned on successful cases and exclude the cost of failed attempts.
    • Repair criterion (Section 7): Passing check_build only establishes build recovery and does not guarantee harness coverage or semantic equivalence; the HSR stage order is only search guidance, and a later-stage failure may be newly introduced or newly exposed; the search has no proof that stage advancement means correct progress.
    • Benchmark nature (Section 3.2): The 128 cases are a controlled replay benchmark, not a representative sample of all OSS-Fuzz build failures.

    Scope of experimental coverage

    • The base models tested are 3 in total: DeepSeek-V4-Flash, Claude Sonnet 4.6, and GPT-5.5 Instant, plus a pilot of a local DeepSeek-V4-Flash-0731 on 32 cases (Section 5.5).
    • Baseline comparison covers Agentless, CompileAgent, and SWE-Search; CXXCrafter is compared only on 20 applicable C/C++ compilation failures (Section 5.2.2).
    • The evaluation is based only on OSS-Fuzz and does not include other platforms such as ClusterFuzzLite (Section 2.1).
    • The main method and ablations were each run independently 3 times; resource figures count only successfully repaired cases (Section 5.1).
    • The paper does not report the exact configuration of global retries (Section 4.4 notes it is part of the artifact), and FGRK's tie-breaking rule and log-tail length are also not specified (Appendix B.4).
  6. Summarize the main content of the paper

    FuzzMedic repairs OSS-Fuzz build failures with four components—localization, knowledge, memory, and rollback—achieving a 48.44% repair rate on 128 cases.

    A software engineering paper on maintaining continuous fuzzing infrastructure: about 20% of onboarded projects in OSS-Fuzz remain in a build-failure state long-term, so the fuzzers cannot work; the authors propose an automated repair agent FuzzMedic and build a companion evaluation benchmark.

    • Problem: Fuzz build failures span two workspaces, the upstream project and the OSS-Fuzz infrastructure; errors are only symptoms, and repair requires infrastructure-aware diagnosis and rollback-capable long-horizon debugging; existing program repair and build repair systems do not directly apply.
    • Method: A multi-agent system based on Google ADK—ECRCL performs message passing on an evidence graph to localize causal commits and counterfactually verify them; FGRK retrieves repair knowledge (56 entries) from an isolated historical corpus; RSMC maintains compact cross-round memory; HSR rolls back on a repair state graph according to stage and validation signals. The main configuration is 8 rounds and 1.5 hours, with base model DeepSeek-V4-Flash.
    • Main results: On 128 reproducible failures (113 projects), 62 cases repaired (48.44%), versus 27 cases (21.09%) for the strongest native-budget baseline CompileAgent; 31 cases were repaired only by FuzzMedic (Figure 3, 4).
    • Ablation and sensitivity: Removing HSR reduces the number of repairs from 62 to 42; removing other components gives 46–52 cases (Table 5); switching to Claude Sonnet 4.6 gives 50.00% and GPT-5.5 Instant gives 45.31% (Table 6).
    • Real-world impact: 29 patches were merged by upstream or OSS-Fuzz maintainers, covering 28 projects, including 3 that had been pending for over a year (449–510 days) and 2 cases that had never built successfully (Table 7).
    • Authors' conclusions: The authors state that the integration of the four components is the core contribution, and the ablation supports all components, especially HSR; they also note that the benchmark is biased toward recoverable environments, that parameter selection and evaluation sharing the same benchmark may be optimistic, that non-equivalent native budgets limit causal interpretation, and that passing check_build does not guarantee semantic equivalence.
Read originalarxiv.org