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 条
  • [11] Coverage-Based Fault Localization in Haskell
    Li, Feng
    Wang, Guo-Qing
    Wang, Meng
    Hao, Dan
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2025, 40 (01) : 158 - 177
  • [12] Fault localization based on information flow coverage
    Masri, Wes
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2010, 20 (02): : 121 - 147
  • [13] Fault Localization for Build Code Errors in Makefiles
    Al-Kofahi, Jafar
    Hung Viet Nguyen
    Nguyen, Tien N.
    36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE COMPANION 2014), 2014, : 600 - 601
  • [14] Dynamic code coverage metrics: a lognormal perspective
    Gokhale, SS
    Mullen, RE
    2005 11TH INTERNATIONAL SYMPOSIUM ON SOFTWARE METRICS (METRICS), 2005, : 298 - 307
  • [15] An Approach of Improving the Efficiency of Software Fault Localization based on Feedback Ranking Information
    Yang, Bo
    Ma, Xiaowen
    Guo, Haoran
    He, Yuze
    Xu, Fu
    APPLIED SCIENCES-BASEL, 2023, 13 (18):
  • [16] The efficiency of critical slicing in fault localization
    Al-Khanjari, ZA
    Woodward, MR
    Ramadhan, H
    Kutti, NS
    SOFTWARE QUALITY JOURNAL, 2005, 13 (02) : 129 - 153
  • [17] The Efficiency of Critical Slicing in Fault Localization
    Z. A. Al-Khanjari
    M. R. Woodward
    Haider Ali Ramadhan
    N. S. Kutti
    Software Quality Journal, 2005, 13 : 129 - 153
  • [18] Increasing the efficiency of fault detection in modified code
    Tomaszewski, P
    Lundberg, L
    Grahn, H
    12TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE, PROCEEDINGS, 2005, : 421 - 430
  • [19] Board level automated fault injection for fault coverage and diagnostic efficiency
    Stewart, BA
    ITC - INTERNATIONAL TEST CONFERENCE 1997, PROCEEDINGS: INTEGRATING MILITARY AND COMMERCIAL COMMUNICATIONS FOR THE NEXT CENTURY, 1997, : 649 - 654
  • [20] Fault coverage improving based on testability analysis of the VHDL code
    Kaminska, Maryna
    Hahanov, Vladimir
    Hahanova, Anna
    Parfentiy, Alexander
    2007 PROCEEDINGS OF THE 9TH INTERNATIONAL CONFERENCE ON THE EXPERIENCE OF DESIGNING AND APPLICATION OF CAD SYSTEMS IN MICROELECTRONICS, 2007, : 354 - +