Charting the API minefield using software telemetry data
Charting the API minefield using software telemetry data
复制标题
DOI:
10.1007/s10664-014-9343-7
复制
发表时间:
2015-12
影响因子:
4.1
通讯作者:
M. Kechagia;Dimitris Mitropoulos;D. Spinellis
中科院分区:
文献类型:
--
作者:
M. Kechagia;Dimitris Mitropoulos;D. Spinellis
Programs draw significant parts of their functionality through the use of Application Programming Interfaces (APIs). Apart from the way developers incorporateAPIs in their software, the stability of these programs depends on the design and implementation of theAPIs. In this work, we report how we used software telemetry data to analyze the causes ofAPIfailures in Android applications. Specifically, we got 4.9gbworth of crash data that thousands of applications sent to a centralized crash report management service. We processed that data to extract approximately a million stack traces, stitching together parts of chained exceptions, and established heuristic rules to draw the border between applications and theAPIcalls. We examined a set of more than a half million stack traces associated with riskyAPIcalls to map the space of the most common application failure reasons. Our findings show that the top ones can be attributed to memory exhaustion, race conditions or deadlocks, and missing or corrupt resources. Given the classes of the crash causes we identified, we recommendAPIdesign and implementation choices, such as specific exceptions, default resources, and non-blocking algorithms, that can eliminate common failures. In addition, we argue that development tools like memory analyzers, thread debuggers, and static analyzers can prevent crashes through early code testing and analysis. Finally, some execution platform and framework designs for process and memory management can also eliminate some application crashes.