What if a bug has a Different Origin?: Making Sense of Bugs Without an Explicit Bug Introducing Change
Autor: | Rodriguez Perez, G., Zaidman, A.E., Serebrenik, Alexander, Robles, Gregorio, Gonzalez-Barahona, Jesus M., Oivo, Markku, Mendez Fernandez, Daniel, Mockus, Audris |
---|---|
Přispěvatelé: | Software Engineering and Technology |
Jazyk: | angličtina |
Rok vydání: | 2018 |
Předmět: |
Empirical Study
Source lines of code Computer science Programming language 020207 software engineering 02 engineering and technology Open source software Happened-before SZZ algorithm computer.software_genre Software research Empirical research Bug-introducing change 020204 information systems Framing (construction) 0202 electrical engineering electronic engineering information engineering computer |
Zdroj: | ESEM '18 Proceedings of the 12th ACM/IEEE International Symposium on Empirical Software Engineering and Measurement ESEM |
Popis: | Background: Many studies in the software research literature on bug fixing are built upon the assumption that "a given bug was introduced by the lines of code that were modified to fix it", or variations of it. Although this assumption seems very reasonable at first glance, there is little empirical evidence supporting it. A careful examination surfaces that there are other possible sources for the introduction of bugs such as modifications to those lines that happened before the last change an changes external to the piece of code being fixed. Goal: We aim at understanding the complex phenomenon of bug introduction and bug fix. Method: We design a preliminary approach distinguishing between bug introducing commits (BIC) and first failing moments (FFM). We apply this approach to Nova and ElasticSearch, two large and well-known open source software projects. Results: In our initial results we obtain that at least 24% bug fixes in Nova and 10% in ElasticSearch have not been caused by a BIC but by co-evolution, compatibility issues or bugs in external API. Merely 26--29% of BICs can be found using the algorithm based on the assumption that "a given bug was introduced by the lines of code that were modified to fix it". Conclusions: The approach allows also for a better framing of the comparison of automatic methods to find bug inducting changes. Our results indicate that more attention should be paid to whether a bug has been introduced and, when it was introduced. |
Databáze: | OpenAIRE |
Externí odkaz: |