Abstract
Android apps are prone to crash. This often arises from the misuse of Android framework APIs, making it harder to debug since official Android documentation does not discuss thoroughly potential exceptions.Recently, the program repair community has also started to investigate the possibility to fix crashes automatically. Current results, however, apply to limited example cases. In both scenarios of repair, the main issue is the need for more example data to drive the fix processes due to the high cost in time and effort needed to collect and identify fix examples. We propose in this work a scalable approach, CraftDroid, to mine crash fixes by leveraging a set of 28 thousand carefully reconstructed app lineages from app markets, without the need for the app source code or issue reports. We developed a replicative testing approach that locates fixes among app versions which output different runtime logs with the exact same test inputs. Overall, we have mined 104 relevant crash fixes, further abstracted 17 fine-grained fix templates that are demonstrated to be effective for patching crashed apks. Finally, we release ReCBench, a benchmark consisting of 200 crashed apks and the crash replication scripts, which the community can explore for evaluating generated crash-inducing bug patches.
| Original language | English |
|---|---|
| Title of host publication | Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis |
| Editors | Dongmei Zhang, Anders Moller |
| Place of Publication | New York NY USA |
| Publisher | Association for Computing Machinery (ACM) |
| Pages | 78-89 |
| Number of pages | 11 |
| ISBN (Electronic) | 9781450362245 |
| DOIs | |
| Publication status | Published - 2019 |
| Event | International Symposium on Software Testing and Analysis 2019 - Beijing, China Duration: 15 Jul 2019 → 19 Jul 2019 Conference number: 28th https://conf.researchr.org/home/issta-2019 |
Conference
| Conference | International Symposium on Software Testing and Analysis 2019 |
|---|---|
| Abbreviated title | ISSTA 2019 |
| Country/Territory | China |
| City | Beijing |
| Period | 15/07/19 → 19/07/19 |
| Internet address |
Keywords
- Android
- Crash
- Debugging
- Mining software repository
- Testing
Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver