Journal on Communications ›› 2015, Vol. 36 ›› Issue (1): 18-29.doi: 10.11959/j.issn.1000-436x.2015003

• Academic paper • Previous Articles     Next Articles

Fault localization approach for null pointer exception

Shu-juan JIANG1,Xing-ya WANG1,Yan-mei ZHANG1,Wei LI1,Xiao-lin JU1,2,IUYing-qi L1   

  1. 1 School of Computer Science and Technology, China University of Mining and Technology, Xuzhou 221116, China
    2 School of Computer Science and Technology, Nantong University, Nantong 226019, China
  • Online:2015-01-25 Published:2017-06-21
  • Supported by:
    The National Natural Science Foundation of China;The National Natural Science Foundation of China;333 Project of Jiangsu Province; The Fundamental Research Funds for the Central Universities;The University Natural Science Research Projects of Jiangsu Province;The Graduate Training Innovative Projects Foundation of Jiangsu Province;State Key Laboratory for Movel Software Technology at Nanjing University

Abstract:

A novel approach to locate the fault for null pointer exception is presented.The approach first computes the static slice guided by the runtime stack,then conducts a null-pointer analysis and aliases analysis on the sliced program and obtains the suspicious statements that throw null-pointer exceptions,and finally generates a fault localization report.The experimental study indicates that,although time spent in runtime stack information collecting and aliases transferring,the proposed approach can narrow the searching space of the problem with runtime stack,and discover the value transfer process with aliases analysis,thereby eliminating false negative and false positive,and improving the effectiveness of fault localization.

Key words: automatic fault localization, null pointer exception, runtime stack, program slicing, alias analysis

No Suggested Reading articles found!