arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2109.10156cs.SE
收藏

一种软件产品线可变性故障定位方法

A Variability Fault Localization Approach for Software Product Lines

Thu-Trang Nguyen, Kien-Tuan Ngo, Son Nguyen, Hieu Dinh Vo

摘要:

软件故障定位是程序调试中最昂贵、最繁琐、最耗时的活动之一。在软件产品线(SPL)系统中,由于故障的可变性,此活动变得更具挑战性。这些意外的行为是由可变性故障引起的,这些可变性故障只能在系统特征的某些组合下暴露。这些特征之间的相互作用导致了系统的故障。尽管单系统工程中的缺陷定位已经得到了深入的研究,但SPL系统中的可变性故障定位仍然没有得到很大程度的探索。在这篇文章中,我们提出了VarCop,一种新的和有效的可变性故障定位方法。对于因可变性错误而失败的SPL系统,VarCop通过分析采样产品及其源代码的总体测试结果来隔离可疑的代码语句。孤立的可疑语句是与系统中bug可见性所必需的功能之间的交互相关的语句。根据包含语句的产品的总体测试结果以及这些产品中语句执行的测试用例的详细结果,评估每个孤立语句的可疑性。在一个大的数据集的缺陷SPL系统,实证评估表明,VarCop显着提高了两个国家的最先进的故障定位技术的33%和50%,在排名中的不正确的陈述,每个包含一个单一的错误的系统。在大约三分之二的情况下,VarCop将错误陈述排在结果列表的前三位。对于多个错误的情况下,VarCop优于国家的最先进的方法2倍和10倍的错误定位在前1位的比例。在22%和65%的bug版本中,VarCop正确地将系统中至少一个bug排在前1和前5位。

英文摘要:

Software fault localization is one of the most expensive, tedious, and time-consuming activities in program debugging. This activity becomes even much more challenging in Software Product Line (SPL) systems due to variability of failures. These unexpected behaviors are induced by variability faults which can only be exposed under some combinations of system features. The interaction among these features causes the failures of the system. Although localizing bugs in single-system engineering has been studied in-depth, variability fault localization in SPL systems still remains mostly unexplored. In this article, we present VarCop, a novel and effective variability fault localization approach. For an SPL system failed by variability bugs, VarCop isolates suspicious code statements by analyzing the overall test results of the sampled products and their source code. The isolated suspicious statements are the statements related to the interaction among the features which are necessary for the visibility of the bugs in the system. The suspiciousness of each isolated statement is assessed based on both the overall test results of the products containing the statement as well as the detailed results of the test cases executed by the statement in these products. On a large dataset of buggy SPL systems, empirical evaluation shows that VarCop significantly improves two state-of-the-art fault localization techniques by 33% and 50% in ranking the incorrect statements in the systems containing a single bug each. In about two-thirds of the cases, VarCop ranks the buggy statements at the top-3 positions in the resulting lists. For multiple-bug cases, VarCop outperforms the state-of-the-art approaches 2 times and 10 times in the proportion of bugs localized at the top-1 positions. In 22% and 65% of the buggy versions, VarCop correctly ranks at least one bug in a system at the top-1 and top-5 positions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑