Variable-based Fault Localization via Enhanced Decision Tree

被引:5
作者
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
相关论文
共 92 条
[61]   Localizing Vulnerabilities Statistically From One Exploit [J].
Shen, Shiqi ;
Kolluri, Aashish ;
Dong, Zhen ;
Saxena, Prateek ;
Roychoudhury, Abhik .
ASIA CCS'21: PROCEEDINGS OF THE 2021 ACM ASIA CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2021, :537-549
[62]   Is the Cure Worse Than the Disease? Overfitting in Automated Program Repair [J].
Smith, Edward K. ;
Barr, Earl T. ;
Le Goues, Claire ;
Brun, Yuriy .
2015 10TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE 2015) PROCEEDINGS, 2015, :532-543
[63]   FLUCCS: Using Code and Change Metrics to Improve Fault Localization [J].
Sohn, Jeongju ;
Yoo, Shin .
PROCEEDINGS OF THE 26TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS (ISSTA'17), 2017, :273-283
[64]  
Soto M, 2016, 13TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2016), P512, DOI [10.1109/MSR.2016.067, 10.1145/2901739.2903495]
[65]  
Spuler D. A., 1994, Informatica, V18, P219
[66]   Anti-patterns in Search-Based Program Repair [J].
Tan, Shin Hwei ;
Yoshida, Hiroaki ;
Prasad, Mukul R. ;
Roychoudhury, Abhik .
FSE'16: PROCEEDINGS OF THE 2016 24TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2016, :727-738
[67]   Predicting Patch Correctness Based on the Similarity of Failing Test Cases [J].
Tian, Haoye ;
Li, Yinghua ;
Pian, Weiguo ;
Kabore, Abdoul Kader ;
Liu, Kui ;
Habib, Andrew ;
Klein, Jacques ;
Bissyande, Tegawende F. .
ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2022, 31 (04)
[68]  
Tizpaz-Niari S, 2018, AAAI CONF ARTIF INTE, P2468
[69]   Cohen's Kappa Coefficient as a Performance Measure for Feature Selection [J].
Vieira, Susana M. ;
Kaymak, Uzay ;
Sousa, Joao M. C. .
2010 IEEE INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS (FUZZ-IEEE 2010), 2010,
[70]  
[王博 Wang Bo], 2020, [软件学报, Journal of Software], V31, P1681