...
首页> 外文期刊>The Journal of Systems and Software >Analyzing bug fix for automatic bug cause classification
【24h】

Analyzing bug fix for automatic bug cause classification

机译:分析错误修复程序以进行自动错误原因分类

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

During the bug fixing process, developers usually need to analyze the source code to induce the bug cause, which is useful for bug understanding and localization. The bug fixes of historical bugs usually reflects the bug causes when fixing them. This paper aims at exploiting the corresponding relationship between bug causes and bug fixes to automatically classify bugs into their cause categories. First, we define the code-related bug classification criterion from the perspective of the cause of bugs. Then, we propose a new model to exploit the knowledge in the bug fix by constructing fix trees from the diff source code at Abstract Syntax Tree (AST) level, and representing each fix tree based on the encoding method of Tree-based Convolutional Neural Network (TBCNN). Finally, the corresponding relationship between bug causes and bug fixes is analyzed by automatically classifying bugs into their cause categories. We collected 2000 real-world bugs from two open source projects Mozilla and Radare2 to evaluate our approach. The experimental results show the existence of observational correlation between the bug fix and the cause of the historical bugs, and the proposed fix tree can effectively express the characteristics of the historical bugs for bug cause classification.
机译:在错误修复过程中,开发人员通常需要分析源代码以引起错误原因,这对于错误理解和本地化很有用。历史错误的错误修复通常反映了修复错误的原因。本文旨在利用错误原因与错误修复之间的对应关系,将错误自动分类为其原因类别。首先,我们从错误的原因角度定义与代码相关的错误分类标准。然后,我们提出了一个新模型,通过从diff源代码构建抽象语法树(AST)级别的diff源代码并基于基于树的卷积神经网络的编码方法表示每个修复树,来利用错误修复中的知识。 (TBCNN)。最后,通过将错误自动分类到其原因类别中,分析了错误原因和错误修复之间的对应关系。我们从两个开源项目Mozilla和Radare2收集了2000个实际错误,以评估我们的方法。实验结果表明,漏洞修复与历史漏洞的成因之间存在观察相关性,提出的修复树可以有效地表达历史漏洞的特征,以进行漏洞原因分类。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号