Partial replay of long-running applications
Authors:
Open Access
- 9 September 2011
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 135-145
Abstract
Bugs in deployed software can be extremely difficult to track down. Invasive logging techniques, such as logging all non-deterministic inputs, can incur substantial runtime overheads. This paper shows how symbolic analysis can be used to re-create path equivalent executions for very long running programs such as databases and web servers. The goal is to help developers debug such long-running programs by allowing them to walk through an execution of the last few requests or transactions leading up to an error. The challenge is to provide this functionality without the high runtime overheads associated with traditional replay techniques based on input logging or memory snapshots. Our approach achieves this by recording a small amount of information about program execution, such as the direction of branches taken, and then using symbolic analysis to reconstruct the execution of the last few inputs processed by the application, as well as the state of memory before these inputs were executed. We implemented our technique in a new tool called bbr. In this paper, we show that it can be used to replay bugs in long-running single-threaded programs starting from the middle of an execution. We show that bbr incurs low recording overhead (avg. of 10%) during program execution, which is much less than existing replay schemes. We also show that it can reproduce real bugs from web servers, database systems, and other common utilities.Keywords
This publication has 16 references indexed in Scilit:
- Language-based replay via data flow cut2010
- Execution synthesis2010
- Test Input Generation for Programs with Pointers2009
- Framework for instruction-level tracing and analysis of program executions2006
- Automatically generating malicious disks using symbolic execution2006
- CUTE2005
- PSE2004
- Test input generation with java PathFinder2004
- RacerX2003
- Optimal tracing and incremental reexecution for debugging long-running programs1994