SURE:一种使用程序内存谱的可视化故障索引方法
SURE: A Visualized Failure Indexing Approach using Program Memory Spectrum
AI总结:
针对故障索引效果差、结果难理解的问题,本文提出 SURE,利用程序内存谱图像和孪生卷积神经网络判断故障同源性,显著提升故障数量估计与聚类效果。
摘要:
故障索引是软件测试和调试中长期存在的关键难题,其目标是根据罪魁祸首根因自动将故障(例如失败的测试用例)划分为不同的组,从而使有缺陷程序中的多个故障能够被独立且同时处理。该领域长期受到两个挑战的困扰:1)划分的有效性仍远不能令人满意。现有技术仅使用有限来源的运行时数据(例如代码覆盖率)作为故障邻近性,这通常会产生不理想的结果。2)结果几乎难以理解。收到故障索引结果的开发者并不知道为什么所有故障应当按照这种方式划分。这导致开发者难以信服该结果,进而影响结果的采用。为应对这些挑战,本文提出 SURE,一种使用程序内存谱的可视化故障索引方法。我们首先在失败测试用例执行期间于预设断点处收集运行时内存信息,并将其转换为对人类友好的图像(称为程序内存谱,PMS)。随后,将任意一对作为两个故障代理的 PMS 图像输入经过训练的孪生卷积神经网络,以预测它们由同一故障触发的可能性。结果证明了 SURE 的有效性:在模拟环境和真实环境中,与该领域最先进技术相比,其在故障数量估计方面分别实现 101.20% 和 41.38% 的提升,在聚类方面分别实现 105.20% 和 35.53% 的提升。此外,我们开展了一项人工研究以定量评估 PMS 的可理解性,结果表明这种新型表示能够帮助开发者更好地理解故障索引结果。
英文摘要:
Failure indexing is a longstanding crux in software testing and debugging, the goal of which is to automatically divide failures (e.g., failed test cases) into distinct groups according to the culprit root causes, as such multiple faults in a faulty program can be handled independently and simultaneously. This community has long been plagued by two challenges: 1) The effectiveness of division is still far from promising. Existing techniques only employ a limited source of run-time data (e.g., code coverage) to be failure proximity, which typically delivers unsatisfactory results. 2) The outcome can be hardly comprehensible. A developer who receives the failure indexing result does not know why all failures should be divided the way they are. This leads to difficulties for developers to be convinced by the result, which in turn affects the adoption of the results. To tackle these challenges, in this paper, we propose SURE, a viSUalized failuRe indExing approach using the program memory spectrum. We first collect the run-time memory information at preset breakpoints during the execution of failed test cases, and transform it into human-friendly images (called program memory spectrum, PMS). Then, any pair of PMS images that serve as proxies for two failures is fed to a trained Siamese convolutional neural network, to predict the likelihood of them being triggered by the same fault. Results demonstrate the effectiveness of SURE: It achieves 101.20% and 41.38% improvements in faults number estimation, as well as 105.20% and 35.53% improvements in clustering, compared with the state-of-the-art technique in this field, in simulated and real-world environments, respectively. Moreover, we carry out a human study to quantitatively evaluate the comprehensibility of PMS, revealing that this novel type of representation can help developers better comprehend failure indexing results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。