[compiler-rt] 20e4c7a - [test][asan] Attempt to collect info about Darwin failures
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 18:11:45 PDT 2023
Author: Vitaly Buka
Date: 2023-08-15T18:11:33-07:00
New Revision: 20e4c7af7864b18145cb21783e216291e8585ba3
URL: https://github.com/llvm/llvm-project/commit/20e4c7af7864b18145cb21783e216291e8585ba3
DIFF: https://github.com/llvm/llvm-project/commit/20e4c7af7864b18145cb21783e216291e8585ba3.diff
LOG: [test][asan] Attempt to collect info about Darwin failures
Watching https://green.lab.llvm.org/green/job/clang-stage1-RA/
Added:
Modified:
compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp b/compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp
index a4646cbf6edacc..86f9458ccc7bce 100644
--- a/compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/fake_stack_gc.cpp
@@ -6,9 +6,6 @@
// FIXME: Investigate.
// UNSUPPORTED: android
-// FIXME: Fails on Darwin
-// UNSUPPORTED: darwin
-
#include <algorithm>
#include <assert.h>
#include <csignal>
@@ -77,15 +74,15 @@ int main(void) {
if ((uintptr_t)main_stack > (uintptr_t)alt_stack)
std::swap(alt_stack, main_stack);
- pthread_attr_t attr;
- assert(pthread_attr_init(&attr) == 0);
- assert(pthread_attr_setstack(&attr, main_stack, kStackSize) == 0);
-
fprintf(stderr, "main_stack: %p-%p\n", main_stack,
(char *)main_stack + kStackSize);
fprintf(stderr, "alt_stack: %p-%p\n", alt_stack,
(char *)alt_stack + kStackSize);
+ pthread_attr_t attr;
+ assert(pthread_attr_init(&attr) == 0);
+ assert(pthread_attr_setstack(&attr, main_stack, kStackSize) == 0);
+
pthread_t tid;
assert(pthread_create(&tid, &attr, Thread, alt_stack) == 0);
More information about the llvm-commits
mailing list