Operating System - HP-UX
1837921 Members
5692 Online
110124 Solutions
New Discussion

Shared library memory leak detection

 
Muthukumar_5
Honored Contributor

Shared library memory leak detection

Hai all.

I have my own sample shared library with memory leak which contains no debug symbols on IPF platform.
Which of the following method is good to detect the memory leak.
1. gdb with librtc library
2. using purify tool

Thanks,
Muthu
Easy to suggest when don't know about the problem!
3 REPLIES 3
Ravi_8
Honored Contributor

Re: Shared library memory leak detection

Hi Muthu

gdb is the better tool, we use it very often to detect the memory leakage
never give up
Muthukumar_5
Honored Contributor

Re: Shared library memory leak detection

Hai Ravi,

Thanks for the reply.
Is it good to keep track the memory leaks in the shared libraries and filing JAG's with GDB.

Normally memory leaks are filled using the purify tool. So is there any difference to file the jag with these two scenario's?

Thanks,
Muthu.
Easy to suggest when don't know about the problem!
Manish Srivastava
Trusted Contributor

Re: Shared library memory leak detection

Hi,

We use purify and it really helps us to catch the MLK's and PLK's. It has been used in our work area with great success. Apart from memory leaks purify reports many other things like array bound read/write etc. The logs help us to keep track of introduction of any problem with new code added.

manish