User Guide

  • 2022.0
  • 05/15/2022
  • Public Content

Unhandled Application Exception

Occurs when the application undergoing analysis crashes because of an unhandled exception thrown by the application.
Problem type: Unhandled application exception
Code Location
Represents the instruction that threw the exception.
C Example
The following C example is overly simplified to provide possible scenarios where these types of errors may occur.
void problem1 (int *y) {    *y = 5; } void problem2() {    int *x = new int; }
Two exceptions are possible in this example:
  • y
    may not reference a valid memory address; therefore the write instruction may cause an exception. If that exception is not properly handled, the
    Intel Inspector
    shows an unhandled exception pointing to the write instruction at
  • If the application is out of memory, the allocation throws an exception. If the exception is unhandled by the application, the
    Intel Inspector
    shows an unhandled exception associated with the allocation.
Fortran Example
The following Fortran example is also overly simplified to provide possible scenarios where this type of error may occur.
function problem1(a) integer, allocatable :: a(:) a(5) = 1 problem1 = 1 end function problem1 function problem2(a) integer, allocatable :: a(:) allocate(a(1000)) problem2 = 1000 end function problem2
Possible Correction Strategies
This problem usually indicates an existing bug in your application that manifests during analysis. In general, it is good programming practice to ensure allocations succeed and references are valid before using them.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at