You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[browser][CoreCLR][R2R] ManagedWebSocket async close path traps with unreachable #134264
The full trimmed browser-Wasm CoreCLR ReadyToRun library-test lane terminates while running System.Net.WebSockets.Tests with RuntimeError: unreachable during R2R/interpreter transitions in the managed WebSocket close path.
The failure reproduced in PR #133656, Azure DevOps build 1603190, Helix job 3158c862-61f5-4cf9-bb24-6ecdf2cfe895, work item WasmTestOnChrome-CLR-ST-Batch-5.
Expected behavior
The WebSockets unit tests complete and report xUnit results.
Actual behavior
RuntimeError: unreachable
at System.Net.WebSockets.ManagedWebSocket.WaitForServerToCloseConnectionAsync(...).MoveNext()
at WasmInterpreterToR2RThunk(vTp)
at InvokeManagedMethod(...)
at WasmR2RToInterpreterThunk(vTp)
at WasmDelayLoadHelper(...)
at System.Net.WebSockets.ManagedWebSocket.CloseOutputAsyncCore(...).MoveNext()
Additional frames show repeated R2R-to-interpreter and interpreter-to-R2R transitions through CloseWithReceiveErrorAndThrowAsync.
Regression?
Unknown. This configuration did not previously run the broad WebSockets test assembly with CoreCLR ReadyToRun.
Known Workarounds
Keep only System.Net.WebSockets.Tests.dll interpreted while leaving the product System.Net.WebSockets assembly ReadyToRun compiled.
The process terminates before xUnit identifies a single failing test. Re-enable test-assembly R2R coverage after the async close transition no longer traps.
Note
This issue was generated with GitHub Copilot assistance and reviewed as part of the #133193 bring-up.
Activity
dotnet-policy-service commentedon Sep 19, 2026
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
lewing commentedon Sep 28, 2026
fix in #134758
dotnet-policy-service commentedon Sep 29, 2026
Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.
JIT: don't fall through from a Wasm callfinally across a try_table end (