Skip to content

[release/9.0] Disable Datagram_UDP_AccessDenied_Throws_DoesNotBind on all macOS/MacCatalyst#125568

Merged
lewing merged 1 commit intorelease/9.0from
disable-sendto-accessdenied-osx
Mar 15, 2026
Merged

[release/9.0] Disable Datagram_UDP_AccessDenied_Throws_DoesNotBind on all macOS/MacCatalyst#125568
lewing merged 1 commit intorelease/9.0from
disable-sendto-accessdenied-osx

Conversation

@lewing
Copy link
Member

@lewing lewing commented Mar 15, 2026

Summary

macOS 15+ returns EHOSTUNREACH instead of EACCES for UDP broadcast without SO_BROADCAST due to Apple's Local Network privacy feature. The test expects SocketError.AccessDenied but gets SocketError.HostUnreachable.

The existing ActiveIssue (from #113313) only disabled on MacCatalyst x64. The failure affects all macOS 15+ platforms — confirmed on osx.15.amd64 in both coreclr and Mono legs in #125564.

Change

Broadens the ActiveIssue from:

[ActiveIssue("...", typeof(PlatformDetection), nameof(PlatformDetection.IsMacCatalyst), nameof(PlatformDetection.IsX64Process))]

to:

[ActiveIssue("...", TestPlatforms.OSX | TestPlatforms.MacCatalyst)]

@ManickaP requested this backport in #114450 (comment).

Fixes #114450 on release/9.0.

cc @liveans @kotlarmilos @ManickaP

…Catalyst

macOS 15+ returns EHOSTUNREACH instead of EACCES for UDP broadcast
without SO_BROADCAST due to the Local Network privacy feature. The
existing ActiveIssue only disabled on MacCatalyst x64, but the failure
affects all macOS 15+ platforms (osx-x64, osx-arm64, MacCatalyst).

Broadens the disable to cover all OSX and MacCatalyst platforms.

Fixes #114450

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR broadens a test disable annotation for Datagram_UDP_AccessDenied_Throws_DoesNotBind to cover all macOS/MacCatalyst platforms, not just MacCatalyst x64. macOS 15+ returns EHOSTUNREACH instead of EACCES for UDP broadcast without SO_BROADCAST, causing the test to fail on all macOS 15+ CI legs.

Changes:

  • Widens the [ActiveIssue] attribute from MacCatalyst + x64 to TestPlatforms.OSX | TestPlatforms.MacCatalyst

You can also share your feedback on Copilot code review. Take the survey.

@lewing lewing enabled auto-merge (squash) March 15, 2026 00:55
@lewing lewing added the Servicing-approved Approved for servicing release label Mar 15, 2026
@lewing lewing changed the title Disable Datagram_UDP_AccessDenied_Throws_DoesNotBind on all macOS/MacCatalyst [release/9.0] Disable Datagram_UDP_AccessDenied_Throws_DoesNotBind on all macOS/MacCatalyst Mar 15, 2026
@lewing lewing disabled auto-merge March 15, 2026 18:28
@lewing lewing merged commit ef7db8d into release/9.0 Mar 15, 2026
88 of 93 checks passed
@lewing lewing deleted the disable-sendto-accessdenied-osx branch March 15, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Net.Sockets Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants