Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
matouskozak opened this issue Mar 24, 2025 · 6 comments
Labels
area-System.Net.Sockets disabled-test The test is disabled in source code against the issue Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS os-maccatalyst MacCatalyst OS os-tvos Apple tvOS untriaged New issue has not been triaged by the area owner

Comments

@matouskozak
Copy link
Member

matouskozak commented Mar 24, 2025

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

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@matouskozak matouskozak added area-System.Net.Sockets Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS os-maccatalyst MacCatalyst OS os-tvos Apple tvOS untriaged New issue has not been triaged by the area owner labels Mar 24, 2025
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

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

@wfurt
Copy link
Member

wfurt commented Mar 24, 2025

may be related to #53767

@matouskozak
Copy link
Member Author

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?

@matouskozak matouskozak added the disabled-test The test is disabled in source code against the issue label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Net.Sockets disabled-test The test is disabled in source code against the issue Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS os-maccatalyst MacCatalyst OS os-tvos Apple tvOS untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants