[compiler-rt] [tsan][NFCI] Add note that GPU libraries may cause shadow mapping inc… (PR #137835)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 29 09:13:24 PDT 2025


https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/137835

…ompatibility

>From 8650410efca48f89332224f264fbc28778f975c5 Mon Sep 17 00:00:00 2001
From: Thurston Dang <thurston at google.com>
Date: Tue, 29 Apr 2025 16:10:45 +0000
Subject: [PATCH] [tsan][NFCI] Add note that GPU libraries may cause shadow
 mapping incompatibility

---
 compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
index 373acd3d95d01..8c046e244ea39 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
@@ -292,8 +292,12 @@ static void ReExecIfNeeded(bool ignore_heap) {
     } else {
       Printf(
           "FATAL: ThreadSanitizer: memory layout is incompatible, "
-          "even though ASLR is disabled.\n"
-          "Please file a bug.\n");
+          "even though ASLR is disabled.\n");
+      Printf(
+          "FATAL: This error may occur for programs that use GPU libraries.");
+      Printf(
+          "FATAL: If your program does not use GPU libraries, please file a "
+          "TSan bug.\n");
       DumpProcessMap();
       Die();
     }



More information about the llvm-commits mailing list