Operating System - HP-UX
1830171 Members
5432 Online
109999 Solutions
New Discussion

Memory leak detection tool needed for C/C++ programs on HP

 
madhavabk
Regular Advisor

Memory leak detection tool needed for C/C++ programs on HP

Hi all,

I am in search of memory leak detection tool on HP. I have not found any simple tool to do this on HP.

Can any one suggest me the URL to down load the tool
6 REPLIES 6
Arunvijai_4
Honored Contributor

Re: Memory leak detection tool needed for C/C++ programs on HP

Hi,

You can try Parasoft Insure++: http://h21007.www2.hp.com/dspp/mop/mop_partner_product_detail_IDX/1,1331,221,00.html

Also, check this thread http://h21007.www2.hp.com/dspp/ml/showArchiveMessage/1,,4!04!06!0030,00.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Steven E. Protter
Exalted Contributor

Re: Memory leak detection tool needed for C/C++ programs on HP

Shalom,

On your application CD is a 60 day trial to Glance/Glance Plus.

This will provide you the ability to use a GUI to monitor the process or processes involved.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Nikitka
Honored Contributor

Re: Memory leak detection tool needed for C/C++ programs on HP

Hi,

I recommend PURIFY - very good, but that is not freeware:

http://www-306.ibm.com/software/awdtools/purify/unix/

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
spex
Honored Contributor

Re: Memory leak detection tool needed for C/C++ programs on HP

Hi madhavabk,

Here are a few freebies from the Porting and Archive Centre for HP-UX:

mpr-2.2
=======
http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/mpr-2.2/
Mpr finds malloc and realloc memory leaks and memory allocation statistics by using a simple, brute force strategy, it logs all malloc and free calls to a file and post processes this log file when the program terminates.

dmalloc-5.4.2
=============
http://hpux.connect.org.uk/hppd/hpux/Users/dmalloc-5.4.2/
The debug memory allocation or dmalloc library has been designed as a drop in replacement for the system's malloc, realloc, alloc, free and other memory management routines while providing powerful debugging facilities configurable at runtime. These facilities include such things as memory-leak tracking, fence-post write detection, file and line number reporting, and general logging of statistics.

I've never tried either of these, so I can't comment on how well they work.

PCS
madhavabk
Regular Advisor

Re: Memory leak detection tool needed for C/C++ programs on HP

Hi spex,

When i am using sources to build it is not building mpr binaries.

So i am not able to use souce downlod to build binaries and use them.

And i downloded depot but installation of this depot will install only doc directory.

Can you extend help by telling what all i should for HP.
Steve Huston
New Member

Re: Memory leak detection tool needed for C/C++ programs on HP

HP Wildebeest Debugger (WDB) is an HP-supported implementation of the Open Source GNU debugger (GDB). It can detect memory leaks as well as other memory-related errors.

Check www.hp.com/go/wdb/ - you may need access to DSPP to get it - I'm not sure.