Guided test generation for finding worst-case stack usage in embedded systems

Tingting Yu, Myra B. Cohen

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

2 Scopus citations

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.

Original languageEnglish
Title of host publication2015 IEEE 8th International Conference on Software Testing, Verification and Validation, ICST 2015 - Proceedings
ISBN (Electronic)9781479971251
DOIs
StatePublished - May 5 2015
Event8th IEEE International Conference on Software Testing, Verification and Validation, ICST 2015 - Graz, Austria
Duration: Apr 13 2015Apr 17 2015

Publication series

Name2015 IEEE 8th International Conference on Software Testing, Verification and Validation, ICST 2015 - Proceedings

Conference

Conference8th IEEE International Conference on Software Testing, Verification and Validation, ICST 2015
Country/TerritoryAustria
CityGraz
Period4/13/154/17/15

Bibliographical note

Publisher Copyright:
© 2015 IEEE.

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Guided test generation for finding worst-case stack usage in embedded systems'. Together they form a unique fingerprint.

Cite this