COPS: An improved information retrieval-based bug localization technique using context-aware program simplification

计算机科学 调试 Python(编程语言) Java 跟踪(心理语言学) 语句(逻辑) 背景(考古学) 程序设计语言 软件错误 情报检索 软件 数据挖掘 人工智能 法学 古生物学 哲学 语言学 政治学 生物
作者
Yilin Yang,Ziyuan Wang,Chunrong Fang,Baowen Xu
出处
期刊:Journal of Systems and Software [Elsevier BV]
卷期号:207: 111868-111868
标识
DOI:10.1016/j.jss.2023.111868
摘要

Information Retrieval Based Bug Localization (IRBL) techniques are well suited for large-scale software debugging with fewer external dependencies and lower execution costs. However, existing IRBL techniques have several challenges, including localization granularity and applicability. First, existing IRBL techniques have not yet achieved statement-level bug localization. Second, almost all studies are limited to Java-based projects, while their effectiveness for other popular programming languages (e.g., Python) is unknown. The reason for these deficiencies is that existing IRBL techniques mainly rely on conventional NLP techniques to analyze the bug reports and have not yet fully utilized the stack traces attached to the bug reports. To improve the IRBL technique, we propose a context-aware program simplification technique – COPS – that can localize defective statements in suspicious files by analyzing the stack traces in bug reports, enabling statement-level bug localization for Python-based projects. Our experiment is based on 948 bug reports, and the results show that COPS can effectively localize buggy statements. First, compared to the original stack traces, Top@10 is improved by 102.6%, MAP@10 by 56.2%, and MRR@10 by 95.6%. We found that actual buggy code entities are more likely to appear in the first five frames of the stack trace. Second, COPS can achieve equally good localization performance compared to state-of-the-art statement-level bug localization techniques and achieve 92% buggy statement coverage with a full-scope search. Finally, experiments found that the stack trace's first two-thirds of information is more conducive to localizing buggy statements.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
高冰冰完成签到 ,获得积分10
2秒前
小二郎应助byho采纳,获得10
3秒前
明明千岁千岁千千岁完成签到 ,获得积分10
6秒前
6秒前
aeolianbells完成签到 ,获得积分10
9秒前
沧海一粟米完成签到 ,获得积分10
12秒前
爱我不上火完成签到 ,获得积分10
12秒前
lll发布了新的文献求助10
14秒前
淮安石河子完成签到 ,获得积分10
15秒前
ChatGPT发布了新的文献求助10
23秒前
沙脑完成签到 ,获得积分10
24秒前
杭州地铁君完成签到,获得积分10
30秒前
风趣朝雪完成签到,获得积分10
36秒前
Ezio_sunhao完成签到,获得积分10
37秒前
pangminmin完成签到,获得积分10
37秒前
SQL完成签到 ,获得积分10
41秒前
41秒前
筱筱完成签到 ,获得积分10
42秒前
kk完成签到,获得积分10
42秒前
lll发布了新的文献求助10
45秒前
byho发布了新的文献求助10
47秒前
小狮子完成签到 ,获得积分10
49秒前
49秒前
马冬梅完成签到 ,获得积分10
51秒前
水煮鱼完成签到,获得积分10
53秒前
吉吉完成签到,获得积分10
53秒前
趙途嘵生完成签到,获得积分10
54秒前
科研通AI2S应助lll采纳,获得10
55秒前
田様应助lll采纳,获得10
55秒前
凡凡完成签到,获得积分10
56秒前
58秒前
GG完成签到 ,获得积分10
59秒前
1分钟前
无限的画板完成签到 ,获得积分10
1分钟前
LL完成签到 ,获得积分10
1分钟前
甜甜圈完成签到 ,获得积分10
1分钟前
lll发布了新的文献求助10
1分钟前
1分钟前
1分钟前
痴情的书包完成签到,获得积分10
1分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Elements of Propulsion: Gas Turbines and Rockets, Second Edition 1000
卤化钙钛矿人工突触的研究 1000
Engineering for calcareous sediments : proceedings of the International Conference on Calcareous Sediments, Perth 15-18 March 1988 / edited by R.J. Jewell, D.C. Andrews 1000
Wolffs Headache and Other Head Pain 9th Edition 1000
Continuing Syntax 1000
Signals, Systems, and Signal Processing 510
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6246697
求助须知:如何正确求助?哪些是违规求助? 8070108
关于积分的说明 16845865
捐赠科研通 5322862
什么是DOI,文献DOI怎么找? 2834283
邀请新用户注册赠送积分活动 1811763
关于科研通互助平台的介绍 1667516