4 Commits

Author SHA1 Message Date
Vitaly Buka
a8cd84d328 [test][asan] Fix test on MacOS 12+
Reviewed By: rsundahl

Differential Revision: https://reviews.llvm.org/D145810
2023-03-12 19:58:49 -07:00
Dave MacLachlan
71ab6eab72 [test] Remove fprintf argument after D144830
Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D145461
2023-03-07 21:40:47 -08:00
Vitaly Buka
2f302ef6f8 [sanitizer] Disabled test for DLLs
Similar to compiler-rt/test/asan/TestCases/default_options.cpp
2023-03-06 19:32:57 -08:00
Dave MacLachlan
28dc3aa7bc [asan darwin] Allow clients to implement __sanitizer_report_error_summary
`__sanitizer_report_error_summary` is declared `llvm/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_interface_internal.h` as being able to be overridden by the client. On darwin the sanitizer runtime uses this symbol to find references to the sanitizer libraries, so if you override it you end up with the error `=ERROR: Interceptors are not working. This may be because AddressSanitizer is loaded too late (e.g. via dlopen). Please launch the executable with:` at launch time.

Replace uses of `__sanitizer_report_error_summary` for finding the sanitizer libraries with using the address of a local function.

Reviewed By: yln, vitalybuka

Differential Revision: https://reviews.llvm.org/D144830
2023-03-06 16:37:45 -08:00