HP (Hewlett-Packard) 5992-4701 Computer Hardware User Manual


 
and, bcopy. WDB 5.6 and later versions of the
debugger also validates calls to strcat and
strncat.
NOTE: HP WDB 6.0 and later versions of the
debugger improves performance of memory
debugging when the string option is set for
32-bit applications on HP-UX 11i v2 and later on
Itanium systems. However, the performance
degrades for 64-bit applications on HP-UX 11i
v2 and later on Itanium systems.
set heap-check bounds [on
| off]
Allocates extra space at the beginning and end
of a heap block during allocation and fills it with
a specific pattern. When blocks are freed, WDB
verifies whether these patterns are intact. If they
are corrupted, an under flow or over- flow must
have occurred and WDB reports the problem.
This option increases the program's memory
requirements.
set heap-check scramble [on
| off]
Scrambles a memory block and overwrites it with
a specific pattern when it is allocated or
deallocated. This change to the memory contents
increases the chance that erroneous behaviors,
such as attempting to access space that is freed
or depending on initial values of malloc()
blocks, cause the program to fail.
info dangling
Displays a list of all the dangling pointers and
dangling blocks that are potential sources of
memory corruption( may have false positives).
info corruption
Checks for corruption in the currently allocated
heap blocks.In addition, it lists the potential
in-block corruptions in all the freed blocks.
set heap-check
min-leak-size num
Collects a stack trace only when the size of the
leak exceeds the number of bytes you specify for
this value. Larger values improve run-time
performance. The default value is zero (0) bytes.
set heap-check frame-count
num
Controls the depth of the call stack collected.
Larger values increase run time. The default
value is four (4) stack frames.
set heap-check header-size
num of bytes
Sets the Header guard for each block of the
allocated memory. The default number of bytes
162 HP-UX Configuration-Specific Information