跳到主要导航 跳到搜索 跳到主要内容

MCFL: Improving Fault Localization by Differentiating Missing Code and Other Faults

  • Zijie Li
  • , Long Zhang
  • , Zhenyu Zhang
  • , Bo Jiang

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Software testing is a popular practice to evaluate the software quality, and debugging is one of the most time-consuming tasks. In the last decades, spectrum-based fault localization (SBFL) techniques have been extensively studied and empirically shown effective in locating faults in a program. However, recent researches demonstrated that the accuracy of an SBFL technique may decrease when it is applied to a program containing code-omission faults. In this paper, we present a novel approach - MCFL. It models the behavior of code omission, embeds code-omission probes into programs to identify potential locations of missing code, captures spectra of program execution, and evaluates the suspiciousness of program entities being related to faults. Different from existing SBFL techniques, MCFL synthesizes a ranked list consisting of both suspicious statements and suspicious code-omission sites, which reflect the probability of a normal statement being faulty and the probability of missing code at specific positions in the program, respectively. We conducted a controlled experiment to compare the fault-localization accuracy of MCFL with those of four popular SBFL techniques. Six real-world projects from the dataset Defects4J are used as the experiment subjects. The experiment result showed that (i) MCFL outperforms the experimented SBFL techniques on most subjects, and on average has a 17.47% improvement; (ii) For more than 60% of the faults, MCFL successfully tells whether they are due to code omission.

源语言英语
主期刊名Proceedings - 2020 IEEE 44th Annual Computers, Software, and Applications Conference, COMPSAC 2020
编辑W. K. Chan, Bill Claycomb, Hiroki Takakura, Ji-Jiang Yang, Yuuichi Teranishi, Dave Towey, Sergio Segura, Hossain Shahriar, Sorel Reisman, Sheikh Iqbal Ahamed
出版商Institute of Electrical and Electronics Engineers Inc.
943-952
页数10
ISBN(电子版)9781728173030
DOI
出版状态已出版 - 7月 2020
活动44th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2020 - Virtual, Madrid, 西班牙
期限: 13 7月 202017 7月 2020

出版系列

姓名Proceedings - 2020 IEEE 44th Annual Computers, Software, and Applications Conference, COMPSAC 2020

会议

会议44th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2020
国家/地区西班牙
Virtual, Madrid
时期13/07/2017/07/20

指纹

探究 'MCFL: Improving Fault Localization by Differentiating Missing Code and Other Faults' 的科研主题。它们共同构成独一无二的指纹。

引用此