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

Choose Problem

To start exploring a detected threading error:

Understand Summary Window Panes

Summary window 
The Summary window is the starting point for managing result data. Click to learn more. Think of the Problems pane as a to-do list. Click to learn more. The Code Locations pane shows code location information for the highlighted problem(s). Click to learn more.

1

The Summary window is the starting point for managing result data. It groups problems into problem sets and then prioritizes the problem sets by severity and size.

2

Think of the Problems pane as a to-do list. Start at the top and work your way down. Try viewing the problems in various problem sets by clicking the corresponding Expand control icon.

3

The Code Locations pane shows the code location summary, surrounding source code snippet, call stack, and thread and timeline information for all code locations in one or all occurrences of the problem(s) highlighted in the Problems pane.

Pane controls

Try viewing information for different occurrences of the highlighted problem by clicking the Slide forward control or Slide backward control controls, or clicking the All button.

Choose a Problem

When you are finished experimenting:

  1. Click the Expand control icon for the Data race problem set in the find_and_fix_threading_errors.cpp source file to view all the problems in the problem set.

  2. Double-click the data row for the first Data race problem in the problem set to display the Sources window, which provides more visibility into the cause of the error.

Key Terms