llvm-project/compiler-rt/lib/sanitizer_common/tests
Kuba Mracek 3eb98a1318 [sanitizer] Track architecture and UUID of modules in LoadedModule
When we enumerate loaded modules, we only track the module name and base address, which then has several problems on macOS. Dylibs and executables often have several architecture slices and not storing which architecture/UUID is actually loaded creates problems with symbolication: A file path + offset isn't enough to correctly symbolicate, since the offset can be valid in multiple slices. This is especially common for Haswell+ X86_64 machines, where x86_64h slices are preferred, but if one is not available, a regular x86_64 is loaded instead. But the same issue exists for i386 vs. x86_64 as well.

This patch adds tracking of arch and UUID for each LoadedModule. At this point, this information isn't used in reports, but this is the first step. The goal is to correctly identify which slice is loaded in symbolication, and also to output this information in reports so that we can tell which exact slices were loaded in post-mortem analysis.

Differential Revision: https://reviews.llvm.org/D26632

llvm-svn: 288537
2016-12-02 21:27:14 +00:00
..
CMakeLists.txt [sanitizers] Set Darwin specific linker and compiler flags for all tests 2016-10-26 23:23:38 +00:00
malloc_stress_transfer_test.cc [sanitizer] adding a threaded performance stress test for malloc (useful for manual analysis of malloc performance) 2016-08-23 21:12:04 +00:00
sanitizer_allocator_test.cc Return memory to OS right after free (not in the async thread). 2016-11-29 00:22:50 +00:00
sanitizer_allocator_testlib.cc [sanitizer] enable random shuffling the memory chunks inside the allocator, under a flag. Set this flag for the scudo allocator, add a test. 2016-08-26 00:06:03 +00:00
sanitizer_atomic_test.cc asan: fix atomic operations on ARM 2014-01-22 14:13:37 +00:00
sanitizer_bitvector_test.cc [sanitizer] implement node removal in Deadlock graph 2014-02-17 11:21:52 +00:00
sanitizer_bvgraph_test.cc [sanitizer] speed up the bitvector-based deadlock detector by ~15% (iterate over the currently held locks using the array, not the bitvector. Bitvector is not the best data structure to iterate over) 2014-03-31 07:23:50 +00:00
sanitizer_common_test.cc rename InternalBinarySearch to InternalLowerBound 2016-11-18 20:48:52 +00:00
sanitizer_deadlock_detector_test.cc Remove TSAN_DEBUG in favor of SANITIZER_DEBUG. 2015-01-03 04:29:12 +00:00
sanitizer_flags_test.cc [compiler-rt] Fix broken (flaky) unittests based on FlagParser. 2016-06-30 15:11:13 +00:00
sanitizer_format_interceptor_test.cc [Sanitizer tests] Fix most of the build problems on Windows 2014-05-13 12:02:53 +00:00
sanitizer_ioctl_test.cc [Compiler-rt] Fix ioctl codes for MIPS in sanitizer_ioctl_test 2016-03-11 05:57:20 +00:00
sanitizer_libc_test.cc [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
sanitizer_linux_test.cc Fixed non-NULL terminating array bug in SanitizerCommon.StartSubprocessTest that caused them to fail sometimes and act flaky. 2016-02-15 05:11:51 +00:00
sanitizer_list_test.cc
sanitizer_mutex_test.cc [Sanitizer tests] Fix most of the build problems on Windows 2014-05-13 12:02:53 +00:00
sanitizer_nolibc_test.cc
sanitizer_nolibc_test_main.cc [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
sanitizer_posix_test.cc [compiler-rt] Fix TLS resource leaking in unittest 2016-06-30 19:56:14 +00:00
sanitizer_printf_test.cc [compiler-rt] Fix Sanitizer-common Unittests on win64 2016-06-29 21:57:58 +00:00
sanitizer_procmaps_test.cc [sanitizer] Track architecture and UUID of modules in LoadedModule 2016-12-02 21:27:14 +00:00
sanitizer_pthread_wrappers.h [sanitizers] Allocate 12MB for stack instead of 134MB 2016-07-12 20:10:28 +00:00
sanitizer_stackdepot_test.cc Change StackDepot interface to use StackTrace more extensively 2014-10-26 06:23:07 +00:00
sanitizer_stacktrace_printer_test.cc [sanitizer_common] Added VS-style output for source locations 2015-06-04 01:20:06 +00:00
sanitizer_stacktrace_test.cc [sanitizer] Stop unwinding the stack when a close-to-zero PC is found 2016-06-27 15:32:18 +00:00
sanitizer_stoptheworld_test.cc asan: fix signal handling during stoptheworld 2015-03-02 17:36:02 +00:00
sanitizer_stoptheworld_testlib.cc
sanitizer_suppressions_test.cc Unit test the CRLF change to suppression parsing 2015-08-27 18:05:33 +00:00
sanitizer_symbolizer_test.cc XFAIL one sanitizer symbolizer test for FreeBSD 2016-07-31 19:27:46 +00:00
sanitizer_test_config.h [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of gtest.h conditional 2014-05-13 13:25:12 +00:00
sanitizer_test_main.cc [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
sanitizer_test_utils.h [Sanitizers] Intercept snprintf_l() on FreeBSD 2014-12-22 12:29:40 +00:00
sanitizer_thread_registry_test.cc [compiler-rt] Reset global variables in ThreadRegistryThreadedTest 2016-06-30 14:37:26 +00:00
standalone_malloc_test.cc