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


 
LD_PRELOAD=/opt/langtools/lib/librtc.sl <executable>
For 64-bit IPF applications,
LD_PRELOAD=/opt/langtools/lib/pa20_64/librtc.sl <executable>
If LD_PRELOAD and chatr +rtc are used to preload the librtc runtime library
, the librtc runtime library is loaded from the path specified by
LD_PRELOAD.
NOTE: Batch Mode RTC displays one of the following errors and causes the
program to temporarily hang if the version of WDB and librtc.[sl|so]
do not match, or if WDB is not available on the system:
"/opt/langtools/bin/gdb: unrecognized option `-brtc'
Use `/opt/langtools/bin/gdb --help' for a complete list of options."
OR
"execl failed. Cannot print RTC info: No such file or directory"
This error does not occur under normal usage where WDB or
librtc.[sl|so] is used from the default location at /opt/langtools/
... However, this error occurs if GDB_SERVER and/or LIBRTC_SERVER are
set to a mismatched version of WDB or librtc.[sl|so] respectively.
5. At the end of the run, output data file is created in output_data_dir, if defined
in rtcconfig, or the current directory. HP WDB creates output data file for each
run. It creates a separate file for leak detection and heap information. The naming
convention for output files is as follows:
<file_name>.<pid>.<suffix>
where, <pid> is the process id and the value for <sux> can be either leaks, heap,
or mem.
NOTE: During operations such as system(3s) and popen(), which invoke a
new shell, librtc.sl|so must not be loaded to the invoked shell. You must use
LD_PRELOAD_ONCE, instead of LD_PRELOAD, to exclusively load the
librtc.sl|so file to the calling process only. Following is the syntax for using
LD_PRELOAD_ONCE:
LD_PRELOAD_ONCE= /opt/langtools/lib/librtc.sl
14.10.5.2 Environment variable setting for Batch mode debugging
Batch mode memory leak detection uses the following environment variables:
GDBRTC_CONFIG specifies the location of rtc configuration file. If this option is
not specified, the configuration file is assumed to be in the current location, and
14.10 Debugging Memory Problems 167