-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[ASAN] Disable broken __SANITIZER_DISABLE_CONTAINER_OVERFLOW__ tests on iOS/Android #168821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ASAN] Disable broken __SANITIZER_DISABLE_CONTAINER_OVERFLOW__ tests on iOS/Android #168821
Conversation
|
@llvm/pr-subscribers-compiler-rt-sanitizer Author: Andrew Haberlandt (ndrewh) ChangesThe 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:
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>
|
🐧 Linux x64 Test Results
|
|
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. |
DanBlackwell
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // UNSUPPORTED: ios, android | |
| // XFAIL: * |
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