Answers are grounded in this paper and cite their sources.
Interrupt‐driven programs are widely used in safety‐critical domains such as aerospace and embedded systems. However, unpredictable interleaved executions of interrupt service routines (ISRs) often lead to concurrency bugs. In particular, if one or more ISRs preempt a sequence of instructions expected to execute atomically, an atomicity violation can occur. To the best of our knowledge, no effective dynamic detector has been specifically designed to accurately and efficiently identify atomicity violations in interrupt‐driven programs, even for predetermined inputs. We propose a dynamic atomicity violation detection framework for interrupt‐driven programs. Specifically, key operations on shared variables and potential preemption points are first analyzed for each task. Building upon this, systematic scheduling generates feasible preemption schedules tailored to preemption relationships and synchronization mechanisms. Subsequently, each preemption schedule is dynamically checked through periodical execution, during which interleaving patterns are recognized to achieve on‐the‐fly atomicity violation detection. To reduce the exploration space, a prefix‐directed feedback mechanism guides subsequent schedules and executions toward uncovered paths. Extensive experiments show that the systematic scheduling strategy is effective in generating feasible preemptions while the prefix‐directed strategy can reduce the number of redundant schedules significantly, making our approach more precise and efficient than related methods.
No takes yet. Share an insight, caveat, or question.
Wang et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: