Crash reproduction approaches help developers during debugging by generating a test case that reproduces a given crash. Several solutions have been proposed to automate this task. However, the proposed solutions have been evaluated on a limited number of projects, making comparison difficult. In this paper, we enhance this line of research by proposing JCrashPack, an extensible benchmark for Java crash reproduction, together with ExRunner, a tool to simply and systematically run evaluations. JCrashPack contains 200 stack traces from various Java projects, including industrial open source ones, on which we run an extensive evaluation of EvoCrash, the state-of-the-art tool for search-based crash reproduction. EvoCrash successfully reproduced 43% of the crashes. Furthermore, we observed that reproducing NullPointerException, IllegalArgumentException, and IllegalStateException is relatively easier than reproducing ClassCastException, ArrayIndexOutOfBoundsException and StringIndexOutOfBoundsException. Our results include a detailed manual analysis of EvoCrash outputs, from which we derive 14 current challenges for crash reproduction, among which the generation of input data and the handling of abstract and anonymous classes are the most frequents. Finally, based on those challenges, we discuss future research directions for search-based crash reproduction for Java.
|Number of pages||43|
|Journal||Empirical Software Engineering|
|Publication status||Published - 1 Jan 2020|
- Crash reproduction
- Empirical evaluation
- Search-based software testing
FingerprintDive into the research topics of 'A benchmark-based evaluation of search-based crash reproduction'. Together they form a unique fingerprint.
JCrashPack: A Java Crash Reproduction Benchmark
Derakhshanfar, P. (Creator), Devroey, X. (Creator) & Soltani, M. (Contributor), Zenodo, 26 Apr 2020