arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1808.03178cs.SE
收藏

在Android应用程序中有效地显示异步编程错误

Efficiently Manifesting Asynchronous Programming Errors in Android Apps

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

摘要:

Android是排名第一的移动应用程序框架,它强制执行单GUI线程模型,其中单个UI线程管理GUI渲染和事件调度。由于这种模型,避免阻塞UI线程以获得响应是至关重要的。一种常见的做法是将长时间运行的任务卸载到Java线程中。为了实现这一点,Android提供了各种Android编程结构,并让开发人员自己遵守模型隐含的规则。然而,正如我们的研究所揭示的那样,超过25%的应用程序违反了这些规则,并引入了难以检测的故障停止错误,我们称之为aysnc编程错误(APE)。为此,本文介绍了APESTABILITY,一种自动和有效地表现APE的技术。其核心思想是将APE表征为特定的故障模式,并协同结合静态分析和动态UI探索来检测和验证此类错误。在40个真实世界的Android应用程序中,APEEE揭示并处理了61个APE,其中51个已确认(命中率为83.6%)。具体来说,APESTIM检测到的APE比最先进的测试工具(Monkey,Sapienz和Stoat)多3倍,并将测试时间从半小时缩短到几分钟。在一种特定类型的APE上,APEtron确认的错误是数据竞争检测工具EventRacer的5倍,并且几乎没有错误警报。

英文摘要:

Android, the #1 mobile app framework, enforces the single-GUI-thread model, in which a single UI thread manages GUI rendering and event dispatching. Due to this model, it is vital to avoid blocking the UI thread for responsiveness. One common practice is to offload long-running tasks into async threads. To achieve this, Android provides various async programming constructs, and leaves developers themselves to obey the rules implied by the model. However, as our study reveals, more than 25% apps violate these rules and introduce hard-to-detect, fail-stop errors, which we term as aysnc programming errors (APEs). To this end, this paper introduces APEChecker, a technique to automatically and efficiently manifest APEs. The key idea is to characterize APEs as specific fault patterns, and synergistically combine static analysis and dynamic UI exploration to detect and verify such errors. Among the 40 real-world Android apps, APEChecker unveils and processes 61 APEs, of which 51 are confirmed (83.6% hit rate). Specifically, APEChecker detects 3X more APEs than the state-of-art testing tools (Monkey, Sapienz and Stoat), and reduces testing time from half an hour to a few minutes. On a specific type of APEs, APEChecker confirms 5X more errors than the data race detection tool, EventRacer, with very few false alarms.

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

↑