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

大规模分析Android应用中的框架特定语法

Large-Scale Analysis of Framework-Specific Exceptions in Android Apps

Lingling Fan, Ting Su, Sen Chen, Guozhu Meng, Yang Liu, Lihua Xu, Geguang Pu, Zhendong Su

摘要:

移动应用程序已经变得无处不在。对于应用程序开发人员来说,确保应用程序的正确性和可靠性是一个关键的优先事项。然而,许多应用程序仍然遭受偶尔或频繁的崩溃,削弱了它们的竞争优势。对真实世界应用崩溃的特征进行大规模深入分析可以提供有用的见解来指导开发人员,或帮助改进测试和分析工具。然而,这样的研究并不存在-本文填补了这一空白。经过四个月的努力,我们从2,486个开源Android应用程序中收集了16,245个独特的异常跟踪,并观察到特定于框架的异常占这些崩溃的大多数。然后,我们广泛地调查了8,243个特定于框架的异常(花费了六个人月的时间):(1)识别它们的特征(例如,表现形式位置、常见故障类别),(2)通过最先进的缺陷检测技术评估它们的表现形式,以及(3)检查它们的修复。除了这些发现提供的见解外,这些发现还激励并促进了对移动应用程序的后续研究,例如错误检测,故障定位和补丁生成。此外,为了证明我们的研究结果的实用性,我们优化了Stoat,一个动态测试工具,并实现了Experiment,一个异常本地化工具,用于Android应用程序。Stoat能够快速发现Gmail和Google+中三个以前未知的、已确认/已修复的崩溃; Experiment能够精确定位真实应用程序中已识别异常的根本原因。我们的大量数据集是公开的,与社区分享并使社区受益。

英文摘要:

Mobile apps have become ubiquitous. For app developers, it is a key priority to ensure their apps' correctness and reliability. However, many apps still suffer from occasional to frequent crashes, weakening their competitive edge. Large-scale, deep analyses of the characteristics of real-world app crashes can provide useful insights to guide developers, or help improve testing and analysis tools. However, such studies do not exist -- this paper fills this gap. Over a four-month long effort, we have collected 16,245 unique exception traces from 2,486 open-source Android apps, and observed that framework-specific exceptions account for the majority of these crashes. We then extensively investigated the 8,243 framework-specific exceptions (which took six person-months): (1) identifying their characteristics (e.g., manifestation locations, common fault categories), (2) evaluating their manifestation via state-of-the-art bug detection techniques, and (3) reviewing their fixes. Besides the insights they provide, these findings motivate and enable follow-up research on mobile apps, such as bug detection, fault localization and patch generation. In addition, to demonstrate the utility of our findings, we have optimized Stoat, a dynamic testing tool, and implemented ExLocator, an exception localization tool, for Android apps. Stoat is able to quickly uncover three previously-unknown, confirmed/fixed crashes in Gmail and Google+; ExLocator is capable of precisely locating the root causes of identified exceptions in real-world apps. Our substantial dataset is made publicly available to share with and benefit the community.

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

↑