Race detection for event-driven mobile applications
Authors:
Open Access
- 9 June 2014
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 326-336
Abstract
Mobile systems commonly support an event-based model of concurrent programming. This model, used in popular platforms such as Android, naturally supports mobile devices that have a rich array of sensors and user input modalities. Unfortunately, most existing tools for detecting concurrency errors of parallel programs focus on a thread-based model of concurrency. If one applies such tools directly to an event-based program, they work poorly because they infer false dependencies between unrelated events handled sequentially by the same thread. In this paper we present a race detection tool named CAFA for event-driven mobile systems. CAFA uses the causality model that we have developed for the Android event-driven system. A novel contribution of our model is that it accounts for the causal order due to the event queues, which are not accounted for in past data race detectors. Detecting races based on low-level races between memory accesses leads to a large number of false positives. CAFA overcomes this problem by checking for races between high-level operations. We discuss our experience in using CAFA for finding and understanding a number of known and unknown harmful races in open-source Android applications.Keywords
Funding Information
- National Science Foundation
- Intel Corporation
This publication has 16 references indexed in Scilit:
- Non-race concurrency bug detection through order-sensitive critical sections2013
- P2013
- What is keeping my phone awake?2012
- Bootstrapping energy debugging on smartphones2011
- Universal Causality Graphs: A Precise Happens-Before Model for Detecting Bugs in Concurrent Programs2010
- FastTrack2009
- RacerX2003
- Optimal tracing and replay for debugging shared-memory parallel programs1993
- Weak ordering---a new definition1990
- How to Make a Multiprocessor Computer That Correctly Executes Multiprocess ProgramsIEEE Transactions on Computers, 1979