Manuscript Offprint
arXiv:2610.29332Do Coding Agents Understand Why Systems Crash---and Why They Don't?
Abstract
Coding agents are increasingly capable of fixing real-world bugs, yet they still struggle with large systems codebases such as the Linux kernel. To understand why, we test how agents reason about execution in these codebases through crash reasoning: predicting from source code whether a given input crashes the system. A correct prediction alone, however, does not establish this ability, since it may come from merely spotting suspicious code. In this paper, we propose source interventions: we pair source trees that differ by a single commit, so that the same input crashes only one of them, and test whether agents predict crashes more often on the crashing tree. Experiments with four coding agents on SYSRB, our dataset of 934 such pairs from Linux and OSS-Fuzz projects, yield three main findings. First, agents are biased toward predicting no crash: they rarely raise false alarms but miss many real crashes, and even the best agent misses over a quarter of them. Second, locating the code that determines the crash outcome is not enough: agents often misjudge its effect, especially when the crash occurs far from that code. Third, testing only on crashing code is misleading: agents that merely notice suspicious code predict crashes on both source trees, which would look like correct reasoning on the crashing tree alone. Together, these findings indicate that current coding agents cannot yet reliably reason about execution in complex systems codebases, and that paired evaluation is necessary to measure this ability.
1 Introduction
Coding agents are increasingly used for diverse software engineering (SE) tasks, including code generation, issue resolution, and test generation (Yang et al., 2024; Rastenis et al., 2026; Ryan et al., 2024). However, reliable SE requires more than generating code: agents must understand what happens when a program runs, including how different inputs and code modifications affect its behavior. This capability, known as execution reasoning, is particularly important for debugging and program repair, where identifying the conditions that trigger a failure is essential to fixing it correctly.
Yet, how well coding agents perform execution reasoning remains unclear, particularly in complex, reliability-critical system codebases. For example, a manual study of 79 patches generated by kAgent, an agent designed to repair Linux kernel crashes, found that 52% altered or removed intended functionality (Mathai et al., 2026). This raises a broader concern for critical system codebases: fixing a failure without understanding its cause may introduce unintended behavior. More importantly, a patch that stops a crash does not show whether an agent understands the execution that caused it. We therefore need to evaluate execution reasoning independently of code generation or repair success.
Existing code-reasoning benchmarks attempt to measure this capability. Early benchmarks focus on predicting outputs, program semantics, or static-analysis properties of individual functions and code fragments (Gu et al., 2024; Roy et al., 2026; Xie et al., 2026). Recent benchmarks extend these evaluations to repositories, examining execution traces, call chains, and intermediate program states (Wang et al., 2026; Li et al., 2026; Taherkhani et al., 2026). However, these benchmarks either focus on small pieces of code or require tracking program execution step by step, neither of which scales well to large, complex system codebases. For example, Linux kernel execution may involve multiple subsystems, hardware interactions, and concurrent threads, making comprehensive execution tracing expensive and difficult (Zhang et al., 2025). We therefore need a way to evaluate program understanding without tracking every step of execution.
However, not all execution outcomes are equally difficult to evaluate. One particularly useful outcome is whether a program crashes on a given input, which can be verified by running the program. Mo-tivated by this observation, we study crash reasoning: given a program’s source code, build configuration, and an input, an agent must predict whether the program will crash and, if so, where and why. This allows us to evaluate execution reasoning in complex system codebases without having to reconstruct every step of program execution.
Crash reasoning also arises naturally in practical debugging scenarios. For example, in security testing, automated fuzzing systems such as syzbot (Google) and OSS-Fuzz (Serebryany, 2017) generate large numbers of inputs to identify those that cause programs to crash. Developers must then determine why these inputs trigger crashes and modify the code to prevent them (Gu et al., 2026; Böhme et al., 2017; Bai et al., 2026).
However, a correct crash prediction alone does not necessarily imply that an agent understands why the crash occurs. For example, an agent may identify a suspicious operation and predict a crash without determining whether the given input actually triggers it. Such a prediction could be correct for a crashing program but remain unchanged after the crash is resolved. Evaluating only the crashing source tree would therefore misrepresent the agent's reasoning ability.
To address this limitation, we introduce source interventions (Figure 1). Instead of evaluating an agent on a single program, we compare its predictions on two source trees of the same program: one that crashes for a given input and another that does not. The trees differ by one code change; we run both on the same input to verify their outcomes. The agent examines each tree independently, without knowing which crashes. We evaluate its behavior along two dimensions:
(i) Crash-outcome discriminability. We measure how often an agent predicts a crash on each source tree. An agent that makes the same prediction on both source trees cannot distinguish their execution outcomes, even if its prediction is correct on one of them. The difference in crash-prediction rates therefore measures the agent's sensitivity to code changes that affect program behavior.
(ii) Reasoning behavior. We examine the agent's investigation steps to check whether it finds and analyzes the differing code (intervention site) and the code where the crash occurs (crash site). This helps us understand whether agents fail to locate relevant code or struggle to predict its effect on execution even after encountering it.
Findings. We instantiate this evaluation in SYSRB (System Reasoning Benchmark), a dataset of 934 execution-validated source-tree pairs from the Linux kernel and OSS-Fuzz projects, and evaluate four coding agents. First, agents frequently miss real crashes despite low false-positive rates: they incorrectly predict no crash for 27.5–76.8% of crashing trees, while predicting crashes for only 2.8–10.9% of non-crashing trees (Section 4.2). Second, finding relevant code does not guarantee correct outcome discrimination. Although agents observe the intervention site in 55.6–89.0% of trajectories, their discriminability conditioned on observing it ranges from only 21.5% to 75.4%. For Claude Opus 5, discriminability further drops from about 65% to 38% when the crash occurs in a different subsystem from the intervention site (Section 4.3). Third, single-source-tree evaluations can reward misleading predictions. When Opus analyzes the crash site without observing the intervention site, its crash-prediction rate increases by about 37 percentage points on , but also by 34 points on . Similar patterns occur across all four agents (Section 4.4). Together, these findings reveal limitations in agents' ability to distinguish execution outcomes and demonstrate the value of paired evaluation for studying system-level code reasoning.
Our contributions. We make three contributions:
• Source-intervention-based evaluation. We introduce a paired evaluation methodology that measures whether coding agents distinguish crash outcomes across execution-validated source interventions. Unlike single-source-tree evaluation, this design reduces the influence of prediction tendencies shared across crashing and non-crashing programs.
• An execution-validated benchmark and diagnostic framework. We construct SYSRB, comprising 934 source-tree pairs from the Linux kernel and OSS-Fuzz projects. We complement policy-level discriminability with trajectory-level analysis of whether agents observe and analyze the intervention and crash sites.
• Empirical insights into agent limitations. Evaluating four coding agents, we find that agents frequently miss crashes, that observing relevant code does not guarantee correct outcome discrimination, and that cross-subsystem failures are associated with substantially lower discriminability. We demonstrate how single-source-tree evaluations can reward predictions driven by suspicious code patterns shared across both source trees.

Figure 1: Differencing over a pair with opposite crash outcomes isolates true discriminability. and differ only by at the intervention site. When sampling coding agent to predict “crash or not” multiple times, trajectories blind to the site predict a crash equally often in both trees and cancel in .
Code reasoning. Function-level benchmarks test input–output prediction (Gu et al., 2024; Xu et al., 2025) and finer-grained semantics such as runtime values, branch outcomes, and dependencies (Roy et al., 2026; Xie et al., 2026; Ding et al., 2025); repository-level benchmarks examine execution traces, intermediate states, and call chains from test runs (Wang et al., 2026; Li et al., 2026). Both rely on isolated functions or recorded intermediate states, which do not transfer readily to system code-bases. Through source interventions, we advance the code reasoning to system-level software by evaluating crash reasoning and measure crash-outcome discriminability.
3 Analyzing Agentic Crash Reasoning
3.1 Crash Reasoning with Source Intervention
Program crash. A program built from a source tree T under a build configuration executes a sequence of operations on an input, each of which reads or modifies program state. If execution reaches a crash condition, the crash then occurs and the crash handler generates a crash report. We call the operations and state transitions that lead to the crash the crash mechanism, and an input known to trigger a crash a reproducer; reproducers are found manually or by fuzzing.
Execution oracle. Let x denote a reproducer together with its build configuration, and let the execution oracle Exec(T, x) return the outcome of building T under that configuration and running the reproducer on the resulting program:
where C is the crash report if , and when a valid execution reports no crash. The report gives the crash type and a stack trace to the crash site, where the crash occurs (Appendix B). We repeat each execution to confirm a stable outcome (Section 3.4).
Crash-reasoning task. A coding agent predicts from source code. Given a source tree and reproducer , the agent returns a verdict and, when , a predicted crash report with the crash type and a stack trace to the crash. The agent may navigate the repository, search and inspect files, and run Bash commands, but cannot access the Internet, compile the source, or execute the reproducer. It receives no crash report or indication of which code is relevant, so it must infer the outcome from source code. We model the agent as a policy that investigates and reasons over its observations:
where records tool calls, returned observations, and explicit reasoning.
However, crash-verdict accuracy on crashing instances alone cannot distinguish crash reasoning from a tendency to predict crash. If every instance crashes, an agent that always answers crash and names a suspicious-looking crash site would appear correct, and agents do produce such verdicts as we show in Section 4.4. We therefore use pairs of that differ only slightly and look alike to an agent, yet have opposite crash outcomes. An agent that distinguishes their execution outcomes should predict crash more often on the crashing tree. We construct these pairs by intervening on source tree T while holding the reproducer x fixed. Source intervention. To obtain the opposite crash outcome, we can change either the reproducer x (a reproducer intervention) or the source tree T (a source intervention); we intervene on the source for two reasons. First, real source interventions are abundant and tied to each crash: for crashes found by fuzzing, the commit that fixes the crash or the commit that bisection identifies as its cause is routinely recorded (Google; Serebryany, 2017). Second, a real commit ties the opposite outcome to the crash's root cause and keeps the practitioner's task intact: given a reproducer from a fuzzer, find the code that determines whether it crashes. Formally, an intervention applies a single commit to a base tree , producing , while keeping x and the execution environment fixed. We retain pairs whose outcomes differ and denote the crashing and non-crashing trees by and :
either removes the crash (a fix commit, ) or introduces it (a cause-bisected commit, ). The intervention site is the lines changed by and their surrounding context.
Nuisance differences. We suppress residual cues such as file modification times (Section 3.4) to ensure as the only perceptible difference between and . As a descriptive check, we also report discriminability for trajectories that never observe the intervention site (Section 4.3).
Evaluation approach. Since and differ only by , we evaluate agents at two levels. At the policy level, we measure crash-outcome discriminability (Section 3.2): an agent that reasons about the crash mechanism should predict a crash more often on than on . At the trajectory level, we examine agents' reasoning behavior (Section 3.3). We inspect the turns in each trajectory where the agent reads and analyzes the intervention site and the crash site, to determine whether the agent fails to find the relevant code or fails to reason about the execution behavior of the code found. Section 3.4 describes how we construct the pairs in SYSRB.
3.2 Policy-Level Evaluation
To evaluate the policy’s discriminability to source interventions, we sample verdicts on both source trees of each instance and estimate the probability of predicting a crash. We run each agent K times independently on each tree and estimate its crash-prediction probability as the fraction of runs that predict crash:
where is the verdict of run r on tree of instance i. Averaging , an estimate of Youden's J, over the N instances gives the agent's discriminability
i.e., the true-positive rate minus the false-positive rate, with crash as the positive class. J ranges from -1 to 1: means perfect discriminability, with every verdict crash on and no-crash on ; guessing crash with equal likelihood on both trees contributes zero in expectation, even when it is right on one of them; and negative values mean the agent responds opposite to the execution effect.
3.3 Trajectory-Level Evaluation
Although chain-of-thought quality is hard to measure directly, we inspect trajectory to check whether the agent reads and reasons about the intervention and crash sites. This helps identify failure patterns in agentic crash reasoning. We also score the similarity between predicted and reference crash stack frames with a deterministic grader. Site profile. An LLM annotator labels each trajectory with four indicators (Figure 2):
The observation indicators record whether the site is reached by the agent: holds when a tool output shows the intervention site, and indicates whether code from the crash-site function body is shown to the agent. The reasoning indicators record whether the agent analyzed that site: for reasoning about execution at the intervention

Figure 2: Trajectory-level evaluation on one instance (Linux fix 893eaef1, source tree , Claude Opus 5)
| Score | Predicted stack trace (highest-score criterion met) |
|---|---|
| 3 | Crash frame matches the reference |
| 2 | An adjacent caller-callee edge matches |
| 1 | Crash frame lies in the reference subsystem |
| 0 | Otherwise |
Table 1: Stack-trace score against the reference report.
site and for the crash-site semantics. The annotator receives , the prediction , , , and whether the tree is or (Figure 2 1), but not whether it is or , to reduce bias from knowing whether the verdict is correct. Every T label must cite verbatim text from , rendered as numbered blocks that separate tool outputs from the agent's text (2-4); a string-matching checker marks labels with unverifiable citations as ungraded (5). Therefore a site profile is returned (6).
Stack trace similarity. Since a crash verdict on counts toward even if it names a different crash, we also compare the predicted crash type with the reference and score the predicted stack trace with a deterministic grader (Table 1) (7).
3.4 Dataset Curation
We instantiate this paired design in SYSRB (System Reasoning Benchmark), whose split sysrb.v1 contains 934 execution-validated pairs: 545 Linux kernel crashes from syzbot (Google) and 389 open-source system library crashes found by OSS-Fuzz (Serebryany, 2017), drawn from the ARVO dataset (Mei et al., 2026). Each instance ships the reference report from our reproduction on , and as Docker images built from the same base image, with git history removed and filesystem metadata random- ized so that is the only intended difference, and without compilers or build tools; it also includes the reproducer but excludes the reference crash report.
Linux split (sysrb.v1.linux). Using the LiveK-Bench curator (Huang et al., 2026), we collect syzbot crashes with a syzkaller reproducer, the crash's kernel configuration, and either a fix commit () or a cause-bisected commit (). We build both trees and run the reproducer 25 times on each in kGymSuite (Mathai et al., 2026), retaining pairs in which yields a report whose title matches the syzbot crash and yields none. After removing unstable pairs, 545 of the 779 validated pairs remain.
OSS-Fuzz split (sysrb.v1.oss). ARVO provides reproducible OSS-Fuzz crashes with Docker images for vulnerable and fixed revisions. ARVO records only fix commits, so for all instances. To ensure is a single commit, we select the 582 crashes whose vulnerable revision is the fix commit's parent. We retain the 389 for which re-execution confirms a stable crash on and none on .
4 Evaluation
In this section, we study how agents perform on crash-reasoning tasks. We report discriminability and stack-trace prediction performance in Section 4.2, break discriminability down by crash type, and characterize the overall agent behaviors. We then decompose discriminability over trajectories with different site profiles. In Section 4.3, we study the relationship between discriminability and the intervention site, and further analyze performance
| Model | Mean Per Run | Full | Linux | OSS-Fuzz | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Turns | Cost ($) | J | TPR | FPR | J | TPR | FPR | J | TPR | FPR | |
| DeepSeek V4 Flash | 50.2 | - | +12.3 ± 1.9 | 23.2 | 10.9 | +6.5 ± 1.8 | 20.3 | 13.8 | +20.5 ± 3.5 | 27.3 | 6.8 |
| GLM 5.3 | 85.8 | - | +37.6 ± 2.6 | 41.7 | 4.0 | +26.6 ± 2.9 | 29.9 | 3.3 | +53.1 ± 4.0 | 58.3 | 5.1 |
| Gemini 3.8 Flash | 188.7 | 2.94 | +46.2 ± 3.0 | 49.0 | 2.8 | +37.2 ± 3.6 | 40.2 | 3.0 | +60.0 ± 4.4 | 62.5 | 2.5 |
| Claude Opus 5 | 63.1 | 6.39 | +67.7 ± 2.7 | 72.5 | 4.8 | +62.3 ± 3.6 | 67.8 | 5.4 | +75.3 ± 4.0 | 79.2 | 3.9 |
Table 2: Pooled discriminability of prevalent coding agents on SYSRB (%); ± is a 95% bootstrap CI over instances.
on crashes where the intervention site is far from the crash site. In Section 4.4, we identify the bias revealed by source interventions and how much the bias affects evaluation metrics on alone, on alone, and in the paired setting.
4.1 Experiment Setup
Coding agents. We evaluate four coding agents on SYSRB: Claude Opus 5, GLM 5.3 (Zeng et al., 2026), and DeepSeek V4 Flash (0731) (Xu et al., 2026) on Claude Code, and Gemini 3.8 Flash on Google Antigravity CLI. Each agent runs for up to two hours with an unlimited number of turns, and we sample trajectories per instance and source tree. Following Section 3.2, we use Youden's to measure intervention discrimination at the policy level, and site profiles to characterize evidence grounding at the trajectory level (Section 3.3). Appendix A.1 details the serving and sampling configuration.
LLM annotator. We use Gemini 3.8 Flash to annotate trajectories with per the criteria in Figure 2, and score predicted stack traces deterministically according to Table 1. We manually check 160 annotations sampled uniformly at random from all experiments and find agreement with our labels.
4.2 Overall Crash-Reasoning Performance
Discriminability varies widely across agents and crash types. Table 2 shows that ranges from for DeepSeek V4 Flash to for Claude Opus 5, and that all four agents discriminate better on OSS-Fuzz than on Linux. The gap between agents on Linux is wider than OSS-Fuzz. In Linux split, Opus reaches , 25.1 pp. above the next-best agent, Gemini, compared with a 15.3 pp. lead on OSS-Fuzz. DeepSeek falls to on Linux, predicting a crash on of non-crashing trees against of crashing ones. Besides, as shown in Table 3, also varies in different crash type. For Opus on Linux, hung-task and deadlock reports, which arise from interactions across threads rather than from a single faulting operation, reach only and , against

Figure 3: Frequency (%) of stack trace score on
for KASAN and 71.7% for UBSAN reports. On OSS-Fuzz, J varies even among memory-safety crash types, from 37.5% for double free to 81.4% for heap buffer overflows.
Agents tend toward predicting no crash. Although Table 2 shows positive discriminability for all four agents, their errors are strongly asymmetric: false-negative rates (1 – TPR) range from 27.5% to 76.8%, whereas FPR range from 2.8% to 10.9%. Agents thus rarely raise false alarms but miss many real crashes; even Opus misses more than a quarter of them. Opus's lead over Gemini comes from recognizing more crashes (TPR 72.5% vs. 49.0%) despite higher false alarms (FPR 4.8% vs. 2.8%). When agents predict a crash, they usually locate the crash correctly. As shown in Figure 3, conditional on predicting crash on , GLM, Gemini, and Opus identify the correct crash site in most of the cases, while DeepSeek does fewer than half of its crash predictions. This contrasts with their frequent missed crashes: although the agents often fail to recognize that a crash occurs, their positive
| Linux | OSS-Fuzz | ||
|---|---|---|---|
| Crash type | Crash type | ||
| hung task (19) | +39.5 | double free (10) | +37.5 |
| deadlock (46) | +40.5 | stack buffer overflow (27) | +61.0 |
| divide error (7) | +43.5 | global buffer overflow (9) | +64.9 |
| BUG (89) | +56.4 | uninitialized value (58) | +66.6 |
| WARNING (167) | +63.9 | SEGV (50) | +74.6 |
| NULL deref (87) | +66.3 | heap use-after-free (45) | +74.9 |
| KASAN (88) | +68.5 | heap buffer overflow (173) | +81.4 |
| UBSAN (23) | +71.7 | index out of bounds (5) | +100.0 |
| general protection fault (19) | +80.3 | other (8) | +71.9 |
Table 3: Mean per-crash (%) for Claude Opus 5, by crash type with at least five instances

Figure 4: versus
predictions usually identify where it occurs.
4.3 Discriminability and the Intervention Site
We now condition discriminability on the site profile . Starting with the observation indicator , we separate how often agents observe the intervention site from how well they discriminate conditional on observing it. Let , averaged over and , be the intervention-site observation rate, and let and denote discriminability among trajectories that do and do not observe the intervention site. Because the observation rate differs by at most 3.3 pp. between and for every agent and split, decomposes as
with error at most 0.6 pp. in all our experiments (Appendix C). is the contribution of trajectories that observe the intervention site, and that of trajectories that do not.
Finding intervention site does not ensure discrimination. Figure 4 and Table 4 show differences among agents. Opus has the highest intervention-site observation rate (p = 89.0%) and conditional discriminability ( ). GLM and Gemini find intervention site in 76.6% and 82.9% of trajectories, yet their conditional discriminability is only 49.2% and 55.7%. DeepSeek is lower on both measures, at 55.6% intervention-site observation rate and 21.5% conditional discriminability. Even after observing this code, Opus predicts a crash on 79.7% of trajectories (Table 8), leaving a gap from perfection. The gap to perfect discrimination therefore comes both from missing intervention site and conditional discriminability.
| Model | p | ||||
|---|---|---|---|---|---|
| DeepSeek V4 Flash | 55.6 | +21.5 | +0.6 | +11.9 | +0.3 |
| GLM 5.3 | 76.6 | +49.2 | -0.6 | +37.7 | -0.1 |
| Gemini 3.8 Flash | 82.9 | +55.7 | -0.3 | +46.2 | -0.0 |
| Claude Opus 5 | 89.0 | +75.4 | +1.9 | +67.1 | +0.2 |
Table 4: Discriminability decomposition (%)
Without the intervention site, agents do not discriminate. Although we remove known cues to source-tree identity (Section 3.1), an agent could still exploit an unanticipated side channel and discriminate without reasoning about the intervention site. captures any such effect together with sampling noise: on the full dataset it ranges from to pp., and the corresponding from to pp (Table 4). Virtually all measured discriminability therefore comes from trajectories that observe the intervention site.
Discrimination drops when the crash occurs far from the intervention site. We group Linux instances by the distance between the reference crash site and the intervention site: in the same function, the same file, the same subsystem, or far (a different subsystem). All four agents reach their lowest in the far group (Figure 5); for Opus, falls from about in the same-function and same-file groups to in the far group. Figure 6 breaks down the trajectories in each distance group based on the ordering between observations of intervention site and crash site on . Opus observes both sites in , , and of trajectories in the same-function, same-file, and same-subsystem groups, but only in the far group. Instead, of far-group trajectories observe only the intervention site, compared with in the other groups, and observe only the crash site. When the two sites first appear at different turns, the intervention site comes first three to eight times as often as the crash site ( vs. of trajectories in the same-function group, and vs. in the far group). Therefore, when the crash manifests in another subsystem, Opus usually finds the intervention site but often does not reach the crash site, a pattern that coincides with the lower of the far group.
4.4 Source Interventions Reveal Bias
Without observing the intervention site, a trajectory lacks direct evidence of the source change;

Figure 5: Mean per-crash on Linux by distance between the intervention and crash sites.

Figure 6: Order of observing intervention and crash sites in trajectories (Linux, Claude Opus 5).
Section 4.3 shows that such trajectories have near-zero discriminability. They still produce verdicts, however, and whichever verdict they give is correct on one of the two trees. We use the site profile to examine these verdicts and compare their influence to single-tree metrics and to .
Agents favor no-crash without observing the intervention site. On , between 11.3% and 44.0% of correct no-crash verdicts come from trajectories without observing intervention site (Table 5). Among trajectories that do not observe the intervention site, 86.7%–97.4% predict no-crash, averaged over and . According to the above readings of these ungrounded trajectories, the coding agents show their strong statistical prior towards no-crash when observing no intervention site. This prior inflates correct rate by giving ungrounded no-crash verdicts in .
Crash-site analysis alone does not ensure discrimination. Table 6 compares Opus trajectories with profiles FFTT and FFFF. On , the crash-verdict rate is 42.6% for FFTT, compared with 6.0% for FFFF. On , the corresponding rates are 39.2% and 5.1%. The roughly 37 pp. increase on is therefore accompanied by a 34 pp. increase on , so discriminability gains only about 3 pp. Claude Opus 5 thus predicts a crash more often when it reads a suspicious crash site despite missing the intervention site, and it does so on both and . Results for the other agents are reported in Table 9 in the Appendix.
| Model | DeepSeek V4 Flash | GLM 5.3 | Gemini 3.8 Flash | Claude Opus 5 |
|---|---|---|---|---|
| On | ||||
| Pr( | no-crash) | 49.3 | 38.9 | 31.9 | 34.0 |
| Pr(no-crash | ) | 86.4 | 97.7 | 95.8 | 90.0 |
| On | ||||
| Pr( | no-crash) | 44.0 | 23.8 | 16.9 | 11.3 |
| Pr(no-crash | ) | 87.0 | 97.1 | 95.5 | 91.9 |
| Average of and | ||||
| Pr( | no-crash) | 46.7 | 31.4 | 24.4 | 22.6 |
| Pr(no-crash | ) | 86.7 | 97.4 | 95.7 | 90.9 |
Table 5: Frequency (%) of coding agents' trajectories in different patterns
| Source tree | Pr(v=crash | ·) (%) | Difference (pp.) | |
|---|---|---|---|
| FFTT | FFFF | ||
| 42.6 | 6.0 | ≈ 37 | |
| 39.2 | 5.1 | ≈ 34 | |
| ≈ 3.5 | ≈ 0.8 | ≈ 3 | |
Table 6: Opus 5 crash-verdict rates conditioned on
Source interventions reduce evaluation bias. These results show that single-tree accuracy can reward prediction bias rather than crash reasoning. In paired evaluation, prediction tendencies shared by both trees cancel in in expectation. A high therefore reflects distinguishing execution outcomes, rather than defaulting to no-crash without seeing the intervention site or merely recognizing a potential crash site.
5 Conclusion
In this work, we evaluate the crash reasoning of coding agents with our paired evaluation methodology on SYSRB, which pairs source trees with opposite crash outcomes. The main failure pattern of agents is missing real crashes (27.5–76.8% false-negative rate). Finding the intervention site is not enough: even when it observes the site, the most capable agent, Claude Opus 5, falls 24.6 pp. short of perfect discriminability. Discriminability also drops sharply when the crash occurs far from the intervention site. Finally, single-source-tree evaluations can reward misleading predictions; our paired evaluation reduces this bias, motivating the paired design over single-tree evaluation.
Limitations
Necessity check. Though the site profile provides a systematic way to highlight the trajectories without grounding on intervention site or crash site, our approach still lacks direct measurement of crash reasoning.
Environment mismatch. Practitioners debugging system crashes utilize debuggers, git history and online documents to help understand the crash mechanism, while in our experiments we restrict coding agents to local source code navigation and bash commands to limited builtin software.
Evaluation cost. It requires K runs (usually 8) to soundly estimate crash-verdict frequency on a single source tree, and considering the complex nature of system-level crash reasoning, each agentic trajectory is longer than normal tasks. Therefore, our evaluation can be highly constrained by budget. Source of . We only pick the commits from Linux and open-source system library repositories, while mutating code and other methods can generate interventions with opposite execution outcomes. Given the commits are public on the Internet, coding agents may have been trained on the commits and can produce crash verdict affected by data contamination.
Ethical Considerations
We do not foresee significant ethical risks from this work. All crashes in SYSRB come from public sources: syzbot reports, whose reproducers and crash reports are publicly available, and OSS-Fuzz crashes collected by ARVO after they were fixed and disclosed. The benchmark therefore contains no previously undisclosed vulnerabilities. The task asks an agent whether a known input crashes a given source tree and, if so, where; it does not involve exploit development or attacks on deployed systems. All source trees come from open-source projects and remain subject to their original licenses. The study involves no human subjects or personal data: the manual validation of the trajectory annotator was performed by the authors.
References
Luyao Bai, Kenan Alghythee, Hang Zhang, and Xiaoguang Wang. 2026. Beyond crash-to-patch: Patch evolution for linux kernel repair. arXiv preprint arXiv:2604.03851.
Marcel Böhme, Ezekiel O Soremekun, Sudipta Chattopadhyay, Emamurho Ugherughe, and Andreas Zeller. 2017. Where is the bug and how is it fixed? an experiment with practitioners. In Proceedings of the 2017 11th joint meeting on foundations of software engineering, pages 117–128.
Yangruibo Ding, Yanjun Fu, Omniyyah Ibrahim, Chawin Sitawarin, Xinyun Chen, Basel Alomair, David Wagner, Baishakhi Ray, and Yizheng Chen. 2025. Vulnerability detection with code language models: How far are we? In Proceedings of the IEEE/ACM 47th International Conference on Software Engineering, ICSE '25, page 1729–1741. IEEE Press.
Google. syzbot. https://syzkaller.appspot.com. Accessed: 2026-10-11.
Alex Gu, Baptiste Rozière, Hugh Leather, Armando Solar-Lezama, Gabriel Synnaeve, and Sida I Wang. 2024. Cruxeval: A benchmark for code reasoning, understanding and execution. arXiv preprint arXiv:2401.03065.
Kangzheng Gu, Yifan Zhang, Yuan Zhang, and Min Yang. 2026. KernelRCA: Facilitating root cause analysis of memory corruptions in linux kernel with contextual causality chain. In 35th USENIX Security Symposium (USENIX Security 26), pages 791–810, Baltimore, MD. USENIX Association.
Chenxi Huang, Alex Mathai, Feiyang Yu, Aleksandr Nogikh, Petros Maniatis, Franjo Ivancic, Eugene Wu, Kostis Kaffes, Junfeng Yang, and Baishakhi Ray. 2026. Outrunning LLM cutoffs: A live kernel crash resolution benchmark for all. In Forty-third International Conference on Machine Learning.
Jia Li, Yuxin Su, and Michael R. Lyu. 2026. From laboratory to real-world applications: Benchmarking agentic code reasoning at the repository level. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8845–8869, San Diego, California, United States. Association for Computational Linguistics.
Alex Mathai, Chenxi Huang, Suwei Ma, Jihwan Kim, Hailie Mitchell, Aleksandr Nogikh, Petros Maniatis, Franjo Ivancic, Junfeng Yang, and Baishakhi Ray. 2026. kagent: An execution-guided crash resolution agent for the linux kernel. In Deep Learning for Code: Towards Human-Centered Coding Agents.
Alex Mathai, Chenxi Huang, Petros Maniatis, Aleksandr Nogikh, Franjo Ivančić, Junfeng Yang, and Baishakhi Ray. 2024. Kgym: A platform and dataset to benchmark large language models on linux kernel crash resolution. Advances in Neural Information Processing Systems, 37:78053–78078.
Xiang Mei, Jordi Del Castillo, Pulkit Singh Singaria, Haoran Xi, Abdelouahab Benchikh, Tiffany Bao, Ruoyu Wang, Yan Shoshitaishvili, Adam Doupé,
Hammond Pearce, et al. 2026. Arvo: Atlas of reproducible vulnerabilities for open-source software. In 2026 IEEE 11th European Symposium on Security and Privacy (EuroS&P), pages 860–873. IEEE.
Matas Rastenis, Ben Chou, Shauvik Roy Choudhary, and René Just. 2026. Automated software test generation at industry scale using a multi-agent architecture and workflow integration. In Proceedings of the IEEE/ACM 48th International Conference on Software Engineering: Software Engineering in Practice, pages 808–818.
Monoshi Kumar Roy, Simin Chen, Benjamin Steenhoek, Jinjun Peng, Gail Kaiser, Baishakhi Ray, and Wei Le. 2026. Codesense: A real-world benchmark and dataset for code semantic reasoning. In International Conference on Learning Representations, volume 2026, pages 13735–13768.
Gabriel Ryan, Siddhartha Jain, Mingyue Shang, Shiqi Wang, Xiaofei Ma, Murali Krishna Ramanathan, and Baishakhi Ray. 2024. Code-aware prompting: A study of coverage-guided test generation in regression setting using llm. Proceedings of the ACM on Software Engineering, 1(FSE):951–971.
Kostya Serebryany. 2017. {OSS-Fuzz}-google’s continuous fuzzing service for open source software.
Ramneet Singh, Sathvik Joel, Abhav Mehrotra, Nalin Wadhwa, Ramakrishna B Bairi, Aditya Kanade, and Nagarajan Natarajan. 2025. Code Researcher: Deep research agent for large systems code and commit history. arXiv preprint arXiv:2506.11060.
Hamed Taherkhani, Mohammad Abdollahi, Melika Sepidband, Hridya Dhulipala, Tien N. Nguyen, and Hadi Hemmati. 2026. Can llms reason about runtime behavior? a repository-level dynamic benchmark. Preprint, arXiv:2609.28449.
Yanlin Wang, Suiquan Wang, Yanli Wang, Bowen Zhang, Daya Guo, Jiachi Chen, and Zibin Zheng. 2026. Reporeasoner: Evaluating repository-level code reasoning ability of long-context language models. Proceedings of the ACM on Software Engineering, 3(FSE):2790–2812.
Danning Xie, Mingwei Zheng, Xuwei Liu, Jiannan Wang, Chengpeng Wang, Lin Tan, and Xiangyu Zhang. 2026. Core: Benchmarking LLMs' code reasoning capabilities through static analysis tasks. In The Thirty-ninth Annual Conference on Neural Information Processing Systems Datasets and Benchmarks Track.
Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, et al. 2026. Deepseek-v4: Towards highly efficient million-token context intelligence. arXiv preprint arXiv:2606.19348.
Ruiyang Xu, Jialun Cao, Yaojie Lu, Ming Wen, Hongyu Lin, Xianpei Han, Ben He, Shing-Chi Cheung, and
Le Sun. 2025. Cruxeval-x: A benchmark for multilingual code reasoning, understanding and execution. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 23762–23779.
John Yang, Carlos E Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik R Narasimhan, and Ofir Press. 2024. SWE-agent: Agent-computer interfaces enable automated software engineering. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.
Aohan Zeng, Xin Lv, Zhenyu Hou, Zhengxiao Du, Qinkai Zheng, Bin Chen, Da Yin, Chendi Ge, Chenghua Huang, Chengxing Xie, et al. 2026. Glm-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763.
Tianren Zhang, Sishuai Gong, and Pedro Fonseca. 2025. KRR: Efficient and scalable kernel record replay. In 19th USENIX Symposium on Operating Systems Design and Implementation (OSDI 25), pages 615–632, Boston, MA. USENIX Association.
Yuntong Zhang, Jiawei Wang, Dominic Berzin, Martin Mirchev, and Abhik Roychoudhury. 2026. Fixing security vulnerabilities with agentic ai in oss-fuzz. In Proceedings of the IEEE/ACM 48th International Conference on Software Engineering: Software Engineering in Practice, pages 374–384.
A Experiment Details
A.1 Model Serving and Sampling Parameters
All agents run the same harness, prompt, source tree images and limits ( samples per instance and source tree, 2-hour wall clock, no network). The coding CLIs send no sampling parameters, so each model decodes with its checkpoint's or its provider's defaults. Table 7 lists the per-model configuration.
When running Claude Opus 5 with Claude Code, we observe rejections to finish the crash reasoning task due to cybersecurity classifier. These trajectories’ verdicts are regarded as invalid, distinguished from crash and no-crash verdicts and excluded from our statistics. Same as the ungraded trajectories, we exclude them from our accounting.
B Crash Report
Crash type and subsystem. Both labels are derived deterministically from the dataset with frozen, versioned rule tables, never by a model. The reference crash type is the first match of an ordered regular-expression table over a closed vocabulary: for Linux, applied to the syzbot title and then the report head (KASAN, KMSAN, KFENCE, UBSAN,
| Model | Agent | Serving | Weights | Context / sampling |
|---|---|---|---|---|
| DeepSeek V4 Flash (0731) | Claude Code 2.1.235 | vLLM, 8×B200 | FP8 | 262k; T=1.0, top-p 0.95 |
| GLM 5.3 | Claude Code 2.1.235 | vLLM, 8×B200 | NVFP4 | 262k; T=1.0, top-p 0.95 |
| Gemini 3.8 Flash | Antigravity CLI 1.2.1 | — | — | provider default; effort high |
| Claude Opus 5 | Claude Code 2.1.235 | — | — | provider default; effort high |
Table 7: Serving and sampling configuration. Both self-hosted models use tensor parallelism 8 with expert parallelism and lossless speculative decoding; Claude Code compacts its context at about 165k tokens. Effort “high” is each CLI’s default.
| Model | Split | TPR1 | FPR1 | TPR0 | FPR0 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DeepSeek V4 Flash (0731) | Full | 56.2 | 54.9 | 30.8 | 9.4 | 13.6 | 13.0 | +21.5 | +0.6 | +11.9 | +0.3 | +0.1 | +12.3 | +12.3 |
| Linux | 45.9 | 46.1 | 25.7 | 12.1 | 15.9 | 15.8 | +13.6 | +0.2 | +6.3 | +0.1 | -0.0 | +6.3 | +6.5 | |
| OSS-Fuzz | 70.4 | 67.1 | 35.4 | 6.8 | 7.8 | 6.9 | +28.6 | +0.9 | +19.7 | +0.3 | +0.5 | +20.4 | +20.5 | |
| GLM 5.3 | Full | 76.8 | 76.5 | 53.7 | 4.4 | 2.3 | 2.9 | +49.2 | -0.6 | +37.7 | -0.1 | +0.1 | +37.7 | +37.6 |
| Linux | 68.5 | 68.2 | 43.0 | 3.3 | 2.0 | 3.2 | +39.6 | -1.1 | +27.1 | -0.4 | +0.0 | +26.8 | +26.6 | |
| OSS-Fuzz | 88.4 | 88.0 | 65.3 | 5.6 | 3.2 | 1.9 | +59.7 | +1.2 | +52.6 | +0.1 | +0.1 | +52.9 | +53.1 | |
| Gemini 3.8 Flash | Full | 83.0 | 82.8 | 58.2 | 2.5 | 4.2 | 4.5 | +55.7 | -0.3 | +46.2 | -0.0 | +0.1 | +46.2 | +46.2 |
| Linux | 77.1 | 76.1 | 50.7 | 2.5 | 4.8 | 4.8 | +48.2 | -0.0 | +37.0 | -0.0 | +0.2 | +37.2 | +37.2 | |
| OSS-Fuzz | 92.1 | 93.0 | 67.7 | 2.5 | 1.3 | 2.5 | +65.2 | -1.2 | +60.4 | -0.1 | -0.3 | +60.0 | +60.0 | |
| Claude Opus 5 | Full | 89.6 | 88.3 | 79.7 | 4.3 | 10.0 | 8.1 | +75.4 | +1.9 | +67.1 | +0.2 | +0.4 | +67.7 | +67.7 |
| Linux | 85.1 | 83.9 | 77.6 | 4.7 | 11.4 | 9.1 | +72.9 | +2.3 | +61.6 | +0.4 | +0.4 | +62.3 | +62.3 | |
| OSS-Fuzz | 95.9 | 94.5 | 82.4 | 3.9 | 3.2 | 4.2 | +78.5 | -1.0 | +74.8 | -0.0 | +0.5 | +75.2 | +75.3 |
Table 8: Full decomposition of by the gate on Linux + OSS-Fuzz, all values in percent.
WARNING, BUG, NULL dereference, general protection fault, deadlock, hung task, memory leak, divide error, stack overflow, panic); for OSS-Fuzz, applied to ARVO's crash label, its summary, and the sanitizer ERROR: line (heap/stack/global buffer overflow, heap use-after-free, use-of-uninitialized-value, SEGV, double free, index out of bounds, ...). The agent's crashType is normalized through the same vocabulary and compared for equality; labels outside it are mismatches, and classes the agent is not offered map to other. The subsystem of a frame is a fixed function of its path: the leading directory components for Linux (mm/huge_memory.c → mm, drivers/net/... → drivers/net) and the top-level source directory for OSS-Fuzz. The "same subsystem" stack score compares the predicted and reference crash frames' subsystems after stripping compiler suffixes and removing entry, sanitizer and reporting frames.
C J Decomposition
Setup. Fix an agent and a set of instances. Every submitted run carries an source tree label (crashing or non-crashing), a verdict , and a binary intervention-site gate ; in the main text . The grader leaves undetermined for a small fraction of runs (an incomplete transcript, or a judge claim it could not verify); such runs are excluded from the decomposition population, which is therefore the submitted runs with a determined gate. Write and for the empirical distributions over the population on each source tree, every run counted once. Then
Define the per-source tree intervention-site observation rates and the gated and blind verdict rates,
and the conditional discriminabilities (in the main text ) and .
Exact identity. By the law of total probability on each source tree separately, and , so
The two brackets are the contributions of gated and blind runs to . They are not multiples of
| Model | Source tree | (%) | (%) | Lift (pp.) |
| GLM 5.3 | 10.5 | 1.6 | +8.8 | |
| 13.8 | 2.1 | +11.6 | ||
| -3.3 | -0.5 | -2.8 | ||
| DeepSeek V4 Flash | 15.4 | 13.3 | +2.1 | |
| 17.8 | 12.6 | +5.2 | ||
| -2.4 | +0.7 | -3.1 | ||
| Gemini 3.8 Flash | 27.0 | 2.5 | +24.6 | |
| 26.3 | 2.9 | +23.4 | ||
| +0.8 | -0.4 | +1.2 | ||
| Claude Opus 5 | 42.6 | 6.0 | +36.7 | |
| 39.2 | 5.1 | +34.1 | ||
| +3.5 | +0.8 | +2.6 |
Table 9: Crash-verdict rates conditioned on
and in general, because the two source trees are weighted by their own intervention-site observation rates.
Isolating the correction. Let be the source tree-averaged intervention-site observation rate (the of the main text) and , so and . Substituting into (3) and collecting terms,
which gives the exact decomposition
The first two terms are Table 4; is exactly what it omits. vanishes when the gate fires equally often on both source trees () or when gated and blind runs say “crash” at the same overall rate, and it is bounded by since each bracket lies in .