2011 Fourth IEEE International Conference on Software Testing, Verification and Validation (2011)
Mar. 21, 2011 to Mar. 25, 2011
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/ICST.2011.65
Developers have used data structure repair over the last few decades as an effective means to recover on-the-fly from errors in program state. Traditional repair techniques were based on dedicated repair routines, whereas more recent techniques have used invariants that describe desired structural properties as the basis for repair. All repair techniques are designed with one primary goal: run-time error recovery. However, the actions that any such technique performs to repair an erroneous program state are meant to produce the effect of the actions of a (hypothetical) correct program. The key insight in this paper is that repair actions on the program state can guide debugging of code (when the erroneous program execution is due to a fault in the program and not an external event).This paper presents an approach that abstracts concrete repair actions that a routine performs to repair an erroneous state into a sequence of program statements that perform the same actions using variables visible in the scope of the faulty code. Thus, appending the generated statements to the original code is akin to performing the repair from within the program. Our implementation uses the Juzi data structure repair tool as an enabling technology. Experimental results using a library data structure as well as two applications demonstrate the effectiveness of our approach in enabling repair of faulty code.
Automated Debugging, Fault Localization, Program Repair, Data Structure Repair, Error Recovery
S. Khurshid, M. Z. Malik and J. H. Siddiqi, "Constraint-Based Program Debugging Using Data Structure Repair," 2011 Fourth IEEE International Conference on Software Testing, Verification and Validation(ICST), Berlin, Germany, 2011, pp. 190-199.