User Guide

  • 2020
  • 10/21/2020
  • 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.
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.
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


Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserverd for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804