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

GloBug:使用全局数据进行故障定位

GloBug: Using Global Data in Fault Localization

Nima Miryeganeh, Sepehr Hashtroudi, Hadi Hemmati

摘要:

故障定位(FL)是软件调试中重要的第一步,在目前的实践中大多是手动的。多年来,已经提出了许多方法来自动化FL过程,包括基于信息检索(IR)的技术。这些方法基于所报告的错误报告和源代码的相似性来定位错误。基于IR的FL(IRFL)技术的新变体也会查看错误报告的历史记录,并在本地化过程中利用它们。然而,所有现有的IRFL技术都局限于当前项目的数据(本地数据)。在这项研究中,我们介绍了Globug,这是一个IRFL框架,由使用在全局数据(从开源基准项目中提取)上预训练的模型的方法组成。在Globug中,我们研究了两种算法:a)全局数据对最先进的IR-FL技术(即Bugebug)的影响,以及b)词嵌入技术(Doc 2 Vec)与全局数据一起的应用。我们在51个软件项目上的大规模实验表明,使用全局数据在MRR(平均倒数秩)和MAP(平均平均精度)方面平均提高了Bugstrom 6.6%和4.8%,在大多数情况下超过14%(MRR和MAP分别为64%和54%)。与其他五种最先进的IRFL工具相比,这种改进是显着的。此外,全局训练模型是一次性的离线任务,不会增加Bugstrom运行时故障定位的开销。然而,我们的研究表明,基于词嵌入的全局解决方案并没有进一步改善结果。

英文摘要:

Fault Localization (FL) is an important first step in software debugging and is mostly manual in the current practice. Many methods have been proposed over years to automate the FL process, including information retrieval (IR)-based techniques. These methods localize the fault based on the similarity of the reported bug report and the source code. Newer variations of IR-based FL (IRFL) techniques also look into the history of bug reports and leverage them during the localization. However, all existing IRFL techniques limit themselves to the current project's data (local data). In this study, we introduce Globug, which is an IRFL framework consisting of methods that use models pre-trained on the global data (extracted from open-source benchmark projects). In Globug, we investigate two heuristics: a) the effect of global data on a state-of-the-art IR-FL technique, namely BugLocator, and b) the application of a Word Embedding technique (Doc2Vec) together with global data. Our large scale experiment on 51 software projects shows that using global data improves BugLocator on average 6.6% and 4.8% in terms of MRR (Mean Reciprocal Rank) and MAP (Mean Average Precision), with over 14% in a majority (64% and 54% in terms of MRR and MAP, respectively) of the cases. This amount of improvement is significant compared to the improvement rates that five other state-of-the-art IRFL tools provide over BugLocator. In addition, training the models globally is a one-time offline task with no overhead on BugLocator's run-time fault localization. Our study, however, shows that a Word Embedding-based global solution did not further improve the results.

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

↑