Skip to content
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

[WASI] Sockets - unknown handle index #108726

Open
ericstj opened this issue Oct 9, 2024 · 3 comments
Open

[WASI] Sockets - unknown handle index #108726

ericstj opened this issue Oct 9, 2024 · 3 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-System.Net blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-wasi Related to WASI variant of arch-wasm
Milestone

Comments

@ericstj
Copy link
Member

ericstj commented Oct 9, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=835727
Build error leg or test failing: System.Net.Sockets.Tests.WorkItemExecution
Pull request: #108718

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": ["info: Starting:    managed/System.Net.Sockets.Tests.dll", "Error: failed to run main module `dotnet.wasm`"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-108718-merge-4274d6dbf69d44e5a7/System.Net.Sockets.Tests/1/console.57a801cd.log?helixlogtype=result

[20:23:20] info: Error: failed to run main module `dotnet.wasm`
[20:23:20] info: 
[20:23:20] info: Caused by:
[20:23:20] info:     0: failed to invoke `run` function
[20:23:20] info:     1: error while executing at wasm backtrace:
[20:23:20] info:            0: 0x38db25 - wit-component:shim!indirect-wasi:io/[email protected]
[20:23:20] info:            1: 0x23f38 - <unknown>!<wasm function 311>
[20:23:20] info:            2: 0x22950 - <unknown>!<wasm function 286>
[20:23:20] info:            3: 0x1222b - <unknown>!<wasm function 234>
[20:23:20] info:            4: 0x10e6f - <unknown>!<wasm function 233>
[20:23:20] info:            5: 0x13d96a - <unknown>!<wasm function 4274>
[20:23:20] info:            6: 0xfd1c6 - <unknown>!<wasm function 3199>
[20:23:20] info:            7: 0xfdcc7 - <unknown>!<wasm function 3208>
[20:23:20] info:            8: 0x102b08 - <unknown>!<wasm function 3281>
[20:23:20] info:            9: 0x1024e3 - <unknown>!<wasm function 3278>
[20:23:20] info:           10: 0xf566 - <unknown>!<wasm function 199>
[20:23:20] info:           11: 0x2947be - <unknown>!<wasm function 11646>
[20:23:20] info:           12: 0xaadf - <unknown>!<wasm function 129>
[20:23:20] info:           13: 0x38557a - wit-component:adapter:wasi_snapshot_preview1!wasi:cli/[email protected]#run
[20:23:20] info:     2: unknown handle index 0
[20:23:20] info: Process wasmtime.exe exited with 1
[20:23:20] info: Waiting to flush log messages with a timeout of 120 secs ..
[20:23:20] fail: Application has finished with exit code 1 but 0 was expected
XHarness exit code: 71 (GENERAL_FAILURE)

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=835727
Error message validated: [info: Starting: managed/System.Net.Sockets.Tests.dll Error: failed to run main module dotnet.wasm``]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/9/2024 8:38:46 PM UTC

Report

Build Definition Test Pull Request
899348 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110824
897529 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110781
897455 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110778
897368 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110641
897116 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #100729
895487 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110477
895398 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #109673
895297 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110702
895020 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110322
894410 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110655
894279 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110622
892331 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110544
891733 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution
889958 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110528
889900 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110526
889650 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution
888626 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #101356
888536 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution
888135 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110469
887913 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110437
887545 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #109087
886100 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110119
886075 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110393
884873 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110119
882956 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #109087
882585 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #109087
881166 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110230
880415 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110186
878594 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #109149
877737 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110114
876526 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #110079
874125 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #109642

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 11 32
@ericstj ericstj added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Oct 9, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 9, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Oct 9, 2024
@ericstj ericstj added arch-wasm WebAssembly architecture area-System.Net os-wasi Related to WASI variant of arch-wasm and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 9, 2024
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
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.

@lewing lewing added this to the 10.0.0 milestone Oct 9, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Oct 9, 2024
@pavelsavara
Copy link
Member

Also handle -1

Log

[07:17:01] info: [STRT] System.Net.Sockets.Tests.NetworkStreamTest.NetworkStream_ReadAsyncTimeout_RemainUseable
[07:17:01] info: Error: failed to run main module `dotnet.wasm`
[07:17:01] info: 
[07:17:01] info: Caused by:
[07:17:01] info:     0: failed to invoke `run` function
[07:17:01] info:     1: error while executing at wasm backtrace:
[07:17:01] info:            0: 0x38d0cb - wit-component:shim!indirect-wasi:io/[email protected]
[07:17:01] info:            1: 0x23d84 - <unknown>!<wasm function 310>
[07:17:01] info:            2: 0x2279c - <unknown>!<wasm function 285>
[07:17:01] info:            3: 0x1209e - <unknown>!<wasm function 233>
[07:17:01] info:            4: 0x10cc4 - <unknown>!<wasm function 232>
[07:17:01] info:            5: 0x1397e0 - <unknown>!<wasm function 4241>
[07:17:01] info:            6: 0xfa49c - <unknown>!<wasm function 3175>
[07:17:01] info:            7: 0xfaf9d - <unknown>!<wasm function 3184>
[07:17:01] info:            8: 0xffdde - <unknown>!<wasm function 3257>
[07:17:01] info:            9: 0xff7b9 - <unknown>!<wasm function 3254>
[07:17:01] info:           10: 0xf3ae - <unknown>!<wasm function 198>
[07:17:01] info:           11: 0x29476b - <unknown>!<wasm function 11616>
[07:17:01] info:           12: 0xaa53 - <unknown>!<wasm function 128>
[07:17:01] info:           13: 0x384b45 - wit-component:adapter:wasi_snapshot_preview1!wasi:cli/[email protected]#run
[07:17:01] info:     2: unknown handle index 4294967295

Maybe something about how SafeHandle is GC'ed

@pavelsavara pavelsavara changed the title Sockets tests failing on wasi-wasm [WASI] Sockets - unknown handle index Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-System.Net blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-wasi Related to WASI variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

3 participants