Skip to content

SocketAddress is an invalid size for the System.Net.IPEndPoint end point #121848

@pepone

Description

@pepone

Seems similar to #102663

 2025-11-20T16:40:29.0195750Z The active test run was aborted. Reason: Test host process crashed : Unhandled exception. System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress')
2025-11-20T16:40:29.0197140Z   Passed IceRpc:Tests:Transports:Slic:SlicTransportTests:Connect_cancellation_on_transport_hang(False,Write) [214 ms]
2025-11-20T16:40:29.0318760Z    at System.Net.IPEndPoint.Create(SocketAddress socketAddress)
2025-11-20T16:40:29.0329540Z Unhandled exception. System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress')
2025-11-20T16:40:29.0405030Z    at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags)
2025-11-20T16:40:29.0407790Z    at System.Net.IPEndPoint.Create(SocketAddress socketAddress)
2025-11-20T16:40:29.0484210Z    at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncSuccess(Int32 bytesTransferred, SocketFlags flags)
2025-11-20T16:40:29.0486850Z    at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags)
2025-11-20T16:40:29.0586720Z    at System.Net.Sockets.SocketAsyncEventArgs.AcceptCompletionCallback(IntPtr acceptedFileDescriptor, Memory`1 socketAddress, SocketError socketError)
2025-11-20T16:40:29.0588370Z    at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncSuccess(Int32 bytesTransferred, SocketFlags flags)
2025-11-20T16:40:29.0647600Z    at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
2025-11-20T16:40:29.0648740Z    at System.Net.Sockets.SocketAsyncEventArgs.AcceptCompletionCallback(IntPtr acceptedFileDescriptor, Memory`1 socketAddress, SocketError socketError)
2025-11-20T16:40:29.0691500Z    at System.Threading.ThreadPoolWorkQueue.Dispatch()
2025-11-20T16:40:29.0692280Z    at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
2025-11-20T16:40:29.0731290Z    at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
2025-11-20T16:40:29.0737620Z    at System.Threading.ThreadPoolWorkQueue.Dispatch()
2025-11-20T16:40:29.0757350Z    at System.Threading.Thread.StartCallback()
2025-11-20T16:40:29.0758010Z    at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
2025-11-20T16:40:29.0762480Z 
2025-11-20T16:40:29.0762760Z    at System.Threading.Thread.StartCallback()
2025-11-20T16:40:29.0772320Z Test Run Aborted.

I got this on GitHub macos-26 runner with latest .NET 10 SDK

https://github.com/icerpc/icerpc-csharp/actions/runs/19544213309/job/55958628840

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions