Software Technology Research
|
2785-2791

Fault localization combing static features and spectrums

Wang Haoren
Yue Lei
Li Jingwen
Cui Zhanqi
School of Computer Science, Beijing Information Science & Technology University, Beijing 100101, China

Abstract

SBFL is the most commonly used fault localization technique, which performs fast localization by analyzing the coverage and execution result information of test cases. However, SBFL fails to fully utilize the implicit semantic and structural information of the code. If the code structure information used in fault prediction and the spectrum information can be fused, it will further improve the effectiveness of fault localization. To this end, this paper proposed a software FLFS method. Firstly, it selected feature from the metrics, including Halstead, CK, etc, and adapted them to measure the method-level features of the code. Then, it extracted the static features of each method in the program according to the metrics and used them to train the fault prediction model. Finally, it used the fault prediction model to predict the prediction suspiciousness of each method in the program and fused it with the spectrum suspiciousness calculated by SBFL to locate the faulty method. To verify the effectiveness of FLFS, this paper compared it with two most effective SBFL techniques, DStar and Ochiai, on the Defects4J dataset. The results show that FLFS outperforms SBFL in terms of Einspect@n, and MRR. For Einspect@n, when n=1, FLFS locates 16 and 10 more faults than DStar and Ochiai respectively. For MRR, FLFS improves by 4.13% and 1.08% compared to DStar and Ochiai respectively.

Foundation Support

国家自然科学基金资助项目(61702041)
北京市教委科技计划资助项目(KM201811232016)
北京信息科技大学“勤信人才”培育计划资助项目(QXTCPC201906)

Publish Information

DOI: 10.19734/j.issn.1001-3695.2023.02.0054
Publish at: Application Research of Computers Printed Article, Vol. 40, 2023 No. 9
Section: Software Technology Research
Pages: 2785-2791
Serial Number: 1001-3695(2023)09-035-2785-07

Publish History

[2023-04-26] Accepted Paper
[2023-09-05] Printed Article

Cite This Article

王浩仁, 岳雷, 李静雯, 等. 融合代码静态特征和频谱的软件缺陷定位技术 [J]. 计算机应用研究, 2023, 40 (9): 2785-2791. (Wang Haoren, Yue Lei, Li Jingwen, et al. Fault localization combing static features and spectrums [J]. Application Research of Computers, 2023, 40 (9): 2785-2791. )

About the Journal

  • Application Research of Computers Monthly Journal
  • Journal ID ISSN 1001-3695
    CN  51-1196/TP

Application Research of Computers, founded in 1984, is an academic journal of computing technology sponsored by Sichuan Institute of Computer Sciences under the Science and Technology Department of Sichuan Province.

Aiming at the urgently needed cutting-edge technology in this discipline, Application Research of Computers reflects the mainstream technology, hot technology and the latest development trend of computer application research at home and abroad in a timely manner. The main contents of the journal include high-level academic papers in this discipline, the latest scientific research results and major application results. The contents of the columns involve new theories of computer discipline, basic computer theory, algorithm theory research, algorithm design and analysis, blockchain technology, system software and software engineering technology, pattern recognition and artificial intelligence, architecture, advanced computing, parallel processing, database technology, computer network and communication technology, information security technology, computer image graphics and its latest hot application technology.

Application Research of Computers has many high-level readers and authors, and its readers are mainly senior and middle-level researchers and engineers engaged in the field of computer science, as well as teachers and students majoring in computer science and related majors in colleges and universities. Over the years, the total citation frequency and Web download rate of Application Research of Computers have been ranked among the top of similar academic journals in this discipline, and the academic papers published are highly popular among the readers for their novelty, academics, foresight, orientation and practicality.


Indexed & Evaluation

  • The Second National Periodical Award 100 Key Journals
  • Double Effect Journal of China Journal Formation
  • the Core Journal of China (Peking University 2023 Edition)
  • the Core Journal for Science
  • Chinese Science Citation Database (CSCD) Source Journals
  • RCCSE Chinese Core Academic Journals
  • Journal of China Computer Federation
  • 2020-2022 The World Journal Clout Index (WJCI) Report of Scientific and Technological Periodicals
  • Full-text Source Journal of China Science and Technology Periodicals Database
  • Source Journal of China Academic Journals Comprehensive Evaluation Database
  • Source Journals of China Academic Journals (CD-ROM Version), China Journal Network
  • 2017-2019 China Outstanding Academic Journals with International Influence (Natural Science and Engineering Technology)
  • Source Journal of Top Academic Papers (F5000) Program of China's Excellent Science and Technology Journals
  • Source Journal of China Engineering Technology Electronic Information Network and Electronic Technology Literature Database
  • Source Journal of British Science Digest (INSPEC)
  • Japan Science and Technology Agency (JST) Source Journal
  • Russian Journal of Abstracts (AJ, VINITI) Source Journals
  • Full-text Journal of EBSCO, USA
  • Cambridge Scientific Abstracts (Natural Sciences) (CSA(NS)) core journals
  • Poland Copernicus Index (IC)
  • Ulrichsweb (USA)