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

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
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
linakg发布了新的文献求助10
7秒前
Woodenman完成签到 ,获得积分0
7秒前
linakg完成签到,获得积分10
18秒前
失眠的香蕉完成签到 ,获得积分10
21秒前
清风完成签到 ,获得积分10
25秒前
领导范儿应助hongtao采纳,获得10
26秒前
淡然的芷荷完成签到 ,获得积分10
53秒前
xingxingwang完成签到,获得积分10
1分钟前
1分钟前
合适的寄灵完成签到 ,获得积分10
1分钟前
xixihaha完成签到,获得积分10
1分钟前
南宫清涟发布了新的文献求助10
1分钟前
w婷完成签到 ,获得积分10
1分钟前
一颗红葡萄完成签到 ,获得积分10
1分钟前
南宫清涟完成签到,获得积分10
1分钟前
swordshine完成签到,获得积分10
1分钟前
1分钟前
ceeray23发布了新的文献求助20
1分钟前
lani完成签到 ,获得积分10
1分钟前
失眠的笑翠完成签到 ,获得积分10
1分钟前
诺贝尔候选人完成签到 ,获得积分10
2分钟前
keyan完成签到 ,获得积分10
2分钟前
胡可完成签到 ,获得积分10
2分钟前
小young完成签到 ,获得积分10
2分钟前
宫冷雁完成签到 ,获得积分10
2分钟前
缥缈的闭月完成签到,获得积分10
2分钟前
2分钟前
波波完成签到 ,获得积分10
2分钟前
欧阳秦穆完成签到,获得积分10
2分钟前
达进发布了新的文献求助10
2分钟前
天将明完成签到 ,获得积分10
2分钟前
772829完成签到 ,获得积分10
3分钟前
沧海一粟米完成签到 ,获得积分10
3分钟前
达进完成签到,获得积分10
3分钟前
ceeray23发布了新的文献求助20
3分钟前
陈M雯完成签到 ,获得积分10
3分钟前
五本笔记完成签到 ,获得积分10
3分钟前
hzauhzau完成签到 ,获得积分10
3分钟前
Yolo完成签到 ,获得积分10
3分钟前
高分求助中
The Mother of All Tableaux: Order, Equivalence, and Geometry in the Large-scale Structure of Optimality Theory 3000
A new approach to the extrapolation of accelerated life test data 1000
ACSM’s Guidelines for Exercise Testing and Prescription, 12th edition 500
Indomethacinのヒトにおける経皮吸収 400
Phylogenetic study of the order Polydesmida (Myriapoda: Diplopoda) 370
基于可调谐半导体激光吸收光谱技术泄漏气体检测系统的研究 350
Robot-supported joining of reinforcement textiles with one-sided sewing heads 320
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3990809
求助须知:如何正确求助?哪些是违规求助? 3532233
关于积分的说明 11256603
捐赠科研通 3271081
什么是DOI,文献DOI怎么找? 1805229
邀请新用户注册赠送积分活动 882302
科研通“疑难数据库(出版商)”最低求助积分说明 809236