Skip to content

System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_IPv6_XXXXX_Succeeds failing #90491

@danmoseley

Description

@danmoseley

These are failing on my Windows 11 22H2 machine, even elevated

the failing code is

            Socket receiveSocket = new Socket(AddressFamily.InterNetworkV6, SocketType.Dgram, ProtocolType.Udp);

            // sending a message will bind the socket to an available port
            string sendMessage = "dummy message";
            int port = 54320;
            IPAddress multicastAddress = IPAddress.Parse("ff11::1:1");
            receiveSocket.SendTo(Encoding.UTF8.GetBytes(sendMessage), new IPEndPoint(multicastAddress, port)); // <<<<<
 System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_IPv6_Loopback_Succeeds [FAIL]
        System.Net.Sockets.SocketException : A socket operation was attempted to an unreachable network.
        Stack Trace:
          C:\git\0runtime\src\libraries\System.Net.Sockets\src\System\Net\Sockets\Socket.cs(3626,0): at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
          C:\git\0runtime\src\libraries\System.Net.Sockets\src\System\Net\Sockets\Socket.cs(1292,0): at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
          C:\git\0runtime\src\libraries\System.Net.Sockets\src\System\Net\Sockets\Socket.cs(1320,0): at System.Net.Sockets.Socket.SendTo(Byte[] buffer, EndPoint remoteEP)
          C:\git\0runtime\src\libraries\System.Net.Sockets\tests\FunctionalTests\SocketOptionNameTest.cs(304,0): at System.Net.Sockets.Tests.SocketOptionNameTest.CreateBoundUdpIPv6Socket(Int32& localPort)
          C:\git\0runtime\src\libraries\System.Net.Sockets\tests\FunctionalTests\SocketOptionNameTest.cs(199,0): at System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_IPv6_Helper(Int32 interfaceIndex)
          C:\git\0runtime\src\libraries\System.Net.Sockets\tests\FunctionalTests\SocketOptionNameTest.cs(190,0): at System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_IPv6_Loopback_Succeeds()
          --- End of stack trace from previous location ---
      System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_IPv6_AnyInterface_Succeeds [FAIL]
        System.Net.Sockets.SocketException : A socket operation was attempted to an unreachable network.
        Stack Trace:
          C:\git\0runtime\src\libraries\System.Net.Sockets\src\System\Net\Sockets\Socket.cs(3626,0): at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
          C:\git\0runtime\src\libraries\System.Net.Sockets\src\System\Net\Sockets\Socket.cs(1292,0): at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
          C:\git\0runtime\src\libraries\System.Net.Sockets\src\System\Net\Sockets\Socket.cs(1320,0): at System.Net.Sockets.Socket.SendTo(Byte[] buffer, EndPoint remoteEP)
          C:\git\0runtime\src\libraries\System.Net.Sockets\tests\FunctionalTests\SocketOptionNameTest.cs(304,0): at System.Net.Sockets.Tests.SocketOptionNameTest.CreateBoundUdpIPv6Socket(Int32& localPort)
          C:\git\0runtime\src\libraries\System.Net.Sockets\tests\FunctionalTests\SocketOptionNameTest.cs(199,0): at System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_IPv6_Helper(Int32 interfaceIndex)
          C:\git\0runtime\src\libraries\System.Net.Sockets\tests\FunctionalTests\SocketOptionNameTest.cs(135,0): at System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_IPv6_AnyInterface_Succeeds()
          --- End of stack trace from previous location ---

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Net.Socketsneeds-author-actionAn issue or pull request that requires more info or actions from the author.test-run-coreTest failures in .NET Core test runs

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions