Variable-based Fault Localization via Enhanced Decision Tree

被引:2
|
作者
Jiang, Jiajun [1 ]
Wang, Yumeng [1 ]
Chen, Junjie [1 ]
Lv, Delin [1 ]
Liu, Mengjiao [1 ]
机构
[1] Tianjin Univ, Coll Intelligence & Comp, Tianjin 300350, Peoples R China
基金
中国国家自然科学基金;
关键词
Fault localization; program debugging; decision tree;
D O I
10.1145/3624741
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Fault localization, aiming at localizing the root cause of the bug under repair, has been a longstanding research topic. Although many approaches have been proposed in past decades, most of the existing studies work at coarse-grained statement or method levels with very limited insights about how to repair the bug (granularity problem), but few studies target the finer-grained fault localization. In this article, we target the granularity problem and propose a novel finer-grained variable-level fault localization technique. Specifically, the basic idea of our approach is that fault-relevant variables may exhibit different values in failed and passed test runs, and variables that have higher discrimination ability have a larger possibility to be the root causes of the failure. Based on this, we propose a program-dependency-enhanced decision tree model to boost the identification of fault-relevant variables via discriminating failed and passed test cases based on the variable values. To evaluate the effectiveness of our approach, we have implemented it in a tool called VarDT and conducted an extensive study over the Defects4J benchmark. The results show that VarDT outperforms the state-of-the-art fault localization approaches with at least 268.4% improvement in terms of bugs located at Top-1, and the average improvement is 351.3%. Besides, to investigate whether our finer-grained fault localization result can further improve the effectiveness of downstream APR techniques, we have adapted VarDT to the application of patch filtering, where we use the variables located by VarDT to filter incorrect patches. The results denote that VarDT outperforms the state-of-the-art PATCH-SIM and BATS by filtering 14.8% and 181.8% more incorrect patches, respectively, demonstrating the effectiveness of our approach. It also provides a new way of thinking for improving automatic program repair techniques.
引用
收藏
页数:32
相关论文
共 50 条
  • [1] VFL: Variable-based fault localization
    Kim, Jeongho
    Kim, Jindae
    Lee, Eunseok
    INFORMATION AND SOFTWARE TECHNOLOGY, 2019, 107 : 179 - 191
  • [2] Collective variable-based enhanced sampling and machine learning
    Ming Chen
    The European Physical Journal B, 2021, 94
  • [3] Collective variable-based enhanced sampling and machine learning
    Chen, Ming
    EUROPEAN PHYSICAL JOURNAL B, 2021, 94 (10):
  • [4] Intermediate variable-based adaptive fault estimation for a class of Lipschitz nonlinear systems
    Han, Luxia
    Huang, Sheng-Juan
    INTERNATIONAL JOURNAL OF ADAPTIVE CONTROL AND SIGNAL PROCESSING, 2023, 37 (06) : 1338 - 1350
  • [5] Collective Variable-Based Enhanced Sampling: From Human Learning to Machine Learning
    Fu, Haohao
    Bian, Hengwei
    Shao, Xueguang
    Cai, Wensheng
    JOURNAL OF PHYSICAL CHEMISTRY LETTERS, 2024, 15 (06): : 1774 - 1783
  • [6] Collective variable-based calculations in NAMD
    Fiorin, Giacomo
    Henin, Jerome
    Klein, Michael L.
    BIOPHYSICAL JOURNAL, 2009, 96 (03) : 406A - 407A
  • [8] Fault mode prediction based on decision tree
    Jiarula, Yasenjiang
    Gao, Jianmin
    Gao, Zhiyong
    Jiang, Hongquan
    Wang, Rongxi
    PROCEEDINGS OF 2016 IEEE ADVANCED INFORMATION MANAGEMENT, COMMUNICATES, ELECTRONIC AND AUTOMATION CONTROL CONFERENCE (IMCEC 2016), 2016, : 1729 - 1733
  • [9] Variable-based ε - PAES with Adaptive Fertility Rate
    Moshaiov, Amiram
    Elias, Mor
    2013 13TH UK WORKSHOP ON COMPUTATIONAL INTELLIGENCE (UKCI), 2013, : 159 - 166
  • [10] Variable-Based Calibration for Machine Learning Classifiers
    Kelly, Markelle
    Smyth, Padhraic
    THIRTY-SEVENTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 37 NO 7, 2023, : 8211 - 8219