Learning a graph-based classifier for fault localization

被引:0
|
作者
Hao ZHONG [1 ]
Hong MEI [1 ]
机构
[1] Department of Computer Science and Engineering, Shanghai Jiao Tong University
基金
国家重点研发计划;
关键词
fault classifier; partial code analysis; bug fix analysis;
D O I
暂无
中图分类号
TP311.53 []; TP181 [自动推理、机器学习];
学科分类号
081104 ; 0812 ; 081202 ; 0835 ; 1405 ;
摘要
Because software emerged, locating software faults has been intensively researched, culminating in various approaches and tools that have been applied in real development. Despite the success of these developments, improved tools are still demanded by programmers. Meanwhile, some programmers are reluctant to use any tools when locating faults in their development. The state-of-the-art situation can be naturally improved by learning how programmers locate faults. The rapid development of open-source software has accumulated many bug fixes. A bug fix is a specific type of comments containing a set of buggy files and their corresponding fixed files, which reveal how programmers repair bugs. Feasibly, an automatic model can learn fault locations from bug fixes, but prior attempts to achieve this vision have been prevented by various technical challenges. For example, most bug fixes are not compilable after checking out, which hinders analyzing bug fixes by most advanced static/dynamic tools. This paper proposes an approach called ClaFa that trains a graph-based fault classifier from bug fixes. ClaFa is built on a recent partial-code tool called Grapa, which enables the analysis of partial programs by the complete code tool called WALA. Once Grapa has built a program dependency graph from a bug fix, ClaFa compares the graph from the buggy code with the graph from the fixed code, locates the buggy nodes, and extracts the various graph features of the buggy and clean nodes. Based on the extraction result, ClaFa trains a classifier that combines Adaboost and decision tree learning. The trained ClaFa can predict whether a node of a program dependency graph is buggy or clean.We evaluate ClaFa on thousands of buggy files collected from four open-source projects: Aries, Mahout,Derby, and Cassandra. The f-scores of ClaFa achieves are approximately 80% on all projects.
引用
收藏
页码:195 / 216
页数:22
相关论文
共 50 条
  • [41] Spatial Graph-Based Localization and Navigation on Scaleless Floorplan
    Ewe, Zu Lin
    Chang, Fu-Hao
    Huang, Yi-Shiang
    Fu, Li-Chen
    IEEE ROBOTICS AND AUTOMATION LETTERS, 2024, 9 (04) : 3932 - 3939
  • [42] Object localization in procedural programs: a graph-based approach
    Department of Computer Science, Louisiana State University, Baton Rouge, LA 70803, United States
    Journal of Software Maintenance, 2000, 12 (05): : 305 - 323
  • [43] Learning Graph Matching with a Graph-Based Perceptron in a Classification Context
    Raveaux, Romain
    Martineau, Maxime
    Conte, Donatello
    Venturini, Gilles
    GRAPH-BASED REPRESENTATIONS IN PATTERN RECOGNITION (GBRPR 2017), 2017, 10310 : 49 - 58
  • [44] Iterative heterogeneous graph learning for knowledge graph-based recommendation
    Liu, Tieyuan
    Shen, Hongjie
    Liang, Chang
    Long, Li
    Li, Jingjing
    SCIENTIFIC REPORTS, 2023, 13 (01)
  • [45] Iterative heterogeneous graph learning for knowledge graph-based recommendation
    Tieyuan Liu
    Hongjie Shen
    Liang Chang
    Long Li
    Jingjing Li
    Scientific Reports, 13
  • [46] Selecting Structural Base Classifiers for Graph-Based Multiple Classifier Systems
    Lee, Wan-Jui
    Duin, Robert P. W.
    Bunke, Horst
    MULTIPLE CLASSIFIER SYSTEMS, PROCEEDINGS, 2010, 5997 : 155 - +
  • [47] Graph-based multiple classifier systems a data level fusion approach
    Neuhaus, M
    Bunke, H
    IMAGE ANALYSIS AND PROCESSING - ICIAP 2005, PROCEEDINGS, 2005, 3617 : 479 - 486
  • [48] Graph-Based Active Learning Based on Label Propagation
    Long, Jun
    Yin, Jianping
    Zhao, Wentao
    Zhu, En
    MODELING DECISIONS FOR ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2008, 5285 : 179 - 190
  • [49] Graph-based relational learning with application to security
    Holder, L
    Cook, D
    Coble, J
    Mukherjee, M
    FUNDAMENTA INFORMATICAE, 2005, 66 (1-2) : 83 - 101
  • [50] Graph-based Isometry Invariant Representation Learning
    Khasanova, Renata
    Frossard, Pascal
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 70, 2017, 70