[android][arm64] System.Net.Sockets.Tests.SendTo_SyncForceNonBlocking.Datagram_UDP_ShouldImplicitlyBindLocalEndpoint fails with NetworkUnreachable
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1167858&view=logs&j=11fc76eb-f2d5-5967-e9b4-f54329587f75&t=071fe9c1-8e24-5546-3854-e555c5768672 Build error leg or test failing: Datagram_UDP_ShouldImplicitlyBindLocalEndpoint
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "Network is unreachable",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
The test fails only on Android arm/arm64, on Android x64 and other platforms it passes.
The detailed failure:
1) [FAIL] System.Net.Sockets.Tests.SendTo_SyncForceNonBlocking.Datagram_UDP_ShouldImplicitlyBindLocalEndpoint Test name: System.Net.Sockets.Tests.SendTo_SyncForceNonBlocking.Datagram_UDP_ShouldImplicitlyBindLocalEndpoint
Exception messages: System.Net.Sockets.SocketException : Network is unreachable Exception stack traces: at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
at System.Net.Sockets.Tests.SocketHelperArraySync.<>c__DisplayClass11_0.<SendToAsync>b__0()
at System.Threading.Tasks.Task`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__288_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
2) [FAIL] System.Net.Sockets.Tests.SendTo_SyncForceNonBlocking.Datagram_UDP_AccessDenied_Throws_DoesNotBind Test name: System.Net.Sockets.Tests.SendTo_SyncForceNonBlocking.Datagram_UDP_AccessDenied_Throws_DoesNotBind
Exception messages: Assert.Equal() Failure: Values differ
Expected: AccessDenied
Actual: NetworkUnreachable Exception stack traces: at System.Net.Sockets.Tests.SendTo`1.<Datagram_UDP_AccessDenied_Throws_DoesNotBind>d__8[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
3) [FAIL] System.Net.Sockets.Tests.SendTo_Apm.Datagram_UDP_ShouldImplicitlyBindLocalEndpoint Test name: System.Net.Sockets.Tests.SendTo_Apm.Datagram_UDP_ShouldImplicitlyBindLocalEndpoint
Exception messages: Assert.NotNull() Failure: Value is null Exception stack traces: at System.Net.Sockets.Tests.SendTo`1.<Datagram_UDP_ShouldImplicitlyBindLocalEndpoint>d__7[[System.Net.Sockets.Tests.SocketHelperApm, System.Net.Sockets.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
4) [FAIL] System.Net.Sockets.Tests.SendTo_Apm.Datagram_UDP_AccessDenied_Throws_DoesNotBind Test name: System.Net.Sockets.Tests.SendTo_Apm.Datagram_UDP_AccessDenied_Throws_DoesNotBind
Exception messages: Assert.Equal() Failure: Values differ
Expected: AccessDenied
Actual: NetworkUnreachable Exception stack traces: at System.Net.Sockets.Tests.SendTo`1.<Datagram_UDP_AccessDenied_Throws_DoesNotBind>d__8[[System.Net.Sockets.Tests.SocketHelperApm, System.Net.Sockets.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
5) [FAIL] System.Net.Sockets.Tests.SendTo_MemoryNativeTask.Datagram_UDP_ShouldImplicitlyBindLocalEndpoint Test name: System.Net.Sockets.Tests.SendTo_MemoryNativeTask.Datagram_UDP_ShouldImplicitlyBindLocalEndpoint
Exception messages: Assert.NotNull() Failure: Value is null Exception stack traces: at System.Net.Sockets.Tests.SendTo`1.<Datagram_UDP_ShouldImplicitlyBindLocalEndpoint>d__7[[System.Net.Sockets.Tests.SocketHelperMemoryNativeTask, System.Net.Sockets.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1167858
Error message validated: [Network is unreachable]
Result validation: :white_check_mark: Known issue matched with the provided build.
Validation performed at: 10/8/2025 8:01:45 AM UTC
Report
| Build | Definition | Step Name | Console log | Pull Request |
|---|---|---|---|---|
| 1224200 | dotnet/runtime | Build product | Log | dotnet/runtime#122308 |
| 2856591 | dotnet-runtime | Run performance job script | Log | |
| 1223925 | dotnet/runtime | Build product | Log | dotnet/runtime#121412 |
| 1222097 | dotnet/runtime | Send to Helix | Log | |
| 1220921 | dotnet/runtime | Build | Log | dotnet/runtime#122162 |
| 1220920 | dotnet/runtime | Build product | Log | dotnet/runtime#122162 |
| 1220420 | dotnet/runtime | Send to Helix | Log | dotnet/runtime#115502 |
| 1219957 | dotnet/runtime | Build product | Log | dotnet/runtime#121853 |
| 1219771 | dotnet/runtime | Send to Helix | Log | dotnet/runtime#121343 |
| 1219379 | dotnet/runtime | Build product | Log | dotnet/runtime#122154 |
| 1219106 | dotnet/runtime | Build product | Log | dotnet/runtime#121412 |
| 1217597 | dotnet/runtime | Build product | Log | dotnet/runtime#121412 |
| 1218111 | dotnet/runtime | Build product | Log | dotnet/runtime#121853 |
| 1217971 | dotnet/runtime | Build product | Log | dotnet/runtime#114983 |
| 1217940 | dotnet/runtime | Build product | Log | dotnet/runtime#121853 |
| 1217346 | dotnet/runtime | Build product | Log | dotnet/runtime#122098 |
| 1217255 | dotnet/runtime | Build product | Log | dotnet/runtime#122094 |
| 1216618 | dotnet/runtime | Send to Helix | Log | dotnet/runtime#119432 |
| 1215067 | dotnet/runtime | Build product | Log | dotnet/runtime#122032 |
| 1214285 | dotnet/runtime | Build product | Log | dotnet/runtime#122017 |
| 1213668 | dotnet/runtime | Build product | Log | dotnet/runtime#121666 |
| 1212985 | dotnet/runtime | Build Tests | Log | dotnet/runtime#121697 |
| 1211824 | dotnet/runtime | Build product | Log | dotnet/runtime#121943 |
| 1211450 | dotnet/runtime | Build product | Log | dotnet/runtime#119575 |
| 1210149 | dotnet/runtime | Build product | Log | dotnet/runtime#121343 |
| 1209838 | dotnet/runtime | Build product | Log | dotnet/runtime#107585 |
| 1209511 | dotnet/runtime | Build product | Log | dotnet/runtime#121072 |
| 1209249 | dotnet/runtime | Build product | Log | dotnet/runtime#121343 |
| 1209026 | dotnet/runtime | Build product | Log | dotnet/runtime#121343 |
| 1206977 | dotnet/runtime | Build product | Log | dotnet/runtime#121753 |
| 1206827 | dotnet/runtime | Build product | Log | dotnet/runtime#121679 |
| 1206050 | dotnet/runtime | Build product | Log | dotnet/runtime#121720 |
| 1206032 | dotnet/runtime | Build product | Log | dotnet/runtime#121721 |
| 1205893 | dotnet/runtime | Build product | Log | dotnet/runtime#121643 |
| 1205851 | dotnet/runtime | Build product | Log | dotnet/runtime#121643 |
| 1205773 | dotnet/runtime | Send to Helix | Log | dotnet/runtime#119432 |
| 1205691 | dotnet/runtime | Build product | Log | dotnet/runtime#121643 |
| 2840970 | dotnet-runtime | Run performance job script | Log | |
| 1205269 | dotnet/runtime | Build product | Log | dotnet/runtime#121687 |
| 1204628 | dotnet/runtime | Build product | Log | dotnet/runtime#121180 |
| 1204538 | dotnet/runtime | Build product | Log | dotnet/runtime#121672 |
| 1204300 | dotnet/runtime | Send tests to Helix (Unix) | Log | |
| 1203959 | dotnet/runtime | Build product | Log | dotnet/runtime#121456 |
| 1203745 | dotnet/runtime | Build product | Log | dotnet/runtime#121603 |
| 1203205 | dotnet/runtime | Build product | Log | dotnet/runtime#121621 |
| 1203164 | dotnet/runtime | Build product | Log | dotnet/runtime#121583 |
| 1203081 | dotnet/runtime | Build product | Log | dotnet/runtime#121610 |
| 1202970 | dotnet/runtime | Build product | Log | dotnet/runtime#121609 |
| 1202725 | dotnet/runtime | Send to Helix | Log | dotnet/runtime#121366 |
| 1202040 | dotnet/runtime | Build product | Log | dotnet/runtime#119575 |
| 1200107 | dotnet/runtime | Build product | Log | dotnet/runtime#121343 |
| 1199484 | dotnet/runtime | Build product | Log | dotnet/runtime#121343 |
| 1198375 | dotnet/runtime | Build product | Log | dotnet/runtime#121365 |
| 1198323 | dotnet/runtime | Send to Helix | Log | dotnet/runtime#121308 |
| Build | Definition | Test | Pull Request |
|---|---|---|---|
| 1221896 | dotnet/runtime | System.Net.Sockets.Tests.WorkItemExecution | |
| 1214558 | dotnet/runtime | System.Net.Sockets.Tests.WorkItemExecution | |
| 1208373 | dotnet/runtime | System.Net.Sockets.Tests.WorkItemExecution | |
| 1204863 | dotnet/runtime | System.Net.Sockets.Tests.WorkItemExecution | |
| 1204014 | dotnet/runtime | System.Runtime.InteropServices.Tests.WorkItemExecution | dotnet/runtime#121650 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 3 | 18 | 59 |
Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.
Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
- https://github.com/dotnet/runtime/issues/104709
Likely related to https://github.com/dotnet/runtime/issues/119851 and https://github.com/dotnet/runtime/issues/119852 they all seem to have similar behavior. It's possibly underlying platform issue, not specified to the failing tests.
It looks like the internet connection is blocked, or something similar. This reminds me of https://github.com/dotnet/runtime/issues/114450.
Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.
Interestingly, the failure seems like the same as #114450, was there any update on Android arm infra lately? My suspicion is that: This is related to environment itself (similar to privacy setting thingy in #114450).