[clang] [clang-repl] Mark global-dtor.cpp and value-print-temporaries.cpp unsupported under ASan (PR #230870)
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 10 16:10:07 PDT 2026
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/230870
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
>From a02a03594cccb42cb96af148ee94fd32f65163ae Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Sat, 10 Oct 2026 16:09:55 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
---
clang/test/Interpreter/global-dtor.cpp | 3 +++
clang/test/Interpreter/value-print-temporaries.cpp | 3 +++
2 files changed, 6 insertions(+)
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; }
More information about the cfe-commits
mailing list