• DocumentCode
    647200
  • Title

    Automatic recovery of root causes from bug-fixing changes

  • Author

    Thung, Ferdian ; Lo, Daniel ; Lingxiao Jiang

  • Author_Institution
    Sch. of Inf. Syst., Singapore Manage. Univ., Singapore, Singapore
  • fYear
    2013
  • fDate
    14-17 Oct. 2013
  • Firstpage
    92
  • Lastpage
    101
  • Abstract
    What is the root cause of this failure? This question is often among the first few asked by software debuggers when they try to address issues raised by a bug report. Root cause is the erroneous lines of code that cause a chain of erroneous program states eventually leading to the failure. Bug tracking and source control systems only record the symptoms (e.g., bug reports) and treatments of a bug (e.g., committed changes that fix the bug), but not its root cause. Many treatments contain non-essential changes, which are intermingled with root causes. Reverse engineering the root cause of a bug can help to understand why the bug is introduced and help to detect and prevent other bugs of similar causes. The recovered root causes are also better ground truth for bug detection and localization studies. In this work, we propose a combination of machine learning and code analysis techniques to identify root causes from the changes made to fix bugs. We evaluate the effectiveness of our approach based on a golden set (i.e., ground truth data) of manually recovered root causes of 200 bug reports from three open source projects. Our approach is able to achieve a precision, recall, and F-measure (i.e., the harmonic mean of precision and recall) of 76.42%, 71.88%, and 74.08% respectively. Compared with the work by Kawrykow and Robillard, our approach achieves a 60.83% improvement in F-measure.
  • Keywords
    learning (artificial intelligence); program debugging; program diagnostics; reverse engineering; F-measure; automatic root cause recovery; bug detection; bug localization; bug reports; bug-fixing changes; code analysis techniques; machine learning; open source projects; reverse engineering; Computer bugs; Context; Control systems; Data models; Feature extraction; Support vector machines; Training data;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Reverse Engineering (WCRE), 2013 20th Working Conference on
  • Conference_Location
    Koblenz
  • Type

    conf

  • DOI
    10.1109/WCRE.2013.6671284
  • Filename
    6671284