Re: valgrind for Darwin or equivalent?
Re: valgrind for Darwin or equivalent?
- Subject: Re: valgrind for Darwin or equivalent?
- From: Jason Townsend <email@hidden>
- Date: Mon, 1 Aug 2005 11:10:58 -0700
On Aug 1, 2005, at 7:15 AM, Jack Howarth wrote:
I am trying to debug a heap corruption problem in unix program
compiled
with gfortran and Apple's gcc and g++ on MacOS X 10.4.2. I am told
by the gnu
gcc developers that valgrind is the best tool for this but I can
only find
a ppclinux version. Is there a port available for Darwin for
valgrind? If not
is there an equivalent tool for Apple that can be used from the
command line?
Thanks in advance for any information.
You may want to try libgmalloc (also known as GuardMalloc). The
libgmalloc man page has information on it.
Also, you can set some environment variables when using the regular
malloc such as MallocScribble and MallocCheckHeapStart/
MallocCheckHeapEvery. See the malloc man page for more on this.
-Jason
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden