RE: [ROOT] Finding Memory Leaks w/ memprobe

From: Philippe Canal (pcanal@fnal.gov)
Date: Mon Sep 23 2002 - 11:45:17 MEST


> 3. Is there a way to compile with ACLiC that includes the debugging
symbols?

Use gSystem::GetMakeSharedLib and gSystem::SetMakeSharedLib to add the '-g'
flags.

> 2. Is there any documentation on memprobe?

http://www-hades.gsi.de/~dbertini/mem.html (from  new/src/MemCheck.cxx)

> 1. Can memprobe take ACLiC output .so files as executables?

It should.

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Dan Krop
Sent: Sunday, September 22, 2002 7:11 PM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Finding Memory Leaks w/ memprobe


Hi,
	I have a program compiled using ACLiC which probably has a memory leak.  I
have tried to run memprobe with the .so file as the executable, but the
output from memprobe is not helping much.  It tells me that I have a certain
number of leaked allocations, but does not give any suggestions as to where
they come from.  Also, the file "memcheckdesc.out" has the following lines:

(no debugging symbols found)...(gdb)
Starting program: /home/dkrop/radphi/root_files/PWA/jobPSI_C.so

Program received signal SIGSEGV, Segmentation fault.
0x00000001 in ?? ()

which indicates to me that memprobe uses gdb but that the script was
compiled
w/o a debug flag.  So, I have a few questions:

1. Can memprobe take ACLiC output .so files as executables?
2. Is there any documentation on memprobe?
3. Is there a way to compile with ACLiC that includes the debugging symbols?

						Thanks in advance,
									Dan



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:10 MET