A formalization of Heisenbugs and their causes in terms of hyperproperties.
Sarah Sallinger, Georg Weissenbacher, Florian Zuleger
TU Wien, Vienna, Austria.
Key points
From the paper's conclusion- We provide two small case studies and a taxonomy of potential causes of Heisenbugs.
Abstract
The already challenging task of identifying the cause of a bug becomes even more cumbersome if those bugs disappear or change their behavior under observation. Such bugs occur in a range of contexts including elusive concurrency bugs as well as unintended system alterations during debugging and-as a pun on the name of Werner Heisenberg-are often referred to as Heisenbugs. Heisenbugs can be caused by various sources of nondeterminism on different system levels, many of which developers and testers might not even be aware of. This paper provides formal foundations for rigorously reasoning about causes of Heisenbugs. It provides a formal definition of Heisenbugs in terms of a hyperproperty and introduces a framework for determining the causality of Heisenbugs in presence of multiple candidate causes based on said hyperproperty. We analyze the properties of causes and the implications on practical causal analyses. We provide two small case studies and a taxonomy of potential causes of Heisenbugs.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- REINS: Agent-guided Thread Scheduling for Concurrency Bug Detection and ReproductionarXiv · 2026
- Do Coding Agents Understand Why Systems Crash---and Why They Don't?arXiv · 2026
- ConFL: Explainable Concurrent Fault Localization via Hierarchy-Guided LLM ReasoningProceedings of the ACM on Software Engineering · 2026
- DistDebug-Bench: Can LLM Agents Diagnose Bugs in Distributed Systems?arXiv · 2026
- VeriHarm-Bench: Measuring Harmful Success in LLM Coding Agents VerifiablyarXiv · 2026
- Prosecutor: Bayesian Counterfactual Fault LocalizationProceedings of the ACM on Programming Languages · 2026