forked from OSchip/llvm-project
aa05110a17
Currently ASan reports many kinds of errors, and the code that actually prints error messages can be found inside allocator, OS-specific files, interceptors code etc. An example of maintenance troubles this situation causes: There is currently an ASan interface function that registers callback which should take the char buffer with error report printed by ASan. This function is now broken, as one has to insert callback calls to all the places in ASan code where the error reports are printed, surprisingly it is not only "__asan_report_error" function... llvm-svn: 161568 |
||
---|---|---|
.. | ||
lit_tests | ||
output_tests | ||
scripts | ||
tests | ||
CMakeLists.txt | ||
Makefile.mk | ||
Makefile.old | ||
README.txt | ||
asan_allocator.cc | ||
asan_allocator.h | ||
asan_flags.h | ||
asan_globals.cc | ||
asan_interceptors.cc | ||
asan_interceptors.h | ||
asan_interface.h | ||
asan_internal.h | ||
asan_linux.cc | ||
asan_lock.h | ||
asan_mac.cc | ||
asan_mac.h | ||
asan_malloc_linux.cc | ||
asan_malloc_mac.cc | ||
asan_malloc_win.cc | ||
asan_mapping.h | ||
asan_new_delete.cc | ||
asan_poisoning.cc | ||
asan_posix.cc | ||
asan_printf.cc | ||
asan_report.cc | ||
asan_report.h | ||
asan_rtl.cc | ||
asan_stack.cc | ||
asan_stack.h | ||
asan_stats.cc | ||
asan_stats.h | ||
asan_thread.cc | ||
asan_thread.h | ||
asan_thread_registry.cc | ||
asan_thread_registry.h | ||
asan_win.cc |
README.txt
AddressSanitizer RT ================================ This directory contains sources of the AddressSanitizer (asan) run-time library. We are in the process of integrating AddressSanitizer with LLVM, stay tuned. Directory structre: README.txt : This file. Makefile.mk : Currently a stub for a proper makefile. not usable. Makefile.old : Old out-of-tree makefile, the only usable one so far. asan_*.{cc,h} : Sources of the asan run-time lirbary. mach_override/* : Utility to override functions on Darwin (MIT License). scripts/* : Helper scripts. Temporary build instructions (verified on linux): cd lib/asan make -f Makefile.old get_third_party # gets googletest and cpplint make -f Makefile.old test -j 8 CLANG_BUILD=/path/to/Release+Asserts # Optional: # make -f Makefile.old install # installs clang and rt to lib/asan_clang_linux For more info see http://code.google.com/p/address-sanitizer/