Tutorial: Analyzing Memory Errors with Intel® Inspector and a C++ Sample

Interpret Result Data

To determine the cause of the detected memory error:

Interpret Sources Window Pane Tabs

Sources window 
The Source tab shows the complete source surrounding one code location in the selected problem. Click to learn more. The Disassembly tab shows low-level operations for one code location in the selected problem. Click to learn more. The Call Stack tab shows the complete call stack for one code location in the selected problem. Click to learn more. You can expand/collapse source, disassembly, and call stack information for each code location region in the selected problem. Click to learn more.

1

The Source tab shows the complete source surrounding one code location in the Mismatched allocation/deallocation problem: Mismatched deallocation site.

The Mismatched deallocation site code location represents the location attempting the deallocation. Notice the source code corresponding to the Mismatched deallocation site code location is highlighted.

2

The Disassembly tab shows low-level operations for the Mismatched deallocation site code location in the Mismatched allocation/deallocation problem.

3

The Call Stack tab shows the complete call stack for the Mismatched deallocation site code location in the Mismatched allocation/deallocation problem.

4

Use the Expand control/Collapse control icons to expand/collapse source, disassembly, and call stack information for each code location region in the Mismatched allocation/deallocation problem.

In this case, the Allocation site code location represents the location from which the memory block was allocated.

Access More Information on Interpreting and Resolving Problems

  1. Right-click anywhere in the Source or Disassembly tab.

  2. Choose Explain Problem to display the Intel Inspector Help information for the Mismatched deallocation site problem type.

Key Terms