Debugging Dynamic Memory Usage Errors Using HP WDB (5900-1474; WDB 6.2; January 2011)

NOTE: It is incorrect to use spaces before or after the ’=’ symbol in the batch mode
configuration options in the configuration file, rtcconfig. Additionally, it is incorrect to
use spaces before the batch mode configuration options.
For example:
Correct Usage:
$ cat rtcconfig
check_leaks=on
check_heap=on
files=batchrtc4
Incorrect Usage:
$ cat rtcconfig
check_leaks=on
check_heap = on
files=batchrtc4
Overriding the Configuration File Settings
The RTC_MALLOC_CONFIG variable enables you to override the default rtcconfig
file settings.
Following is the syntax for exporting the configuration to RTC_MALLOC_CONFIG:
export RTC_MALLOC_CONFIG=config_string1[;config_strings]
The overriding settings of RTC_MALLOC_CONFIG are dependent on the global
environment variable RTC_NO_ABORT setting. RTC_NO_ABORT must not be set if the
configuration strings must abort the execution of the program on detection of the first
occurrence of bounds, double-free, or out-of-memory conditions.
If RTC_NO_ABORT is set to 1, the program does not abort for failed checks and you can
view the logfiles for all the failed checks in a single execution run.
Table 15 lists the config_strings options that are available for
RTC_MALLOC_CONFIG. The config_strings are separated by semicolon (;).
Supported Modes of Memory-debugging in WDB 65