comp.lang.ada
 help / color / mirror / Atom feed
From: xavier grave <xavier.grave@ipno.in2p3.fr>
Subject: Re: Link gnat with "purify" to try to find a memory leak
Date: Mon, 29 Sep 2008 10:32:21 +0200
Date: 2008-09-29T10:32:21+02:00	[thread overview]
Message-ID: <gbq3sn$b6$1@ccpntc8.in2p3.fr> (raw)
In-Reply-To: <0a839a05-adfc-4669-b0b5-47ae3c15b238@s50g2000hsb.googlegroups.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

FJCS_Montecoruto a �crit :
> Hi all,
> 
> A "memory leak" has been detected in one of our Gnat-Ada/GtkAda
> executables. I was directed with others to try to find where exactly
> is it located in our code.
> 
> Is it possible to somehow use "Rational Purify", to link it with our
> Gnat-Ada/GtkAda objects, and so generate some instrumentalized
> executable to run and test it under "Purify" ?.
> 
> If so, is there an "easy way" to be able to do it ?. We have tried,
> but we have had a hard time linking the objects.
> 
> (I am also aware we have  "gnatmem" available to confirm the leakage,
> which we did. But now we would need to isolate the problem more
> precisely, in the middle of a big lot of source code lines ).
> 
> Any help appreciated,
> Thank you,
> FJCS

Hi,

I'm not used to purify, but I had a similar problem and I solved it
using valgrind.

My command looks like this :
valgrind --tool=memcheck --leak-check=full --show-reachable=yes -v
executable_name

or the same plus : --log-socket=127.0.0.1:12345
if you want to use valgrind-listener

Hope it will help, xavier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjgkpMACgkQVIZi0A5BZF7M/gCfeXdz88nSVHaTjb/guwCXBA6G
260AnjKK1gOwLoox+/FHvm7z84DmJhev
=x8Gg
-----END PGP SIGNATURE-----



      parent reply	other threads:[~2008-09-29  8:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-28 22:43 Link gnat with "purify" to try to find a memory leak FJCS_Montecoruto
2008-09-29  0:32 ` Jeffrey R. Carter
2008-09-29  7:36 ` Dmitry A. Kazakov
2008-09-29  8:32 ` xavier grave [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox