1822525 Members
2527 Online
109642 Solutions
New Discussion юеВ

Re: Help rtcconfig

 
Harshit Maurya
New Member

Help rtcconfig

On HP-UX B.11.31 U ia64 we are trying to generate .mem and .leaks files using gdb, but not files are getting generated on proper exit of application.

$ cat rtcconfig
set heap-check on
set heap-check leaks on
set heap-check free on
set heap-check string on
set heap-check bounds on
files=/opt/xyz/server/xyzSTET
output_dir=/tmp

Environment variables
BATCH_RTC=on
GDBRTC_CONFIG=/opt/xyz/server/rtcconfig
LD_PRELOAD=/opt/langtools/lib/hpux64/librtc.so
RTC_NO_ABORT=1
GDB_SERVER=/opt/langtools/bin/gdb

Am I missing something because no files are getting generated.
Let me know if I have to provide more info.

Thanks.
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Help rtcconfig

Hi:

Perhaps a quick read of this would help:

http://h21007.www2.hp.com/portal/download/files/unprot/wdb/wdb_6.2/memdebug-updated.pdf

In particular, see the Prerequisites section on page-7.

"WDB uses the heap debugging library, librtc.[sl|so], to enable memory-debugging support. The librtc.[sl|so] library is a part of the HP WDB product. If the debugger is installed in a directory other than the default /opt/langtools/bin directory, you must use the environment variable, LIBRTC_SERVER, to set the path of the appropriate version of librtc.[sl|so]."

Regards!

...JRF...
Harshit Maurya
New Member

Re: Help rtcconfig

Thanks James, I found the documents very useful indeed.

I crosschecked the prerequisities and they all looks fine to me.
I set LIBRTC_SERVER and GDB_SERVER, though these were installed on standard paths.

Could you think of any other input which will help me generating the reports.

Thanks.
Dennis Handly
Acclaimed Contributor

Re: Help rtcconfig

>Could you think of any other input which will help me generating the reports?

How is the process exiting?

>LD_PRELOAD=/opt/langtools/lib/hpux64/librtc.so

And you do have a 64 bit process?
Harshit Maurya
New Member

Re: Help rtcconfig

>Could you think of any other input which will help me generating the reports?

How is the process exiting?
-- With a return from main.

>LD_PRELOAD=/opt/langtools/lib/hpux64/librtc.so

And you do have a 64 bit process?
-- ELF-64 executable object file

I did a fuser for the shared lib and the rtcconfig file and both are attached to the process.

Thanks for help.
Dennis Handly
Acclaimed Contributor

Re: Help rtcconfig

What version of WDB do you have?

>I did a fuser for the shared lib and the rtcconfig file and both are attached to the process.

That's pretty convincing.
Harshit Maurya
New Member

Re: Help rtcconfig

What version of WDB do you have?

$ /opt/langtools/bin/gdb -version
HP gdb 5.9 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.

Thanks.
Dennis Handly
Acclaimed Contributor

Re: Help rtcconfig

>HP gdb 5.9

You might try downloading the latest, 6.2.