Static Deadlock Detection for Interrupt-driven Embedded Software
Interrupt-driven embedded software is widely used in safety-critical systems, where any occurrence of errors can lead to serious consequences. Deadlock is a common concurrency error, and deadlock detection methods are mainly designed for multi-threaded programs. However, due to the differences in concurrency control and preemption mechanisms between interrupt-driven programs and multi-threaded programs, the existing deadlock detection methods for multi-threaded programs cannot be directly applied to interrupt-driven programs. A static deadlock detection method is proposed for interrupt-driven programs to enhance the reliability and safety of interrupt-driven embedded software. Building upon the traditional context-sensitive lockset analysis, this method takes into account the concurrent semantics of interrupts and extends the lock graph model. Our method effectively reduces false positives by analyzing the concurrent relationships of cycles in a lock graph. Based on these methods, we develop a deadlock detection tool, and experiments are conducted with it. The results demonstrate that the proposed method can effectively detect deadlocks related to interrupts.
Authors
- Yaqin Xie (ORCID: https://orcid.org/0000-0003-2266-023X)
- Kaiwen Zhang (ORCID: https://orcid.org/0000-0002-5599-0190)
- Guanjun Liu (ORCID: https://orcid.org/0000-0002-7523-4827)
- Xiaofeng Li (ORCID: https://orcid.org/0000-0002-2016-290X)
- Bin Gu (ORCID: https://orcid.org/0000-0003-0663-7363)
- Jian Guan (ORCID: https://orcid.org/0000-0002-4097-1245)
- Yu Zhang (ORCID: https://orcid.org/0000-0003-2054-7225)
Institutions
- Tongji University (CN)
Publication Details
- Published
- 2024-11-08
- DOI
- https://doi.org/10.1109/iccsi62669.2024.10799242
- Primary Topic
- Real-Time Systems Scheduling
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Nature