- docs at https://code.google.com/p/address-sanitizer/w/list
- to be able to get asan working from node, both node.js and mapnik must be build with
-fsanitize=address
inCXXFLAGS
andLDFLAGS
. If this is not done you'll hit symbol errors on linux and on mac the program just quits silently - to be able to get symbols with clang-3.5 + asan you need to use
./proj 2> log && asan_symbolize-3.5 / < log | c++filt
- asan seems to work on OS X (with source built clang++) but detects more problems (particularly leaks) on linux (with clang=3.5 from llvm apt packages).
- turn on everything except leaks
export ASAN_OPTIONS=check_initialization_order=1:detect_leaks=0:strict_init_order=1:detect_stack_use_after_return=1:detect_odr_violation=0
- suppress node.js leaks with
echo 'leak:node::Buffer' > supp.txt && export LSAN_OPTIONS=suppressions=supp.txt
Last active
August 29, 2015 14:07
-
-
Save springmeyer/9d8cae12076931c68590 to your computer and use it in GitHub Desktop.
asan notes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment