Why Did This Reviewed Code Crash? An Empirical Study of Mozilla Firefox

Authors - Le An, Foutse Khomh, Shane McIntosh, Marco Castelluccio
Venue - Asia-Pasific Software Engineering Conference, pp. To appear, 2018

Related Tags - APSEC 2018 code review software quality

Abstract - Code review, i.e., the practice of having other team members critique changes to a software system, is a pillar of modern software quality assurance approaches. Although this activity aims at improving software quality, some high-impact defects, such as crash-related defects, can elude the inspection of reviewers and escape to the field, affecting user satisfaction and increasing maintenance overhead. In this research, we investigate the characteristics of crash-prone code, observing that such code tends to have high complexity and depend on many other classes. In the code review process, developers often spend a long time on and have long discussions about crash-prone code. We manually classify a sample of reviewed crash-prone patches according to their purposes and root causes. We observe that most crash- prone patches aim to improve performance, refactor code, add functionality, or fix previous crashes. Memory and semantic errors are identified as major root causes of the crashes. Our results suggest that software organizations should apply more scrutiny to these types of patches, and provide better support for reviewers to focus their inspection effort by using static analysis tools.

Preprint - PDF

Bibtex

@inproceedings{an2018apsec,
  Author = {Le An and Foutse Khomh and Shane McIntosh and Marco Castelluccio},
  Title = {{Why Did This Reviewed Code Crash? An Empirical Study of Mozilla Firefox}},
  Year = {2018},
  Booktitle = {Proc. of the Asia-Pasific Software Engineering Conference (APSEC)},
  Pages = {To appear}
}