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

扩展Delta调试最小化以用于基于光谱的故障定位

Extending Delta Debugging Minimization for Spectrum-Based Fault Localization

University of Ruhuna(卢胡纳大学)

Charaka Geethal Kapugama

AI总结:

DDMIN-LOC结合Delta调试最小化与基于光谱的故障定位,通过计算可疑性分数来定位故障语句,实验表明其在Jaccard算法下效果最佳。

摘要:

本文介绍了一个名为DDMIN-LOC的技术,它结合了Delta调试最小化(DDMIN)与基于光谱的故障定位(SBFL)。它可以应用于接受字符串输入的程序,即使只有一份导致失败的输入可用。DDMIN是一种算法,能够在给定初始失败输入的情况下系统地探索最小的失败输入以暴露bug。然而,它不提供有关导致失败的故障语句的信息。DDMIN-LOC通过收集DDMIN过程中生成的通过和失败输入,并使用SBFL算法计算程序语句和谓词的可疑性分数,从而解决了这一限制。这些分数随后被结合以对语句按照其可能故障的可能性进行排序。DDMIN-LOC只需要一个buggy程序的失败输入,尽管它只能应用于接受字符串输入的程序。DDMIN-LOC在QuixBugs和Codeflaws基准中选择了136个程序进行评估,使用Tarantula、Ochiai、GenProg、Jaccard和DStar等SBFL算法。实验结果表明,DDMIN-LOC在使用Jaccard时表现最佳:在大多数主题中,需要检查的可执行行少于20%即可定位故障语句。此外,在大多数主题中,故障语句在所有生成的不同失败输入的测试套件中均排在前三名。

英文摘要:

This paper introduces DDMIN-LOC, a technique that combines Delta Debugging Minimization (DDMIN) with Spectrum-Based Fault Localization (SBFL). It can be applied to programs taking string inputs, even when only a single failure-inducing input is available. DDMIN is an algorithm that systematically explores the minimal failure-inducing input that exposes a bug, given an initial failing input. However, it does not provide information about the faulty statements responsible for the failure. DDMIN-LOC addresses this limitation by collecting the passing and failing inputs generated during the DDMIN process and computing suspiciousness scores for program statements and predicates using SBFL algorithms. These scores are then combined to rank statements according to their likelihood of being faulty. DDMIN-LOC requires only one failing input of the buggy program, although it can be applied only to programs that take string inputs. DDMIN-LOC was evaluated on 136 programs selected from the QuixBugs and Codeflaws benchmarks using the SBFL algorithms Tarantula, Ochiai, GenProg, Jaccard and DStar. Experimental results show that DDMIN-LOC performs best with Jaccard: in most subjects, fewer than 20% executable lines need to be examined to locate the faulty statements. Moreover, in most subjects, faulty statements are ranked within the top 3 positions in all the generated test suites derived from different failing inputs.

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

↑