• DocumentCode
    707995
  • Title

    Guided Test Generation for Finding Worst-Case Stack Usage in Embedded Systems

  • Author

    Tingting Yu ; Cohen, Myra

  • Author_Institution
    Dept. of Comput. Sci., Univ. of Kentucky, Lexington, KY, USA
  • fYear
    2015
  • fDate
    13-17 April 2015
  • Firstpage
    1
  • Lastpage
    10
  • Abstract
    Embedded systems are challenging to program correctly, because they use an interrupt programming paradigm and run in resource constrained environments. This leads to a class of faults for which we need customized verification techniques. One such class of faults, stack overflows, are caused when the combination of active methods and interrupt invocations on the stack grows too large, and these can lead to data loss and other significant device failures. Developers need to estimate the worst-case stack usage (WCSU) during system design, but determining the actual maximum value is known to be a hard problem. The state of the art for calculating WCSU uses static analysis, however this has a tendency to over approximate the potential stack which can lead to wasted resources. Dynamic techniques such as random testing often under approximate the WCSU. In this paper, we present SIMSTACK, a framework that utilizes a combination of static analysis and a genetic algorithm to search for WCSUs. We perform an empirical study to evaluate the effectiveness of SIMSTACK and show that SIMSTACK is competitive with the WCSU values obtained by static analysis, and improves significantly over a random algorithm. When we use only the genetic algorithm, SIMSTACK performs almost as well as the guided technique, but takes significantly longer to converge on the maximum WCSUs.
  • Keywords
    embedded systems; formal verification; genetic algorithms; program diagnostics; program testing; SIMSTACK; WCSU; active methods; embedded system; genetic algorithm; guided test generation; interrupt invocations; random testing technique; static analysis; verification technique; worst-case stack usage; Biological cells; Embedded systems; Genetic algorithms; Runtime; Schedules; Testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Testing, Verification and Validation (ICST), 2015 IEEE 8th International Conference on
  • Conference_Location
    Graz
  • Type

    conf

  • DOI
    10.1109/ICST.2015.7102592
  • Filename
    7102592