[clang] [clang-repl] Mark global-dtor.cpp and value-print-temporaries.cpp unsupported under ASan (PR #230870)

via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 10 16:10:38 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Vitaly Buka (vitalybuka)

<details>
<summary>Changes</summary>

These tests are flaky on x86_64 Linux ASan bots with `out of range of Delta32
fixup` JITLink errors, similar to #<!-- -->102858, #<!-- -->135401, and #<!-- -->150242.

This likely happens because `InProcessMemoryManager` maps each incremental
module with a separate `mmap` call, and depending on the address space layout
some allocations appear to end up on opposite sides of ASan's large allocator
reservation (> 2 GiB apart).

Assisted-by: Gemini


---
Full diff: https://github.com/llvm/llvm-project/pull/230870.diff


2 Files Affected:

- (modified) clang/test/Interpreter/global-dtor.cpp (+3) 
- (modified) clang/test/Interpreter/value-print-temporaries.cpp (+3) 


``````````diff
diff --git a/clang/test/Interpreter/global-dtor.cpp b/clang/test/Interpreter/global-dtor.cpp
index 9cb454b06c171..cd148de672ef1 100644
--- a/clang/test/Interpreter/global-dtor.cpp
+++ b/clang/test/Interpreter/global-dtor.cpp
@@ -4,6 +4,9 @@
 //
 // RUN: cat %s | clang-repl | FileCheck %s
 
+// The test is flaky with ASan: https://github.com/llvm/llvm-project/issues/102858
+// UNSUPPORTED: asan
+
 extern "C" int printf(const char *, ...);
 
 struct D { float f = 1.0; D *m = nullptr; D(){} ~D() { printf("D[f=%f, m=0x%llx]\n", f, reinterpret_cast<unsigned long long>(m)); }} d;
diff --git a/clang/test/Interpreter/value-print-temporaries.cpp b/clang/test/Interpreter/value-print-temporaries.cpp
index 331a7f7e274f4..772ce69c00c25 100644
--- a/clang/test/Interpreter/value-print-temporaries.cpp
+++ b/clang/test/Interpreter/value-print-temporaries.cpp
@@ -3,6 +3,9 @@
 //
 // RUN: cat %s | clang-repl | FileCheck %s
 
+// The test is flaky with ASan: https://github.com/llvm/llvm-project/issues/102858
+// UNSUPPORTED: asan
+
 int Dtors = 0;
 struct S { ~S() { ++Dtors; } };
 int f(S) { return 42; }

``````````

</details>


https://github.com/llvm/llvm-project/pull/230870


More information about the cfe-commits mailing list