Deterministically Executing Concurrent Programs for Testing and Debugging.
Steve MacDonald, Jun Chen, Diego Novillo · 2006
Non-determinism is a serious problem in the testing and debugging of concurrent programs. Thread interleavings may be different on each run, changing the order of events. Testing a concurrent program requires many of these orders to be run, either to determine that all orders produce correct results or to identify the presence of timing-dependent errors called race conditions. This paper presents preliminary work in deterministically executing a concurrent program using a combination of an intermediate compiler form and aspect-oriented programming. Specifically, we execute the code generated for the intermediate compiler form using aspects to control the value returned for the read of any shared variable. This allows us to deterministically execute specific test cases. This work is preliminary, with many outstanding issues, but we feel the technique shows promise.
Cited by 2 works.
Authors
References
- Aspect-oriented programming
- Aspect-Oriented Programming
- An Overview of AspectJ
- Eraser
- Deterministic replay of Java multithreaded applications
- Multithreaded Java program test generation
- Testing Concurrent Java Programs using Randomized Scheduling
- Isolating failure-inducing thread schedules
- Concurrent static single assignment form and constant propagation for explicitly parallel programs
- REACHABILITY TESTING: AN APPROACH TO TESTING CONCURRENT SOFTWARE