arrow
返回

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

delete2024-01-01
delete0
PRE
AI
Y
Yilin Yang
Z
Ziyuan Wang *
陈
陈振宇 (Zhenyu Chen)
B
Baowen Xu
DOI:10.1016/j.jss.2023.111868delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
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.
Keyword:
Bug localization
Information retrieval
Stack trace
Static analysis

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
8.4K

机构

N
nanjing university
学者数:
7.8W
论文数: 5.6W
被引数: 87
引用论文

引用论文

Exposure of Pancreatic β-Cells to Excess Glucose Results in Bimodal Activation of mTORC1 and mTOR-Dependent Metabolic Acceleration
err2020-02-01
err0
errOAAI
errCourtney Zasha Rumala; Juan Liu; Jason Wei Locasale; Barbara Ellen Corkey; Jude Thaddeus Deeney; Lucia Egydio Rameh
err分享
err收藏
err分享
err收藏
A Survey on Software Fault Localization软件故障定位研究综述
err2016-08-01
err741
errOAAI
errWong, W. Eric; Gao, Ruizhi; Li, Yihao; Abreu, Rui; Wotawa, Franz
err分享
err收藏
err分享
err收藏
PLACENTA PERCRETA WITH PENETRATION OF THE BLADDER
err2005-08-23
err0
PREAI
errH. Grabert; A. Mossa; S. F. Oliveira; I. Hutzler; S. Fainzielber; G. Rodrigues De Lima
err分享
err收藏
err分享
err收藏
学者 查看更多内容