I currently work on a product which has 200+ plugins and the code is written in C++. This application works on both Mac and Windows. I have been using Guard malloc to find memory related issues in this product. Guard malloc has been very useful and it has found several issues in the codebase, however, it also misses many issues. I have evaluated valgrind but that makes the application so slow that it is practically useless for our purpose.
I was very much interested in evaluating address sanitizer. The problem is that I am unable to use it.
Earlier versions of Xcode used to support the flag -faddress-sanitizer, however even a basic cocoa application built using this used to crash. In the newer versions of xcode, -faddress-sanitizer gives unsupported flag error. The newer way of specifying the flag -faddress=sanitize has apparently no effect.
This is very discouraging for me that I am unable to use asan even with a very simple cocoa application on mac.
Do I need to build clang myself? Is there any hope that I will be able to use asan on Mac.
I have gone through the following link:
Thanks,
Amit