Skip to content

Commit 4bc783b

Browse files
[ASan] Disable test that sets call stack on Darwin (#170786)
This test fails with the internal shell as we implement ulimit with a python wrapper. This python wrapper fails on recent versions of MacOS to set the stack size limit lower, or even to the current values. More discussion is in python/cpython#78783 towards the bottom (it seems like a new issue should be opened). It does not seem like we lose significant test coverage by disabling this on MacOS as the test running on Linux should catch any major regressions. We can also simply reenable once the issue is fixed (although writing a simple c program with calls setrlimit directly also fails in the smae manner).
1 parent 35c664d commit 4bc783b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/test/asan/TestCases/Posix/deep_call_stack.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// Check that UAR mode can handle very deep recursion.
22
// REQUIRES: shell
3+
// TODO(boomanaiden154): This test currently fails with the internal
4+
// shell because python is not able to set RLIMIT_STACK. We should
5+
// reenable this when the behavior is fixed.
6+
// UNSUPPORTED: system-darwin
37
// RUN: %clangxx_asan -O2 %s -o %t
48
// RUN: ulimit -s 4096
59
// RUN: %env_asan_opts=detect_stack_use_after_return=1 %run %t 2>&1 | FileCheck %s

0 commit comments

Comments
 (0)