清晨好,您是今天最早来到科研通的研友!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您科研之路漫漫前行!

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.

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
科研通AI2S应助科研通管家采纳,获得10
6秒前
shhoing应助科研通管家采纳,获得10
6秒前
科研通AI2S应助科研通管家采纳,获得30
6秒前
岚月发布了新的文献求助30
9秒前
岚月完成签到,获得积分10
23秒前
糊涂的青烟完成签到 ,获得积分10
1分钟前
激动的似狮完成签到,获得积分10
1分钟前
shhoing应助科研通管家采纳,获得10
2分钟前
科研通AI2S应助科研通管家采纳,获得10
2分钟前
科研通AI2S应助科研通管家采纳,获得10
2分钟前
感动初蓝完成签到 ,获得积分10
2分钟前
tt完成签到,获得积分10
3分钟前
大鸟依人发布了新的文献求助10
3分钟前
科研通AI2S应助科研通管家采纳,获得10
4分钟前
shhoing应助科研通管家采纳,获得10
4分钟前
科研通AI2S应助科研通管家采纳,获得10
4分钟前
orixero应助大鸟依人采纳,获得10
5分钟前
cao_bq完成签到,获得积分10
5分钟前
积雪完成签到 ,获得积分10
5分钟前
yang完成签到 ,获得积分10
5分钟前
cao_bq发布了新的文献求助10
5分钟前
5分钟前
一道光发布了新的文献求助30
5分钟前
JamesPei应助一道光采纳,获得10
6分钟前
shhoing应助科研通管家采纳,获得10
6分钟前
CipherSage应助科研通管家采纳,获得10
6分钟前
丘比特应助科研通管家采纳,获得10
6分钟前
领导范儿应助科研通管家采纳,获得10
6分钟前
灵巧的代芙完成签到 ,获得积分10
7分钟前
科研通AI6应助LinWu采纳,获得10
7分钟前
科研通AI2S应助科研通管家采纳,获得10
8分钟前
9分钟前
9分钟前
gexzygg应助科研通管家采纳,获得10
10分钟前
shhoing应助科研通管家采纳,获得10
10分钟前
科研通AI2S应助科研通管家采纳,获得10
10分钟前
10分钟前
充电宝应助乐正文涛采纳,获得10
10分钟前
wrl2023完成签到,获得积分10
11分钟前
赘婿应助hourt2395采纳,获得10
11分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
List of 1,091 Public Pension Profiles by Region 1621
Lloyd's Register of Shipping's Approach to the Control of Incidents of Brittle Fracture in Ship Structures 800
King Tyrant 600
A Guide to Genetic Counseling, 3rd Edition 500
Laryngeal Mask Anesthesia: Principles and Practice. 2nd ed 500
The Composition and Relative Chronology of Dynasties 16 and 17 in Egypt 500
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5561563
求助须知:如何正确求助?哪些是违规求助? 4646648
关于积分的说明 14678717
捐赠科研通 4587987
什么是DOI,文献DOI怎么找? 2517261
邀请新用户注册赠送积分活动 1490543
关于科研通互助平台的介绍 1461566