Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: valgrind for Darwin or equivalent?



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >valgrind for Darwin or equivalent? (From: email@hidden (Jack Howarth))



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.