Analyzing bug fix for automatic bug cause classification

计算机科学 软件错误 抽象语法树 利用 编码(集合论) 安全漏洞 源代码 树(集合论) 过程(计算) 人工智能 语法 程序设计语言 软件 操作系统 计算机安全 数学分析 安全信息和事件管理 集合(抽象数据类型) 云安全计算 云计算 数学
作者
Zhen Ni,Bin Li,Xiaobing Sun,Tianhao Chen,Ben Zhong Tang,Xinchen Shi
出处
期刊:Journal of Systems and Software [Elsevier]
卷期号:163: 110538-110538 被引量:35
标识
DOI:10.1016/j.jss.2020.110538
摘要

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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
1秒前
djs发布了新的文献求助10
2秒前
陆柒捌完成签到,获得积分10
3秒前
nickx完成签到 ,获得积分10
4秒前
标致的不评应助文件撤销了驳回
4秒前
慈祥的雅寒完成签到,获得积分10
4秒前
baiabi发布了新的文献求助10
5秒前
木木发布了新的文献求助10
5秒前
8秒前
NexusExplorer应助小利采纳,获得10
14秒前
yxy999完成签到,获得积分10
14秒前
JamesPei应助大黄采纳,获得10
15秒前
一一完成签到,获得积分10
15秒前
17秒前
18秒前
19秒前
满心欢喜完成签到 ,获得积分10
19秒前
Day木子完成签到,获得积分10
19秒前
迪鸣完成签到,获得积分10
20秒前
张三发布了新的文献求助10
23秒前
ly发布了新的文献求助10
24秒前
huzi2009发布了新的文献求助10
24秒前
24秒前
小巧富发布了新的文献求助10
26秒前
3MB完成签到 ,获得积分10
26秒前
baiabi完成签到,获得积分10
26秒前
27秒前
雪小岳完成签到,获得积分10
31秒前
细心的幼南完成签到,获得积分20
31秒前
爱撒娇的橘子完成签到,获得积分10
34秒前
马小跳完成签到,获得积分20
35秒前
hou完成签到,获得积分10
35秒前
大模型应助yuefeng采纳,获得10
35秒前
务实荧荧完成签到 ,获得积分10
37秒前
凶狠的妙柏完成签到,获得积分10
38秒前
40秒前
41秒前
hou发布了新的文献求助10
41秒前
泽丶完成签到,获得积分10
42秒前
高分求助中
Continuum thermodynamics and material modelling 3000
Production Logging: Theoretical and Interpretive Elements 2500
Healthcare Finance: Modern Financial Analysis for Accelerating Biomedical Innovation 2000
Applications of Emerging Nanomaterials and Nanotechnology 1111
Covalent Organic Frameworks 1000
Les Mantodea de Guyane Insecta, Polyneoptera 1000
Theory of Block Polymer Self-Assembly 750
热门求助领域 (近24小时)
化学 医学 材料科学 生物 工程类 有机化学 生物化学 纳米技术 内科学 物理 化学工程 计算机科学 复合材料 基因 遗传学 物理化学 催化作用 细胞生物学 免疫学 电极
热门帖子
关注 科研通微信公众号,转发送积分 3479504
求助须知:如何正确求助?哪些是违规求助? 3070099
关于积分的说明 9116702
捐赠科研通 2761842
什么是DOI,文献DOI怎么找? 1515589
邀请新用户注册赠送积分活动 700982
科研通“疑难数据库(出版商)”最低求助积分说明 699985