[clang] [compiler-rt] [rtsan] Enable RealtimeSanitizer for FreeBSD (PR #125389)
David CARLIER via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 5 13:06:01 PST 2025
================
@@ -43,6 +44,21 @@ static __rtsan::Context &GetContextForThisThreadImpl() {
return *current_thread_context;
}
+#else
+
+// On FreeBSD, pthread api cannot be used as calloc is called under the hood
+// at library initialization time.
----------------
devnexen wrote:
I ll try to see what I can do later this week. basically even just compiling a binary doing nothing I get from lldb a recursive call on libpthread initialisation -> calloc, rinse and repeat ... then eventually crash.
https://github.com/llvm/llvm-project/pull/125389
More information about the cfe-commits
mailing list