| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[asan][test] Additional test requiring weak symbol for dyld64. Extension of D127929 rdar://80997227 Differential Revision: https://reviews.llvm.org/D130499 | 3 年前 | |
[Darwin] Limit parallelism for sanitizer tests that use shadow memory on AS On Darwin, we want to limit the parallelism during test execution for sanitizer tests that use shadow memory. The reason is explained by this existing comment: > Only run up to 3 processes that require shadow memory simultaneously > on 64-bit Darwin. Using more scales badly and hogs the system due to > inefficient handling of large mmap'd regions (terabytes) by the > kernel. Previously we detected 3 cases: * on-device: limit to 1 process * 64-bit: macOS & simulators, limit to 3 processes * others (32-bit): no limitation We checked for the 64-bit case like this: if arch in ['x86_64', 'x86_64h'] which misses macOS running on AS. Additionally, we don't care about 32-bit anymore, so I've simplified this to 2 cases: on-device and everything else. Differential Revision: https://reviews.llvm.org/D122751 | 4 年前 | |
[test] Fix asan dynamic unit tests with per-target runtime dirs When LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on Asan-i386-calls-Dynamic-Test and Asan-i386-inline-Dynamic-Test fail to run on a x86_64 host. This is because asan's unit test lit files are configured once, rather than per target arch as with the non-unit tests. LD_LIBRARY_PATH ends up incorrect, and the tests try linking against the x86_64 runtime which fails. This changes the unit test CMake machinery to configure the default and dynamic unit tests once per target arch, similar to the other asan tests. Then the fix from https://reviews.llvm.org/D108859 is adapted to the unit test Lit files with some modifications. Fixes PR52158. Differential Revision: https://reviews.llvm.org/D111756 | 4 年前 | |
[Sanitizer] Disable LSan when testing on iOS simulators LSan ( ASAN_OPTIONS=detect_leaks=1) is supported on macOS, but disabled by default on Darwin (SANITIZER_MAC): COMMON_FLAG(bool, detect_leaks, !SANITIZER_MAC, "Enable memory leak detection.") We enable it here for ASan tests to prevent regressions (per comment). However, LSan is not supported for the iOS simulator and the tests fail when it is enabled. Make this "Is macOS?" check more precise since the current one (Darwin && x86_64) has two issues: * Includes the simulators * Excludes macOS on Apple Silicon This will allow us to (re)enable simulator testing on Green dragon to give open source better feedback about sanitizer changes: https://green.lab.llvm.org rdar://86529234 Differential Revision: https://reviews.llvm.org/D115816 | 4 年前 | |
[sanitizer] Disable fast_unwind_on_malloc as default for arm-linux-gnu ARM thumb/thumb2 frame pointer is inconsistent on GCC and Clang [1] and fast-unwider is also unreliable when mixing arm and thumb code [2]. The fast unwinder on ARM tries to probe and compare the frame-pointer at different stack layout positions and it works reliable only on systems where all the libraries were built in arm mode (either with gcc or clang) or with clang in thmb mode (which uses the same stack frame pointer layout in arm and thumb). However when mixing objects built with different abi modes the fast unwinder is still problematic as shown by the failures on the AddressSanitizer.ThreadStackReuseTest. For these failures, the malloc is called by the loader itself and since it has been built with a thum enabled gcc, the stack frame is not correctly obtained and the suppression rule is not applied (resulting in a leak warning). The check for fast-unwinder-works is also changed: instead of checking f it is explicit enabled in the compiler flags, it now checks if compiler defined thumb pre-processor. This should fix BZ#44158. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92172 [2] https://bugs.llvm.org/show_bug.cgi?id=44158 Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D88958 | 5 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 5 年前 |