DocumentCode
3538341
Title
Fault Localization for Null Pointer Exception Based on Stack Trace and Program Slicing
Author
Jiang, Shujuan ; Li, Wei ; Li, Haiyang ; Zhang, Yanmei ; Zhang, Hongchang ; Liu, Yingqi
Author_Institution
Sch. of Comput. Sci. & Technol., China Univ. of Min. & Technol., Xuzhou, China
fYear
2012
fDate
27-29 Aug. 2012
Firstpage
9
Lastpage
12
Abstract
Null pointer exception is a commonly occurring error in Java programs, and many static analysis tools can identify such errors. However, most of existing tools are pure static analysis and suffer from the common problems of the pure static approaches. In this paper, we present a new approach for identifying null dereferences by combining the dynamically generated information (from the stack trace) with the static analysis. Starting at a dereference statement, where the null pointer exception occurred, our approach performs a backward program slicing guided by the stack trace. Then it performs the null identifying analysis and alias analysis on the sliced program. The approach also visualizes the analysis results and the related source codes. Finally, the paper also presents an implementation of the null pointer exception analysis. The results show the advantage of our approach for locating null pointer exception.
Keywords
Java; program slicing; software fault tolerance; Java programs; alias analysis; dereference statement; fault localization; null pointer exception; program slicing; stack trace; static analysis tools; Accuracy; Algorithm design and analysis; Java; Runtime; Software algorithms; Visualization; fault localization; null pointer exception; program slicing; stack trace;
fLanguage
English
Publisher
ieee
Conference_Titel
Quality Software (QSIC), 2012 12th International Conference on
Conference_Location
Xi´an, Shaanxi
ISSN
1550-6002
Print_ISBN
978-1-4673-2857-9
Type
conf
DOI
10.1109/QSIC.2012.36
Filename
6319219
Link To Document