Skip to content

Commit

Permalink
Disable stack overflow handler tests on iOS-like platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed May 28, 2024
1 parent 893db81 commit 9753338
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions std/src/sys/pal/unix/stack_overflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,14 @@ mod imp {
}
}

// This is intentionally not enabled on iOS/tvOS/watchOS/visionOS, as it uses
// several symbols that might lead to rejections from the App Store, namely
// `sigaction`, `sigaltstack`, `sysctlbyname`, `mmap`, `munmap` and `mprotect`.
//
// This might be overly cautious, though it is also what Swift does (and they
// usually have fewer qualms about forwards compatibility, since the runtime
// is shipped with the OS):
// <https://github.com/apple/swift/blob/swift-5.10-RELEASE/stdlib/public/runtime/CrashHandlerMacOS.cpp>
#[cfg(not(any(
target_os = "linux",
target_os = "freebsd",
Expand Down

0 comments on commit 9753338

Please sign in to comment.