IEEE Access (Jan 2020)

Enhancing Spectrum-Based Fault Localization Using Fault Influence Propagation

  • Hongdou He,
  • Jiadong Ren,
  • Guyu Zhao,
  • Haitao He

DOI
https://doi.org/10.1109/ACCESS.2020.2965139
Journal volume & issue
Vol. 8
pp. 18497 – 18513

Abstract

Read online

With the rapidly increasing complexity and indispensable status of software systems, unprecedented challenges have been brought to software debugging and fault repair. Among the states of art automated fault localization techniques, spectrum-based fault localization (SBFL) is one of the most widely studied heuristic approaches. While, existing SBFL techniques are mostly focused on the analysis of the test spectrum, which loses sight of the effectiveness implied in interactions of software entities. In this paper, an optimized fault localization approach is proposed, which integrates spectrum-based fault localization and fault influence propagation analysis. The intuition is that the entity associated with more suspicious entities is more likely to be faulty. (1) A dynamic-instrumenting execution tracer is developed to record test coverage data and method call relations simultaneously. (2) The Fault Influence Network (FIN) based on complex network theory is constructed, of which the network topology is abstracted from method call relations and the weights of nodes are calculated applying a raw fault locator. Thus, the test spectrum and the method interactive relations are combined for further collaborative analysis. (3) A PageRank-based fault localization approach is proposed. By the computation of fault influence propagation, the suspiciousness score PR-Susp of the real faulty method can be enhanced significantly. Also, a candidate set pruning based on failing tests is implemented, which is used for the narrowing of investigation. Experiments are conducted over real-world fault dataset Defects4J with 33 raw spectrum-based fault locators, which proves that the proposed approach improves the baseline 14.9% averagely on the metric acc@5 with a growth rate of over 39% on all metrics of acc@1, acc@3, acc@5, MAP, and MWE.

Keywords