llvm-project/compiler-rt/lib/sanitizer_common
Alexey Samsonov 9ff4598225 [ASan] Do not rely on malloc context in allocator reports.
Invoke a fatal stack trace unwinder when ASan prints allocator-relevant
error reports (double-free, alloc-dealloc-mismatch, invalid-free).
Thus we'll be able to print complete stack trace even if allocation/free
stacks are not stored (malloc_context_size=0).

Based on the patch by Yuri Gribov!

llvm-svn: 194579
2013-11-13 14:46:58 +00:00
..
scripts [Sanitizer] Add pthread_attr_getaffinity_np to the list of versioned functions 2013-10-26 12:54:03 +00:00
tests [ASan] Do not rely on malloc context in allocator reports. 2013-11-13 14:46:58 +00:00
CMakeLists.txt [ASan] Add CMake configs for libclang_rt.asan_iossim_dynamic.dylib 2013-11-07 10:08:19 +00:00
Makefile.mk
sanitizer_allocator.cc [sanitizer] make the allocator crash instead of returning 0 on huge size (controlled by the allocator_may_return_null flag) 2013-09-06 09:25:11 +00:00
sanitizer_allocator.h Rename SpinMutex::AssertHeld to CheckLocked, for consistency with BlockingMutex. 2013-10-25 23:03:21 +00:00
sanitizer_allocator_internal.h [sanitizer] Use raw check in internal allocator to prevent self-deadlocks. Try to fix Windows build. 2013-05-29 10:41:53 +00:00
sanitizer_atomic.h [ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings 2012-07-02 06:48:10 +00:00
sanitizer_atomic_clang.h tsan: do not try to use builtin atomic operations 2013-09-21 04:59:02 +00:00
sanitizer_atomic_msvc.h [ASan] Rename a atomic_compare_exchange_strong parameter to avoid a compiler warning 2013-05-23 11:40:51 +00:00
sanitizer_common.cc [Sanitizer] Fix Go build 2013-11-01 18:00:22 +00:00
sanitizer_common.h [Sanitizer] Unify summary reporting across all sanitizers. 2013-11-01 17:02:14 +00:00
sanitizer_common_interceptors.inc [sanitizer] Avoid needless use of stringification (#symver) in INTERCEPT_FUNCTION_VER. 2013-11-12 10:21:52 +00:00
sanitizer_common_interceptors_ioctl.inc Revert r188369 (and r188455) which breaks the build on at least some 2013-08-18 08:47:06 +00:00
sanitizer_common_interceptors_scanf.inc [sanitizer] Fix handling of %n in scanf interceptor. 2013-08-09 12:58:35 +00:00
sanitizer_common_libcdep.cc [lsan] Colorize LSan reports. 2013-09-03 13:31:03 +00:00
sanitizer_common_syscalls.inc [sanitizer] Enhance io_submti syscall handler. 2013-11-01 01:20:39 +00:00
sanitizer_flags.cc [Sanitizer] Specify a default value for each common runtime flag 2013-11-12 13:59:08 +00:00
sanitizer_flags.h [Sanitizer] Specify a default value for each common runtime flag 2013-11-12 13:59:08 +00:00
sanitizer_internal_defs.h Introduce an operator new for LowLevelAllocator, and convert most users to it. 2013-10-24 06:23:39 +00:00
sanitizer_lfstack.h [Sanitizer] update style checker script and fix namespace style warnings 2013-01-30 07:45:58 +00:00
sanitizer_libc.cc Add internal_strchrnul function 2013-09-03 13:09:28 +00:00
sanitizer_libc.h Add internal_strchrnul function 2013-09-03 13:09:28 +00:00
sanitizer_libignore.cc tsan: refactor libignore implementation 2013-10-16 11:28:12 +00:00
sanitizer_libignore.h tsan: resolve symlinks for called_from_lib suppressions 2013-10-15 11:34:59 +00:00
sanitizer_linux.cc [asan] attempting to fix x32 build (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59018) 2013-11-06 17:47:39 +00:00
sanitizer_linux.h tsan: use verbosity flag in sanitizer_common code directly 2013-10-15 14:12:26 +00:00
sanitizer_linux_libcdep.cc [Sanitizers] Share some stack walking code between Windows and Linux 2013-11-09 13:59:12 +00:00
sanitizer_list.h asan/tsan: fix bug in list implementation 2013-01-11 10:15:13 +00:00
sanitizer_mac.cc [ASan] Don't call __asan_init() from certain interceptors on Darwin. 2013-11-13 13:34:53 +00:00
sanitizer_mutex.h Rename SpinMutex::AssertHeld to CheckLocked, for consistency with BlockingMutex. 2013-10-25 23:03:21 +00:00
sanitizer_placement_new.h Introduce an operator new for LowLevelAllocator, and convert most users to it. 2013-10-24 06:23:39 +00:00
sanitizer_platform.h [libsanitizer] Define SANITIZER_IOS when building for iOS or iOS simulator. 2013-10-31 17:38:18 +00:00
sanitizer_platform_interceptors.h [sanitizer] Intercept strptime. 2013-11-02 01:01:35 +00:00
sanitizer_platform_limits_linux.cc [asan] attempting to fix x32 build (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59018) 2013-11-06 17:47:39 +00:00
sanitizer_platform_limits_posix.cc [asan] attempting to fix x32 build (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59018) 2013-11-06 17:47:39 +00:00
sanitizer_platform_limits_posix.h [asan] attempting to fix x32 build (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59018) 2013-11-06 17:47:39 +00:00
sanitizer_posix.cc tsan: allow to obtain code range for a particular module 2013-09-21 21:41:08 +00:00
sanitizer_posix_libcdep.cc [Sanitizer] Call Windows unwinder 'slow' and share StackTrace::Unwind across all platforms. No functionality change. 2013-11-07 06:33:06 +00:00
sanitizer_printf.cc tsan: allow to override OnPrint() callback in Go runtime 2013-10-14 09:52:40 +00:00
sanitizer_procmaps.h tsan: allow to obtain code range for a particular module 2013-09-21 21:41:08 +00:00
sanitizer_quarantine.h [asan] count the size of QuarantineBatch in the total Quarantine size; make QuarantineBatch fit into 8K, fix a MSVC compile warning 2013-10-21 08:36:10 +00:00
sanitizer_report_decorator.h [ASan/RTL] Disable colored reporting on Windows 2013-08-16 11:26:26 +00:00
sanitizer_stackdepot.cc [sanitizer] Add a fast version of StackDepotGet() for use in LSan. 2013-08-26 13:24:43 +00:00
sanitizer_stackdepot.h [sanitizer] fix code style 2013-08-28 11:26:09 +00:00
sanitizer_stacktrace.cc [Sanitizers] Share some stack walking code between Windows and Linux 2013-11-09 13:59:12 +00:00
sanitizer_stacktrace.h [ASan] Do not rely on malloc context in allocator reports. 2013-11-13 14:46:58 +00:00
sanitizer_stacktrace_libcdep.cc [ASan] Do not rely on malloc context in allocator reports. 2013-11-13 14:46:58 +00:00
sanitizer_stoptheworld.h [Sanitizer] Rename InternalVector to InternalMmapVector 2013-06-14 09:59:40 +00:00
sanitizer_stoptheworld_linux_libcdep.cc tsan: be silent if verbosity=0 2013-10-15 15:35:56 +00:00
sanitizer_suppressions.cc tsan: ignore interceptors coming from specified libraries 2013-10-03 13:37:17 +00:00
sanitizer_suppressions.h tsan: ignore interceptors coming from specified libraries 2013-10-03 13:37:17 +00:00
sanitizer_symbolizer.cc [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan. 2013-10-31 21:44:07 +00:00
sanitizer_symbolizer.h [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan. 2013-10-31 21:44:07 +00:00
sanitizer_symbolizer_libcdep.cc [Sanitizer] Use SpinMutex for Symbolizer initialization (per dvyukov's suggestion) 2013-10-30 17:05:37 +00:00
sanitizer_symbolizer_posix_libcdep.cc [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan. 2013-10-31 21:44:07 +00:00
sanitizer_symbolizer_win.cc Overhaul the symbolizer interface. 2013-10-25 23:03:29 +00:00
sanitizer_syscall_generic.inc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_syscall_linux_x86_64.inc asan/msan/tsan: fix broken linux syscalls 2013-10-03 16:53:50 +00:00
sanitizer_thread_registry.cc tsan/asan: support pthread_setname_np to set thread names 2013-10-29 10:30:39 +00:00
sanitizer_thread_registry.h tsan/asan: support pthread_setname_np to set thread names 2013-10-29 10:30:39 +00:00
sanitizer_win.cc Remove a FIXME now that I can't reproduce the problem 2013-11-09 15:01:23 +00:00