arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.07128cs.SE
收藏

CrashTranslator:直接从堆栈跟踪自动复现移动应用崩溃

CrashTranslator: Automatically Reproducing Mobile Application Crashes Directly from Stack Trace

Yuchao Huang, Junjie Wang, Zhe Liu, Yawen Wang, Song Wang, Chunyang Chen, Yuanzhe Hu, Qing Wang

AI总结:

本文提出CrashTranslator,利用预训练大语言模型预测探索步骤并结合强化学习指导搜索,直接从堆栈跟踪自动复现移动应用崩溃,在75份报告上成功复现61.3%,显著优于现有方法。

摘要:

崩溃报告对于软件维护至关重要,因为它们使开发者能够了解移动应用中遇到的问题。在修复之前,开发者需要复现崩溃,这是一项极其耗时且繁琐的任务。现有研究利用自然语言描述的复现步骤进行自动崩溃复现。然而,我们发现相当一部分崩溃报告仅包含崩溃发生时的堆栈跟踪。这类仅含堆栈跟踪的崩溃仅揭示了崩溃发生时最后的GUI页面,缺乏逐步指导。开发者往往需要花费更多精力来理解问题并复现崩溃,而现有技术无法处理这种情况,因此更需要自动支持。本文提出了一种名为CrashTranslator的方法,直接从堆栈跟踪自动复现移动应用崩溃。它通过利用预训练的大型语言模型来预测触发崩溃的探索步骤,并设计了一种基于强化学习的技术来缓解不准确的预测并整体指导搜索。我们在涉及58个流行Android应用的75份崩溃报告上评估了CrashTranslator,它成功复现了61.3%的崩溃,比最先进的基线高出109%至206%。此外,平均复现时间为68.7秒,比基线快302%至1611%。我们还评估了CrashTranslator的实用性,结果令人满意。

英文摘要:

Crash reports are vital for software maintenance since they allow the developers to be informed of the problems encountered in the mobile application. Before fixing, developers need to reproduce the crash, which is an extremely time-consuming and tedious task. Existing studies conducted the automatic crash reproduction with the natural language described reproducing steps. Yet we find a non-neglectable portion of crash reports only contain the stack trace when the crash occurs. Such stack-trace-only crashes merely reveal the last GUI page when the crash occurs, and lack step-by-step guidance. Developers tend to spend more effort in understanding the problem and reproducing the crash, and existing techniques cannot work on this, thus calling for a greater need for automatic support. This paper proposes an approach named CrashTranslator to automatically reproduce mobile application crashes directly from the stack trace. It accomplishes this by leveraging a pre-trained Large Language Model to predict the exploration steps for triggering the crash, and designing a reinforcement learning based technique to mitigate the inaccurate prediction and guide the search holistically. We evaluate CrashTranslator on 75 crash reports involving 58 popular Android apps, and it successfully reproduces 61.3% of the crashes, outperforming the state-of-the-art baselines by 109% to 206%. Besides, the average reproducing time is 68.7 seconds, outperforming the baselines by 302% to 1611%. We also evaluate the usefulness of CrashTranslator with promising results.

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

↑