Stack size analysis for interrupt-driven programs

被引:10
|
作者
Chatterjee, K
Ma, D
Majumdar, R
Zhao, T
Henzinger, TA
Palsberg, J [1 ]
机构
[1] Univ Calif Los Angeles, Dept Comp Sci, Los Angeles, CA 90095 USA
[2] Univ Calif Berkeley, Dept Elect Engn & Comp Sci, Berkeley, CA 94720 USA
[3] Purdue Univ, Dept Comp Sci, W Lafayette, IN 47907 USA
[4] Univ Wisconsin, Dept Comp Sci, Milwaukee, WI 53211 USA
[5] Ecole Polytech Fed Lausanne, Sch Comp & Commun Sci, Lausanne, Switzerland
关键词
program analysis; stack bounds; interrupt programs;
D O I
10.1016/j.ic.2004.06.001
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We study the problem of determining stack boundedness and the exact maximum stack size for three classes of interrupt-driven programs. Interrupt-driven programs are used in many real-time applications that require responsive interrupt handling. In order to ensure responsiveness, programmers often enable interrupt processing in the body of lower-priority interrupt handlers. In such programs a programming error can allow interrupt handlers to be interrupted in a cyclic fashion to lead to an unbounded stack, causing the system to crash. For a restricted class of interrupt-driven programs, we show that there is a polynomial-time procedure to check stack boundedness, while determining the exact maximum stack size is PSPACE-complete. For a larger class of programs, the two problems are both PSPACE-complete, and for the largest class of programs we consider, the two problems are PSPACE-hard and can be solved in exponential time. While the complexities are high, our algorithms are exponential only in the number of handlers, and polynomial in the size of the program. (C) 2004 Elsevier Inc. All rights reserved.
引用
收藏
页码:144 / 174
页数:31
相关论文
共 50 条
  • [1] Stack size analysis for interrupt-driven programs
    Chatterjee, K
    Ma, D
    Majumdar, R
    Zhao, T
    Henzinger, TA
    Palsberg, J
    [J]. STATIC ANALYSIS, PROCEEDINGS, 2003, 2694 : 109 - 126
  • [2] A Denotational Model for Interrupt-Driven Programs
    Huang, Yanhong
    Zhao, Yongxin
    Shi, Jianqi
    Zhu, Huibiao
    [J]. IEEE SIXTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2013), 2013, : 15 - 20
  • [3] Static race detection of interrupt-driven programs
    Huo, Wei
    Yu, Hongtao
    Feng, Xiaobing
    Zhang, Zhaoqing
    [J]. Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2011, 48 (12): : 2290 - 2299
  • [4] Numerical Static Analysis of Interrupt-Driven Programs via Sequentialization
    Wu, Xueguang
    Chen, Liqian
    Mine, Antoine
    Dong, Wei
    Wang, Ji
    [J]. 2015 PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON EMBEDDED SOFTWARE (EMSOFT), 2015, : 55 - 64
  • [5] Analyzing and Disentangling Interleaved Interrupt-Driven IoT Programs
    Sun, Yuxia
    Guo, Song
    Cheung, Shing-Chi
    Tang, Yong
    [J]. IEEE INTERNET OF THINGS JOURNAL, 2019, 6 (03) : 5376 - 5386
  • [6] Static Analysis of Runtime Errors in Interrupt-Driven Programs via Sequentialization
    Wu, Xueguang
    Chen, Liqian
    Mine, Antoine
    Dong, Wei
    Wang, Ji
    [J]. ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2016, 15 (04)
  • [7] Deadline analysis of interrupt-driven software
    Brylow, D
    Palsberg, J
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2004, 30 (10) : 634 - 655
  • [8] Static Analysis of Interrupt-driven Programs Synchronized via the Priority Ceiling Protocol
    Schwarz, Martin D.
    Seidl, Helmut
    Vojdani, Vesal
    Lammich, Peter
    Mueller-Olm, Markus
    [J]. ACM SIGPLAN NOTICES, 2011, 46 (01) : 93 - 104
  • [9] Static Analysis of Interrupt-driven Programs Synchronized via the Priority Ceiling Protocol
    Schwarz, Martin D.
    Seidl, Helmut
    Vojdani, Vesal
    Lammich, Peter
    Mueller-Olm, Markus
    [J]. POPL 11: PROCEEDINGS OF THE 38TH ANNUAL ACM SIGPLAN-SIGACT SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES, 2011, : 93 - 104
  • [10] Disclosing and Locating Concurrency Bugs of Interrupt-Driven IoT Programs
    Sun, Yuxia
    Cheung, Shing-Chi
    Guo, Song
    Cheng, Ming
    [J]. IEEE INTERNET OF THINGS JOURNAL, 2019, 6 (05): : 8945 - 8957