Title :
Static Detection of Bugs Caused by Incorrect Exception Handling in Java Programs
Author :
Wu, Xiaoquan ; Xu, Zhongxing ; Wei, Jun
Author_Institution :
Technol. Center of Software Eng., Chinese Acad. of Sci., Beijing, China
Abstract :
Exception handling is a vital but often poorly tested part of a program. Static analysis can spot bugs on exceptional paths without actually making the exceptions happen. However, the traditional methods only focus on null dereferences on exceptional paths, but do not check the states of variables, which may be corrupted by exceptions. In this paper we propose a static analysis method that combines forward flow sensitive analysis and backward path feasibility analysis, to detect bugs caused by incorrect exception handling in Java programs. We found 8 bugs in three open source server applications, 6 of which cannot be found by Find Bugs. The experiments showed that our method is effective for finding bugs related to poorly handled exceptions.
Keywords :
Java; exception handling; program debugging; program diagnostics; public domain software; Find Bugs; Java programs; backward path feasibility analysis; bugs detection; exceptional paths; forward flow sensitive analysis; incorrect exception handling; open source server applications; static analysis; static detection; Algorithm design and analysis; Computer bugs; Flow graphs; Java; Runtime; Safety; Software; Unsafe Use; dependency safety; exception handling; static analysis;
Conference_Titel :
Quality Software (QSIC), 2011 11th International Conference on
Conference_Location :
Madrid
Print_ISBN :
978-1-4577-0754-4
Electronic_ISBN :
1550-6002
DOI :
10.1109/QSIC.2011.25