Skip to content

[iOS][MacCatalyst] Invalid SocketOption in MulticastInterface on new macOS versions (14.7, 15.2) #113827

Closed

Description

@matouskozak

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=983276
Build error leg or test failing: System.Net.Sockets.Tests

Discovered in #113313 when trying to update dotnet/runtime apple mobile CI to newer macOS helix devices running with macOS 14/15.

Error:

[FAIL] System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_AnyInterface_Succeeds   Test name: System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_AnyInterface_Succeeds
[09:32:16] dbug: 2025-03-17 09:32:16.239240-0400 System.Net.Sockets.Tests[41262:763854]    Assembly:  [System.Net.Sockets.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[09:32:16] dbug: 2025-03-17 09:32:16.239350-0400 System.Net.Sockets.Tests[41262:763854]    Exception messages: System.Net.Sockets.SocketException : Invalid argument   Exception stack traces:    at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
[09:32:16] dbug: at System.Net.Sockets.Socket.UpdateStatusAfterSocketOptionErrorAndThrowException(SocketError error, String callerName)
[09:32:16] dbug: 2025-03-17 09:32:16.239449-0400 System.Net.Sockets.Tests[41262:763854]    at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue, Boolean silent)
[09:32:16] dbug: at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue)
[09:32:16] dbug: 2025-03-17 09:32:16.239544-0400 System.Net.Sockets.Tests[41262:763854]    at System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_Helper(Int32 interfaceIndex)
[09:32:16] dbug: at System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_AnyInterface_Succeeds()

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": [
      "macOS",
      "System.Net.Sockets.SocketException : Invalid argument",
      "at System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_AnyInterface_Succeeds"
  ],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=983276
Error message validated: [System.Net.Sockets.SocketException : Invalid argument Exception stack traces: at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 3/24/2025 9:33:00 AM UTC

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=983276
Error message validated: [macOS System.Net.Sockets.SocketException : Invalid argument System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_AnyInterface_Succeeds]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 3/24/2025 9:59:49 AM UTC

Report

Build Definition Test Pull Request
1119722 dotnet/runtime System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_AnyInterface_Succeeds #113399

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Activity

  1. added theissue type on Mar 24, 2025
  2. dotnet-policy-service commented on Mar 24, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-maccatalyst': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  3. dotnet-policy-service commented on Mar 24, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-tvos': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  4. dotnet-policy-service commented on Mar 24, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  5. dotnet-policy-service commented on Mar 24, 2025

    @dotnet-policy-service
    Contributor

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

  6. wfurt commented on Mar 24, 2025

    @wfurt
    Member

    may be related to #53767

  7. matouskozak commented on Mar 24, 2025

    @matouskozak
    MemberAuthor

    may be related to #53767

    On the current CI, with macOS 12.7.2 and XCode 13.1, the tests are not failing. Maybe @simonrozsival might know where the problem is coming from?

  8. added this to the 10.0.0 milestone on Jul 11, 2025
  9. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 11, 2025
  10. self-assigned this
    on Jul 11, 2025
  11. modified the milestones: 10.0.0, 11.0.0 on Jul 23, 2025
  12. karelz commented on Sep 9, 2025

    @karelz
    Member

    Fixed by #119354

  13. removed
    disabled-testThe test is disabled in source code against the issue
    on Sep 9, 2025
  14. locked and limited conversation to collaborators on Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions