Search-based Crash Reproduction using Behavioral Model Seeding

Pouria Derakhshanfar, Xavier Devroey, Gilles Perrouin, Andy Zaidman, Arie van Deursen
12/10/2019
cs.SE

Official code: STAMP-project/botsing (35 stars, Java, Apache-2.0, last commit 2023-01-19).

Abstract

Search-based crash reproduction approaches assist developers during debugging by generating a test case which reproduces a crash given its stack trace. One of the fundamental steps of this approach is creating objects needed to trigger the crash.

Show full abstract

One way to overcome this limitation is seeding: using information about the application during the search process. With seeding, the existing usages of classes can be used in the search process to produce realistic sequences of method calls which create the required objects. In this study, we introduce behavioral model seeding: a new seeding method which learns class usages from both the system under test and existing test cases. Learned usages are then synthesized in a behavioral model (state machine). Then, this model serves to guide the evolutionary process. To assess behavioral model-seeding, we evaluate it against test-seeding (the state-of-the-art technique for seeding realistic objects) and no-seeding (without seeding any class usage). For this evaluation, we use a benchmark of 124 hard-to-reproduce crashes stemming from six open-source projects. Our results indicate that behavioral model-seeding outperforms both test seeding and no-seeding by a minimum of 6% without any notable negative impact on efficiency.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Botsing is a Java framework for crash reproduction. It depends on EvoSuite (http://www.evosuite.org) for code instrumentation.

3514Java, ANTLRSep 6, 20183 years agoApache-2.0
crash-reproductionh2020javajava-frameworkstamp

Similar Papers

Cite this paper

@article{derakhshanfar2019searchbased,
  title  = {Search-based Crash Reproduction using Behavioral Model Seeding},
  author = {Pouria Derakhshanfar and Xavier Devroey and Gilles Perrouin and Andy Zaidman and Arie van Deursen},
  year   = {2019},
  eprint = {1912.04606},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.04606}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1912.04606.svg)](https://codeofpaper.com/paper/1912.04606)

Discussion