Intel® Inspector Help

Unhandled Application Exception

Occurs when the application undergoing analysis crashes because of an unhandled exception thrown by the application.

Problem type: Unhandled application exception

ID

Code Location

Description

1

Exception

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:

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.