The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Looking for memory leaks freeware tools umen UNIX and Linux Applications 3 01-04-2008 11:39 PM
Find memory leaks shell script ??? nano2 Shell Programming and Scripting 5 06-20-2007 01:46 PM
strange problem with memory leaks shriashishpatil UNIX for Advanced & Expert Users 1 08-10-2006 08:47 AM
Memory leaks on HP-UX 11i gimhan90 HP-UX 1 09-22-2005 11:41 AM
memory leaks jyotipg UNIX for Advanced & Expert Users 3 10-18-2002 02:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-15-2005
sarwan sarwan is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 54
Tool for finding memory leaks

hi, i am a c++ programmer working on linux(redhat linux8.0) environment, i need to find out the memory leaks, so far i didn't used any tools, so what are the tools are available, and whic one is good to use. plz provide with a small example.
  #2 (permalink)  
Old 11-15-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,763
Electric Fence and Valgrind are two Open Source tools that work very well, especially since they both find stuff the other one overlooks.

This doesn't involve coding - you compile
Code:
gcc -g -Wall myfile.c -lefence -o myfile
to bring in electric fence.
then optinally run the code "under"
Code:
valgrind filename
You have to interpret where your leaks originate.

http://www.llnl.gov/icc/lc/DEG/valgrind/

http://www.parl.clemson.edu/~wjones/...gging/pres.pdf
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0