Skip to content

[wasi] out of bounds memory access in System.Runtime.Serialization.Xml.Tests #91344

Description

@sbomer

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=389883&view=ms.vss-test-web.build-test-results-tab&runId=8359820&resultId=101854&paneView=dotnet-dnceng.dnceng-anon-build-release-tasks.helix-anon-test-information-tab
PR: #91284

{
  "ErrorMessage": "sgen_client_cardtable_scan_object",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}
  • Output:
C:\helix\work\workitem\e>dotnet.exe exec "C:\helix\work\correlation\microsoft.dotnet.xharness.cli\8.0.0-prerelease.23421.1\tools\net7.0\any\Microsoft.DotNet.XHarness.CLI.dll" wasi test --app=. --output-directory=C:\helix\work\workitem\uploads\xharness-output --wasm-engine-path=C:\helix\work\correlation\wasmtime\wasmtime.exe --engine-arg=--dir=. "--timeout=00:30:00"    --     dotnet.wasm WasmTestRunner managed/System.Runtime.Serialization.Xml.Tests.dll  -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
[8.0.0-prerelease.23421.1+1c09ef5b669c11e1aeca92089d0c1e4408169582] XHarness command issued: wasi test --app=. --output-directory=C:\helix\work\workitem\uploads\xharness-output --wasm-engine-path=C:\helix\work\correlation\wasmtime\wasmtime.exe --engine-arg=--dir=. --timeout=00:30:00 -- dotnet.wasm WasmTestRunner managed/System.Runtime.Serialization.Xml.Tests.dll -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
info: Using wasm engine WasmTime from path C:\helix\work\correlation\wasmtime\wasmtime.exe
info: wasmtime-cli 5.0.0
info: 
info: Running "C:\\helix\\work\\correlation\\wasmtime\\wasmtime.exe" --dir=. dotnet.wasm WasmTestRunner managed/System.Runtime.Serialization.Xml.Tests.dll -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
info: Discovering: managed/System.Runtime.Serialization.Xml.Tests.dll (method display = ClassAndMethod, method display options = None)
info: Discovered:  managed/System.Runtime.Serialization.Xml.Tests.dll (found 273 of 282 test cases)
info: Using random seed for test cases: 1372760189
info: Using random seed for collections: 1372760189
info: Starting:    managed/System.Runtime.Serialization.Xml.Tests.dll
info: Error: failed to run main module `dotnet.wasm`
info: 
info: Caused by:
info:     0: failed to invoke command default
info:     1: error while executing at wasm backtrace:
info:            0: 0x10e3e7 - <unknown>!sgen_client_cardtable_scan_object
info:            1: 0x482dd - <unknown>!sgen_cardtable_scan_object
info:            2: 0x5238a - <unknown>!sgen_los_scan_card_table
info:            3: 0x4e7bf - <unknown>!job_scan_los_card_table
info:            4: 0x5fc03 - <unknown>!sgen_workers_enqueue_deferred_job
info:            5: 0x4b2a7 - <unknown>!collect_nursery
info:            6: 0x4ada1 - <unknown>!sgen_perform_collection
info:            7: 0x4abd4 - <unknown>!sgen_ensure_free_space
info:            8: 0x4996b - <unknown>!sgen_alloc_obj_nolock
info:            9: 0x10e69c - <unknown>!mono_gc_alloc_vector
info:           10: 0xe831e - <unknown>!mono_array_new_specific_internal
info:           11: 0xe8363 - <unknown>!mono_array_new_specific_checked
info:           12: 0x10edc - <unknown>!mono_interp_exec_method
info:           13: 0x8040 - <unknown>!interp_runtime_invoke
info:           14: 0x11d918 - <unknown>!mono_jit_runtime_invoke
info:           15: 0xe0f1b - <unknown>!do_runtime_invoke
info:           16: 0xe0ec2 - <unknown>!mono_runtime_invoke_checked
info:           17: 0xe789b - <unknown>!mono_runtime_try_invoke_byrefs
info:           18: 0xadf99 - <unknown>!ves_icall_InternalInvoke
info:           19: 0xb6800 - <unknown>!ves_icall_InternalInvoke_raw
info:           20: 0x1a42f - <unknown>!do_icall
info:           21: 0x18b72 - <unknown>!do_icall_wrapper
info:           22: 0x93a2 - <unknown>!mono_interp_exec_method
info:           23: 0x8040 - <unknown>!interp_runtime_invoke
info:           24: 0x11d918 - <unknown>!mono_jit_runtime_invoke
info:           25: 0xe0f1b - <unknown>!do_runtime_invoke
info:           26: 0xe18b5 - <unknown>!mono_runtime_try_invoke
info:           27: 0xe60fc - <unknown>!do_try_exec_main
info:           28: 0xe5b9b - <unknown>!mono_runtime_run_main
info:           29: 0x68ac - <unknown>!main
info:           30: 0x272dce - <unknown>!__main_void
info:           31: 0x5911 - <unknown>!_start
info:           32: 0x285fb0 - <unknown>!_start.command_export
info:        note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information
info:     2: wasm trap: out of bounds memory access
info: Process wasmtime.exe exited with 3
info: Waiting to flush log messages with a timeout of 120 secs ..
fail: Application has finished with exit code 3 but 0 was expected
XHarness exit code: 71 (GENERAL_FAILURE)

Looks similar to #88501 and #82043.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=389883
Error message validated: sgen_client_cardtable_scan_object
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 9/7/2023 9:44:12 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarch-wasmWebAssembly architecturearea-VM-meta-monoos-wasiRelated to WASI variant of arch-wasm

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions