You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mfaverge edited this page Feb 23, 2016
·
1 revision
This is absolutely not a replacement for the regular usage of a tool such as Valgrind, but it does provide somehow similar benefits, with a significant lesser cost. Welcome in your tools repertoire, the widely acclaimed "Address Sanitizer", a Google project hosted at Code.Google
The integration in PaRSEC is quite straightforward, simply adding "-fsanitize=address -O1 -fno-omit-frame-pointer" to your different CFLAGS (C and CXX at this point), and using a compatible compiler (clang > 3.0) should be enough. Once, everything compiled with the flags run a quick ctest to validate the code.
Any output matching the following pattern "==[0-9]+==ERROR: AddressSanitizer:" is a bad sign and should be acted upon immediately.