[clang] [compiler-rt] [rtsan] Enable RealtimeSanitizer for FreeBSD (PR #125389)
Chris Apple via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 13:34:17 PST 2025
================
@@ -864,11 +864,18 @@ INTERCEPTOR(void *, pvalloc, size_t size) {
#define RTSAN_MAYBE_INTERCEPT_PVALLOC
#endif
+#if !SANITIZER_FREEBSD
+// enabling this interception on freebsd leads to infinite recursion
+// on pthread lib initialization
----------------
cjappl wrote:
Can you do something like use internal_mmap here if we are initializing? If you check out rtsan.cpp there are three initializing states.
May save us from disabling this on freebsd.
https://github.com/llvm/llvm-project/pull/125389
More information about the llvm-commits
mailing list