EUVIMEDEUVIMED entdecken
Crossref

Cut to the Chase: An Error-Oriented Approach to Detect Error-Handling Bugs

Haoran Liu, Zhouyang Jia, Shanshan Li, Yan Lei, Yue Yu, Yu Jiang, Xiaoguang Mao, Xiangke Liao

Proceedings of the ACM on Software Engineering · 12.07.2024 · 1 (FSE) · 1796-1818

DOI: 10.1145/3660787 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of the ACM on Software Engineering, online erschienen am 12.07.2024. Verfasst von Haoran Liu und 7 weiteren Autor:innen. Die Arbeit wurde bisher 4-mal zitiert (Crossref) und nennt 51 Literaturangaben. Gefördert von: NSFC, the Science and Technology Innovation Program of Hunan Province.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Error-handling bugs are prevalent in software systems and can result in severe consequences. Existing works on error-handling bug detection can be categorized into template-based and learning-based approaches. The former requires much human effort and is difficult to accommodate the software evolution. The latter usually focuses on errors of API and assumes that error handling should be right after the handled error. Such an assumption, however, may affect both learning and detecting phases. The existing learning-based approaches can be regarded as API-oriented, which starts from an API and learns if the API requires error handling. In this paper, we propose EH-Digger, an ERROR-oriented approach, which starts from an error handling. Our approach can learn why the error occurs and when the error has to be handled. We conduct a comprehensive study on 2,322 error-handling code snippets from 22 widely used software systems across 8 software domains to reveal the limitation of existing approaches and guide the design of EH-Digger. We evaluated EH-Digger on the Linux Kernel and 11 open-source applications. It detected 53 new bugs confirmed by the developers and 71 historical bugs fixed in the latest versions. We also compared EH-Digger with three state-of-the-art approaches, 30.1% of bugs detected by EH-Digger cannot be detected by the existing approaches.

Förderung

  • NSFC
  • the Science and Technology Innovation Program of Hunan Province

Zitieren

APA

Liu, H., Jia, Z., Li, S., Lei, Y., Yu, Y., Jiang, Y., Mao, X., & Liao, X. (2024). Cut to the Chase: An Error-Oriented Approach to Detect Error-Handling Bugs. Proceedings of the ACM on Software Engineering, 1(FSE), 1796-1818. https://doi.org/10.1145/3660787

Vancouver

Liu H, Jia Z, Li S, Lei Y, Yu Y, Jiang Y, et al. Cut to the Chase: An Error-Oriented Approach to Detect Error-Handling Bugs. Proceedings of the ACM on Software Engineering. 2024;1(FSE):1796-1818. doi:10.1145/3660787

BibTeX
@article{Liu2024,
  author = {Liu, Haoran and Jia, Zhouyang and Li, Shanshan and Lei, Yan and Yu, Yue and Jiang, Yu and Mao, Xiaoguang and Liao, Xiangke},
  title = {Cut to the Chase: An Error-Oriented Approach to Detect Error-Handling Bugs},
  journal = {Proceedings of the ACM on Software Engineering},
  year = {2024},
  volume = {1},
  number = {FSE},
  pages = {1796--1818},
  doi = {10.1145/3660787}
}
Kostenlos starten →