arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.10753cs.SEcs.IR
收藏

基于崩溃报告挖掘的缺陷定位影响:开发者视角

The Impact Of Bug Localization Based on Crash Report Mining: A Developers' Perspective

Marcos Medeiros, Uirá Kulesza, Roberta Coelho, Rodrigo Bonifácio, Christoph Treude, Eiji Adachi

AI总结:

本文通过18个月、三个团队的实践,评估基于崩溃报告分组的缺陷定位方法,发现开发者选择候选缺陷时考虑多种因素,该方法精确度约80%,并收集了开发者对可疑文件实用性的反馈。

摘要:

开发者经常使用崩溃报告来理解缺陷的根本原因。然而,从这类信息中定位有缺陷的源代码片段是一项具有挑战性的任务,尤其是在日志数据库包含大量崩溃报告的情况下。为缓解此问题,近期研究提出并评估了分组崩溃报告数据及利用堆栈跟踪信息定位缺陷的方法。此类方法的有效性主要通过将候选缺陷代码片段与缺陷修复提交中的实际变更代码进行比较来评估——这发生在回溯性仓库挖掘研究的背景下。因此,现有文献仍缺乏对软件公司日常使用此类方法的讨论,而这可以解释开发者对这些方法使用的看法。在本文中,我们报告了在一家软件公司的三个开发团队中,每周使用一种分组崩溃报告并查找缺陷代码的方法长达18个月的经验。我们对超过750,000份崩溃报告进行了分组,开启了超过130个问题,并收集了18名开发者和团队负责人的反馈。在其他结果中,我们观察到与崩溃报告组相关的系统日志数量并非开发者选择待分析候选缺陷的唯一标准。相反,其他因素也被考虑,例如交付客户优先功能的需求以及解决复杂崩溃报告(如架构债务)的难度,仅举几例。本研究所调查的方法在大多数情况下正确建议了有缺陷的文件——该方法的精确度约为80%。在本研究中,开发者还分享了他们对从崩溃报告中提取的可疑文件和方法用于修复相关缺陷的有用性的看法。

英文摘要:

Developers often use crash reports to understand the root cause of bugs. However, locating the buggy source code snippet from such information is a challenging task, mainly when the log database contains many crash reports. To mitigate this issue, recent research has proposed and evaluated approaches for grouping crash report data and using stack trace information to locate bugs. The effectiveness of such approaches has been evaluated by mainly comparing the candidate buggy code snippets with the actual changed code in bug-fix commits -- which happens in the context of retrospective repository mining studies. Therefore, the existing literature still lacks discussing the use of such approaches in the daily life of a software company, which could explain the developers' perceptions on the use of these approaches. In this paper, we report our experience of using an approach for grouping crash reports and finding buggy code on a weekly basis for 18 months, within three development teams in a software company. We grouped over 750,000 crash reports, opened over 130 issues, and collected feedback from 18 developers and team leaders. Among other results, we observe that the amount of system logs related to a crash report group is not the only criteria developers use to choose a candidate bug to be analyzed. Instead, other factors were considered, such as the need to deliver customer-prioritized features and the difficulty of solving complex crash reports (e.g., architectural debts), to cite some. The approach investigated in this study correctly suggested the buggy file most of the time -- the approach's precision was around 80%. In this study, the developers also shared their perspectives on the usefulness of the suspicious files and methods extracted from crash reports to fix related bugs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑