Operating System - HP-UX
1833406 Members
2737 Online
110052 Solutions
New Discussion

Problem linking librtc.sl, heap debugging library

 
Binyam Tsegaye
New Member

Problem linking librtc.sl, heap debugging library

Hi all,
I have an application that I suspect has a memory leak and wanted to do some heap debugging. I am using GDB, however I get the following error when I do "info leak" in GDB
'The heap debugging library (librtc.sl) is not linked in !'

I have linked in this library, but I'm not sure why I still see this error.

Any help, guidance is appreciated.
Thanks.
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Problem linking librtc.sl, heap debugging library

Run ldd on your executable. That will tell you if the library was linked.
If it ain't broke, I can fix that.
Dennis Handly
Acclaimed Contributor

Re: Problem linking librtc.sl, heap debugging library

What version of gdb do you have?

The latest versions of gdb automatically arranges for librtc.sl to be linked into your application without you doing anything. Older versions required you to use LD_PRELOAD.