基于搜索的行为模型播种的崩溃再现
Search-based Crash Reproduction using Behavioral Model Seeding
摘要:
基于搜索的崩溃再现方法通过生成测试用例来帮助开发人员在调试期间再现给定堆栈跟踪的崩溃。这种方法的基本步骤之一是创建触发崩溃所需的对象。克服这种限制的一种方法是播种:在搜索过程中使用有关应用程序的信息。通过播种,可以在搜索过程中使用类的现有用法来生成创建所需对象的实际方法调用序列。在这项研究中,我们介绍了行为模型播种:一种新的播种方法,学习类的使用,从测试系统和现有的测试用例。然后,在行为模型(状态机)中合成学习到的用法。然后,该模型用于指导进化过程。为了评估行为模型播种,我们将其与测试播种(用于播种真实对象的最先进技术)和无播种(不播种任何类使用)进行评估。在这次评估中,我们使用了来自六个开源项目的124个难以重现的崩溃的基准。我们的研究结果表明,行为模型播种优于测试播种和不播种至少6%,而没有任何显着的负面影响的效率。
英文摘要:
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. 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。