• DocumentCode
    1496524
  • Title

    Better Debugging via Output Tracing and Callstack-Sensitive Slicing

  • Author

    Horwitz, Susan ; Liblit, Ben ; Polishchuk, Marina

  • Author_Institution
    Dept. of Comput. Sci., Univ. of Wisconsin-Madison, Madison, WI, USA
  • Volume
    36
  • Issue
    1
  • fYear
    2010
  • Firstpage
    7
  • Lastpage
    19
  • Abstract
    Debugging often involves 1) finding the point of failure (the first statement that produces bad output) and 2) finding and fixing the actual bug. Print statements and debugger break points can help with step 1. Slicing the program back from values used at the point of failure can help with step 2. However, neither approach is ideal: Debuggers and print statements can be clumsy and time-consuming and backward slices can be almost as large as the original program. This paper addresses both problems. We present callstack-sensitive slicing, which reduces slice sizes by leveraging the series of calls active when a program fails. We also show how slice intersections may further reduce slice sizes. We then describe a set of tools that identifies points of failure for programs that produce bad output. Finally, we apply our point-of-failure tools to a suite of buggy programs and evaluate callstack-sensitive slicing and slice intersection as applied to debugging. Callstack-sensitive slicing is very effective: On average, a callstack-sensitive slice is about 0.31 time the size of the corresponding full slice, down to just 0.06 time in the best case. Slice intersection is less impressive, on average, but may sometimes prove useful in practice.
  • Keywords
    program debugging; program slicing; software reliability; buggy programs; callstack-sensitive slicing; point-of-failure tools; program debugging; program slicing; slice intersection; Static program slicing; callstack-sensitive analysis; output tracing and attribution.; points of failure;
  • fLanguage
    English
  • Journal_Title
    Software Engineering, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    0098-5589
  • Type

    jour

  • DOI
    10.1109/TSE.2009.66
  • Filename
    5282499