Getting Started with TotalView®
:
Memory Debugging
:
Finding Dangling Pointers
Finding Dangling Pointers
With memory debugging turned on in TotalView, you can identify a dangling pointer (points into deallocated memory) through additional information in the Variable Windows and the Stack Frame Pane,
Figure 29
.
Figure 29:
Dangling Pointers
See More
On fixing dangling pointers:
“
Fixing Dangling Pointer Problems”
in
Debugging Memory Problems with MemoryScape
On using the command
dheap -is_dangling
: “
Checking for Dangling Pointers: dheap -is_dangling”
in
Debugging Memory Problems with MemoryScape