• DocumentCode
    3073611
  • 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
  • fYear
    2011
  • fDate
    13-14 July 2011
  • Firstpage
    61
  • Lastpage
    66
  • 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;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Quality Software (QSIC), 2011 11th International Conference on
  • Conference_Location
    Madrid
  • ISSN
    1550-6002
  • Print_ISBN
    978-1-4577-0754-4
  • Electronic_ISBN
    1550-6002
  • Type

    conf

  • DOI
    10.1109/QSIC.2011.25
  • Filename
    6004312