Race conditions are difficult to detect because they usually occur only under specific execution interleavings. Numerous program analysis and testing techniques have been proposed to detect race conditions between threads on single applications. However, most of these techniques neglect races that occur at the process level due to complex system event interactions. This article presents a framework, SIMEXPLORER, that allows engineers to effectively test for process-level race conditions. SIMEXPLORER first uses dynamic analysis techniques to observe system execution, identify program locations of interest, and report faults related to oracles. Next, it uses virtualization to achieve the fine-grained controllability needed to exercise event interleavings that are likely to expose races. We evaluated the effectiveness of SIMEXPLORER on 24 real-world applications containing both known and unknown process-level race conditions. Our results show that SIMEXPLORER is effective at detecting these race conditions, while incurring an overhead that is acceptable given its effectiveness improvements.
|Journal||Software Testing Verification and Reliability|
|State||Published - Jun 1 2017|
Bibliographical noteFunding Information:
This work has been supported in part by National Science FoundationCCF-1464032, the Air Force Office of Scientific Research through award FA9550-10-1-0406, the Army Research Office through award W911NF-13-1-0154, DARPA through award FA8750-14-2-0053, and Maryland Procurement Office under agreement numbers H98230-14-C-0140. We thank Supat Rattanasuksun for helping with empirical study.
Copyright © 2017 John Wiley & Sons, Ltd.
- race conditions
- software testing
- virtual platforms
ASJC Scopus subject areas
- Safety, Risk, Reliability and Quality