Skip to content

Conversation

@ndrewh
Copy link
Contributor

@ndrewh ndrewh commented Nov 20, 2025

The tests added by #163468 appear to be broken on iOS (sim) and android. I have no idea if this works on iOS (devices) or not, so I'm just marking UNSUPPORTED rather than XFAIL.

Android: https://lab.llvm.org/buildbot/#/builders/186/builds/14106

@llvmbot
Copy link
Member

llvmbot commented Nov 20, 2025

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Andrew Haberlandt (ndrewh)

Changes

The tests added by #163468 appear to be broken on iOS and android.


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

2 Files Affected:

  • (modified) compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp (+1)
  • (modified) compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp (+2)
diff --git a/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp b/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp
index 680eb252411da..8b1661b990f93 100644
--- a/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp
+++ b/compiler-rt/test/asan/TestCases/disable_container_overflow_checks.cpp
@@ -12,6 +12,7 @@
 // RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ -O %s -o %t-no-overflow
 // RUN: %run %t-no-overflow 2>&1 | FileCheck --check-prefix=CHECK-NOCRASH %s
 //
+// UNSUPPORTED: ios, android
 
 #include <assert.h>
 #include <stdio.h>
diff --git a/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp b/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp
index 07c143609e94d..2ab9ba8083b73 100644
--- a/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp
+++ b/compiler-rt/test/asan/TestCases/stack_container_dynamic_lib.cpp
@@ -19,6 +19,8 @@
 // RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ %s -c -o %t-main.o
 // RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ -o %t %t-main.o %t-object.o %libdl
 // RUN: %run %t 2>&1 | FileCheck --check-prefix=CHECK-NO-CONTAINER-OVERFLOW %s
+//
+// UNSUPPORTED: ios, android
 
 #include <assert.h>
 #include <sanitizer/common_interface_defs.h>

@github-actions
Copy link

github-actions bot commented Nov 20, 2025

🐧 Linux x64 Test Results

  • 5820 tests passed
  • 1323 tests skipped

@DanBlackwell
Copy link
Contributor

These also fail on macOS: https://green.lab.llvm.org/job/llvm.org/job/clang-stage1-cmake-RA-expensive/5755/testReport/. I believe they need to be marked XFAIL for all while awaiting the corresponding change to be made to libcxx.

Copy link
Contributor

@DanBlackwell DanBlackwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these should be XFAIL: * while waiting for libcxx to start including the header file rather than forward declaring. XFAIL gives us insight to when the change lands (as we'll start receiving XPASSes), so I'd prefer over unsupported if possible.

// RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ -O %s -o %t-no-overflow
// RUN: %run %t-no-overflow 2>&1 | FileCheck --check-prefix=CHECK-NOCRASH %s
//
// UNSUPPORTED: ios, android
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// UNSUPPORTED: ios, android
// XFAIL: *

// RUN: %clangxx_asan -D__SANITIZER_DISABLE_CONTAINER_OVERFLOW__ -o %t %t-main.o %t-object.o %libdl
// RUN: %run %t 2>&1 | FileCheck --check-prefix=CHECK-NO-CONTAINER-OVERFLOW %s
//
// UNSUPPORTED: ios, android
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// UNSUPPORTED: ios, android
// XFAIL: *

@ndrewh ndrewh enabled auto-merge (squash) November 20, 2025 17:58
@ndrewh ndrewh merged commit b3d1e92 into llvm:main Nov 20, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants