arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1810.00798cs.SE
收藏

Doric:统计故障定位的基础

Doric: Foundations for Statistical Fault Localisation

David Landsberg, Earl Barr

摘要:

要修复一个软件bug,你必须首先找到它。随着软件规模和复杂性的增长,找到bug变得越来越困难。为了解决这个问题,已经开发了一些措施来根据代码行的“可疑性”来对它们进行排序。然后,工程师可以检查代码的可疑性降序排列,直到fault. Despite进步,理想的措施-那些在一次轻量级的,有效的,和直观的-尚未被发现。我们提出了多利安,一个新的正式的基础上统计故障定位的基础上经典概率论。为了证明多立克的多功能性,我们推导出cl,一个轻量级的措施的可能性,一些代码造成的错误。CL返回概率,而基于频谱的统计(SBHS)通常返回难以解释的分数。CL处理基于频谱的措施无法处理的基本故障场景,并且还可以有意义地确定原因。我们证明了它的有效性,据我们所知,最大规模的实验中的故障定位文献。对于Defects 4J基准测试,cl允许开发人员在41.18%的时间内检查6行代码后发现错误。此外,cl在定位故障方面比所有已知的127 sbh更准确。特别是,在Steimann的基准测试中,人们会期望通过研究5.02方法来发现错误,而不是9.02的最佳性能sbh。

英文摘要:

To fix a software bug, you must first find it. As software grows in size and complexity, finding bugs is becoming harder. To solve this problem, measures have been developed to rank lines of code according to their "suspiciousness" wrt being faulty. Engineers can then inspect the code in descending order of suspiciousness until a fault is found. Despite advances, ideal measures --- ones which are at once lightweight, effective, and intuitive --- have not yet been found. We present Doric, a new formal foundation for statistical fault localisation based on classical probability theory. To demonstrate Doric's versatility, we derive cl, a lightweight measure of the likelihood some code caused an error. cl returns probabilities, when spectrum-based heuristics (sbhs) usually return difficult to interpret scores. cl handles fundamental fault scenarios that spectrum-based measures cannot and can also meaningfully identify causes with certainty. We demonstrate its effectiveness in, what is to our knowledge, the largest scale experiment in the fault localisation literature. For Defects4J benchmarks, cl permits a developer to find a fault after inspecting 6 lines of code 41.18% of the time. Furthermore, cl is more accurate at locating faults than all known 127 sbh. In particular, on Steimann's benchmarks one would expect to find a fault by investigating 5.02 methods, as opposed to 9.02 with the best performing sbh.

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

↑