Re: Enabling AddressSanitizer from Xcode
Re: Enabling AddressSanitizer from Xcode
- Subject: Re: Enabling AddressSanitizer from Xcode
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 15 Mar 2013 01:37:14 +0100
Le 14 mars 2013 à 23:50, Jens Alfke < email@hidden> a écrit : On Mar 14, 2013, at 1:35 PM, Sean McBride < email@hidden> wrote: Yes, they are great. I've been running them for a few months now, slowly fixing the hundreds of bugs they have found in my code and open source code I use.
I’ve used valgrind for similar purposes in the past — it’s great at detecting illegal memory accesses (even reading one byte past the end of an array, or reading any memory location that hasn’t been written to yet.) It’s been long enough that I don’t remember offhand how to set it up, but it was pretty straightforward.
Does the Address Sanitizer go beyond what valgrind does?
I don't think asan goes beyond what valgrind does, but it has a far smaller impact on runtime performances (2x penalty vs 20x for valgrind according to: http://llvm.org/devmtg/2012-11/Serebryany_TSan-MSan.pdf ).
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden