Beacon:使用遗传算法自动生成堆栈跟踪再现的测试

Alexandre Bergel, Ignacio Slater Muñoz
{"title":"Beacon:使用遗传算法自动生成堆栈跟踪再现的测试","authors":"Alexandre Bergel, Ignacio Slater Muñoz","doi":"10.1109/SBST52555.2021.00007","DOIUrl":null,"url":null,"abstract":"Software crashes are a problem all developers face eventually. Manually reproducing crashes can be very expensive and require a lot of effort. Recent studies have proposed techniques to automatically generate tests to detect and reproduce errors. But even if this topic has been widely studied, there has been little to no progress done for dynamically typed languages. This becomes important because current approaches take advantage of the type information inherent to statically typed languages to generate the sequence of instructions needed to reproduce a crash, thus making it unclear to judge if type information is necessary to reproduce errors. The lack of explicit type declarations in dynamic languages difficults the task of generating the instructions to replicate an error because the type checking can only be done during runtime, making algorithms less knowledgeable about the program and, therefore, making it more difficult to use search-based approaches because the algorithms have less information to work with. This paper presents a Genetic Algorithm approach to produce crash reproductions on Python based only on the information contained in the error's stack-trace. An empirical study analysing three different experiments were evaluated giving mostly positive results, achieving a high precision while reproducing the desired crashes (over 70%). The study shows that the presented approach is independent of the kind of typing of the language, and provides a solid base to further develop the topic.","PeriodicalId":199085,"journal":{"name":"2021 IEEE/ACM 14th International Workshop on Search-Based Software Testing (SBST)","volume":"545 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Beacon: Automated Test Generation for Stack-Trace Reproduction using Genetic Algorithms\",\"authors\":\"Alexandre Bergel, Ignacio Slater Muñoz\",\"doi\":\"10.1109/SBST52555.2021.00007\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Software crashes are a problem all developers face eventually. Manually reproducing crashes can be very expensive and require a lot of effort. Recent studies have proposed techniques to automatically generate tests to detect and reproduce errors. But even if this topic has been widely studied, there has been little to no progress done for dynamically typed languages. This becomes important because current approaches take advantage of the type information inherent to statically typed languages to generate the sequence of instructions needed to reproduce a crash, thus making it unclear to judge if type information is necessary to reproduce errors. The lack of explicit type declarations in dynamic languages difficults the task of generating the instructions to replicate an error because the type checking can only be done during runtime, making algorithms less knowledgeable about the program and, therefore, making it more difficult to use search-based approaches because the algorithms have less information to work with. This paper presents a Genetic Algorithm approach to produce crash reproductions on Python based only on the information contained in the error's stack-trace. An empirical study analysing three different experiments were evaluated giving mostly positive results, achieving a high precision while reproducing the desired crashes (over 70%). The study shows that the presented approach is independent of the kind of typing of the language, and provides a solid base to further develop the topic.\",\"PeriodicalId\":199085,\"journal\":{\"name\":\"2021 IEEE/ACM 14th International Workshop on Search-Based Software Testing (SBST)\",\"volume\":\"545 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-05-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2021 IEEE/ACM 14th International Workshop on Search-Based Software Testing (SBST)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/SBST52555.2021.00007\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE/ACM 14th International Workshop on Search-Based Software Testing (SBST)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SBST52555.2021.00007","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

软件崩溃是所有开发人员最终都会面临的问题。手动重现崩溃可能非常昂贵,并且需要大量的工作。最近的研究提出了自动生成测试以检测和再现错误的技术。但是,即使这个主题已经得到了广泛的研究,动态类型语言也几乎没有任何进展。这一点很重要,因为当前的方法利用静态类型语言固有的类型信息来生成再现崩溃所需的指令序列,因此无法判断是否需要类型信息来再现错误。动态语言中缺乏显式的类型声明,这使得生成指令来复制错误的任务变得困难,因为类型检查只能在运行时进行,这使得算法对程序的了解更少,因此,使用基于搜索的方法变得更加困难,因为算法可以处理的信息更少。本文提出了一种遗传算法方法,仅基于错误堆栈跟踪中包含的信息在Python上生成崩溃再现。一项实证研究分析了三个不同的实验进行了评估,给出了大多数积极的结果,实现了高精度,同时再现了期望的碰撞(超过70%)。研究表明,本文提出的方法不受语言类型的影响,为本课题的进一步发展奠定了坚实的基础。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Beacon: Automated Test Generation for Stack-Trace Reproduction using Genetic Algorithms
Software crashes are a problem all developers face eventually. Manually reproducing crashes can be very expensive and require a lot of effort. Recent studies have proposed techniques to automatically generate tests to detect and reproduce errors. But even if this topic has been widely studied, there has been little to no progress done for dynamically typed languages. This becomes important because current approaches take advantage of the type information inherent to statically typed languages to generate the sequence of instructions needed to reproduce a crash, thus making it unclear to judge if type information is necessary to reproduce errors. The lack of explicit type declarations in dynamic languages difficults the task of generating the instructions to replicate an error because the type checking can only be done during runtime, making algorithms less knowledgeable about the program and, therefore, making it more difficult to use search-based approaches because the algorithms have less information to work with. This paper presents a Genetic Algorithm approach to produce crash reproductions on Python based only on the information contained in the error's stack-trace. An empirical study analysing three different experiments were evaluated giving mostly positive results, achieving a high precision while reproducing the desired crashes (over 70%). The study shows that the presented approach is independent of the kind of typing of the language, and provides a solid base to further develop the topic.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信