Operating System - HP-UX
1752664 Members
5424 Online
108788 Solutions
New Discussion юеВ

Tool for memory leak detection

 
divbabi
Occasional Contributor

Tool for memory leak detection

Can anyone suggest me a good tool for memory leak detection on hp-ux?
10 REPLIES 10
ranganath ramachandra
Esteemed Contributor

Re: Tool for memory leak detection

WDB implements memory leak checking. You will find documentation and a webcast at http://www.hp.com/go/wdb .
 
--
ranga
[i work for hpe]

Accept or Kudo

divbabi
Occasional Contributor

Re: Tool for memory leak detection

How about dmalloc?Is wdb better than dmalloc?
Dennis Handly
Acclaimed Contributor

Re: Tool for memory leak detection

>How about dmalloc? Is wdb better than dmalloc?

It is much easier to use.
divbabi
Occasional Contributor

Re: Tool for memory leak detection

Is MEMCHECK available for hp-ux?
Laurent Menase
Honored Contributor

Re: Tool for memory leak detection

memcheck looks like to be working on hpux 11.11/11.23 hppa 2.0 not itanium.

look at wdb it works well.
Ph Vouters
Valued Contributor

Re: Tool for memory leak detection

If for HP-UX IA64 and if it suits your needs, have a look to http://vouters.dyndns.org/tima/Linux-OpenVMS-HP-UX-IA64-Displaying_memory_leaks.html The PA-RISC version is currently being worked upon.

 

Philippe

Ph Vouters
Valued Contributor

Re: Tool for memory leak detection

If for HP-UX PA-RISC, the short answer is to recompile all your codes using GNU gcc/g++ or use HP cc/aCC + wdb. The long answer is as long as HP won't document the changes it has brought and brings to GNU gdb, there is very little chance that addr2line from GNU bintuils will ever support the HP cc/aCC compilers (both on PA-RISC and IA64).

Dennis Handly
Acclaimed Contributor

Re: Tool for memory leak detection

>as long as HP won't document the changes it has brought and brings to GNU gdb

 

This is opensource, you can download the sources and see the changes.

Ph Vouters
Valued Contributor

Re: Tool for memory leak detection

Dennis,

 

The changes HP brought to GNU gdb are not licenced FSF. Hence they can't be freely incorporated into GNU gdb and as a consequence into GNU binutils. So as long as these changes are not officially published, the binutils tools won't work with the HP/HP-UX compilers (both IA64 and PA-RISC).

 

For my LeakTracer code, as long as GNU binutils addr2line doesn't work with the HP cc/aCC compilers, there is no chance HP-UX/PA-RISC will ever be supported.

 

Regards,

Philippe