A dynamic code coverage approach to maximize fault localization efficiency

被引:20
|
作者
Perez, Alexandre [1 ]
Abreu, Rui [1 ]
Riboira, Andre [1 ]
机构
[1] Univ Porto, Fac Engn, Dept Informat Engn, P-4100 Oporto, Portugal
关键词
Dynamic coverage; Software diagnosis; Spectrum-based fault localization; MODEL;
D O I
10.1016/j.jss.2013.12.036
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Spectrum-based fault localization is amongst the most effective techniques for automatic fault localization. However, abstractions of program execution traces, one of the required inputs for this technique, require instrumentation of the software under test at a statement level of granularity in order to compute a list of potential faulty statements. This introduces a considerable overhead in the fault localization process, which can even become prohibitive in, e.g., resource constrained environments. To counter this problem, we propose a new approach, coined dynamic code coverage (DCC), aimed at reducing this instrumentation overhead. This technique, by means of using coarser instrumentation, starts by analyzing coverage traces for large components of the system under test. It then progressively increases the instrumentation detail for faulty components, until the statement level of detail is reached. To assess the validity of our proposed approach, an empirical evaluation was performed, injecting faults in six real-world software projects. The empirical evaluation demonstrates that the dynamic code coverage approach reduces the execution overhead that exists in spectrum-based fault localization, and even presents,a more concise potential fault ranking to the user. We have observed execution time reductions of 27% on average and diagnostic report size reductions of 77% on average. (C) 2014 Elsevier Inc. All rights reserved.
引用
收藏
页码:18 / 28
页数:11
相关论文
共 50 条
  • [31] A Learning-Based Fault Localization Approach Using Subset of Likely and Dynamic Invariants
    Shaikh, Asadullah
    Rizwan, Syed
    Alghamdi, Abdullah
    Islam, Noman
    Elmagzoub, M. A.
    Syed, Darakhshan
    INTELLIGENT AUTOMATION AND SOFT COMPUTING, 2022, 31 (03): : 1529 - 1546
  • [32] Incorporating code coverage in the reliability estimation for fault-tolerant software
    Chen, MH
    Lyu, MR
    Wong, WE
    SIXTEENTH SYMPOSIUM ON RELIABLE DISTRIBUTED SYSTEMS, PROCEEDINGS, 1997, : 45 - 52
  • [33] FLUCCS: Using Code and Change Metrics to Improve Fault Localization
    Sohn, Jeongju
    Yoo, Shin
    PROCEEDINGS OF THE 26TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS (ISSTA'17), 2017, : 273 - 283
  • [34] Efficiency: A dynamic approach
    Wibe, Soren
    INTERNATIONAL JOURNAL OF PRODUCTION ECONOMICS, 2008, 115 (01) : 86 - 91
  • [35] Will Fault Localization Work For These Failures ? An Automated Approach to Predict Effectiveness of Fault Localization Tools
    Le Tien-Duy, B.
    Lo, David
    2013 29TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE (ICSM), 2013, : 310 - 319
  • [36] DYNAMIC-MODEL OF AN EARTHQUAKE FAULT WITH LOCALIZATION
    KNOPOFF, L
    LANDONI, JA
    ABINANTE, MS
    PHYSICAL REVIEW A, 1992, 46 (12): : 7445 - 7449
  • [37] A DYNAMIC FAULT LOCALIZATION ALGORITHM USING DIGRAPH
    Li, Chun-Fang
    Liu, Lian-Zhong
    Pang, Xiao-Jie
    PROCEEDINGS OF 2009 INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND CYBERNETICS, VOLS 1-6, 2009, : 1298 - +
  • [38] Fault localization using disparities of dynamic invariants
    Wang, Xiaoyan
    Liu, Yongmei
    JOURNAL OF SYSTEMS AND SOFTWARE, 2016, 122 : 144 - 154
  • [39] Target Code-coverage and Efficiency in APP Automatic Compatibility Testing Based on Code Analysis
    Yang, Sen
    Huang, Yifan
    Huang, Song
    Hui, Zhanwei
    Zheng, Changyou
    2021 IEEE 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2021), 2021, : 322 - 327
  • [40] An Improvement to Fault Localization Technique Based on Branch-Coverage Spectra
    Xu, Sihan
    Xu, Jing
    Yang, Hongji
    Yang, Jufeng
    Guo, Chenkai
    Yuan, Liying
    Song, Wenli
    Si, Guannan
    39TH ANNUAL IEEE COMPUTERS, SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC 2015), VOL 2, 2015, : 282 - 287