Taming coincidental correctness: Coverage refinement with context patterns to improve fault localization

Xinming Wang, S.C. Cheung, W.K. Chan, Zhenyu Zhang
2009 2009 IEEE 31st International Conference on Software Engineering  
Recent techniques for fault localization leverage code coverage to address the high cost problem of debugging. These techniques exploit the correlations between program failures and the coverage of program entities as the clue in locating faults. Experimental evidence shows that the effectiveness of these techniques can be affected adversely by coincidental correctness, which occurs when a fault is executed but no failure is detected. In this paper, we propose an approach to address this
more » ... . We refine code coverage of test runs using control-and dataflow patterns prescribed by different fault types. We conjecture that this extra information, which we call context patterns, can strengthen the correlations between program failures and the coverage of faulty program entities, making it easier for fault localization techniques to locate the faults. To evaluate the proposed approach, we have conducted a mutation analysis on three real world programs and cross-validated the results with real faults. The experimental results consistently show that coverage refinement is effective in easing the coincidental correctness problem in fault localization techniques. 1
doi:10.1109/icse.2009.5070507 dblp:conf/icse/WangCCZ09 fatcat:ne2zmy6nfrfivefuhwmrn5fzzm