Title :
Analyzing Long-Running Controller Applications for Specification Violations Based on Deterministic Replay
Author :
Schatz, Roland ; Prähofer, Herbert
Author_Institution :
Christian Doppler Lab. for Automated Software Eng., Johannes Kepler Univ., Linz, Austria
Abstract :
Deterministic replay debugging is a technique aimed at finding and debugging software failures occurring in field operation that are usually hard to reproduce. With deterministic replay debugging a software run is recorded, so that it can be reproduced deterministically in a debugger. While deterministic replay debugging is capable of reproducing a failure, in practice, especially in the case of a long-running application, it is still hard for the developer to locate the exact position of the failure in the trace log. Based on our previous work on deterministic replay debugging, we propose an approach to use behavior specifications in the form of test cases to search a recorded trace log. We first present a formal approach for the specification of test cases for PLC applications based on hybrid automata. Then we present a method for searching a recorded program trace for occurrences of the test scenario. That way, we can not only identify regions where a specification violation occurred, but also the corresponding regions in the trace where the test case passed, which can then be further used for comparison. We present the theoretical background of our approach, an implementation of the trace search algorithm, and an example application.
Keywords :
automata theory; formal specification; program debugging; programmable controllers; system recovery; PLC applications; deterministic replay debugging; hybrid automata; long running controller application analysis; software failure debugging; specification violations; trace search algorithm; Actuators; Algorithm design and analysis; Automata; Clocks; Debugging; Semantics; Software; PLC applications; debugging; deterministic replay; hybrid automata; software tracing; software visualization; testing;
Conference_Titel :
Software Engineering and Advanced Applications (SEAA), 2012 38th EUROMICRO Conference on
Conference_Location :
Cesme, Izmir
Print_ISBN :
978-1-4673-2451-9
DOI :
10.1109/SEAA.2012.10