Skip to content

[wasm] System.Collections.Tests assert in sgen-scan-object.h:93 #86860

Closed

Description

@ManickaP

net8.0-wasi-Release-wasm-Mono_Release-normal-(Ubuntu.2004.Amd64)Ubuntu.2004.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-20.04-helix-wasm-amd64

/root/helix/work/workitem/e /root/helix/work/workitem/e /root/helix/work/workitem/e
[8.0.0-prerelease.23272.1+5d3b745c64e8092c2ce3ce1feca85d87d814f292] XHarness command issued: wasi test --app=. --output-directory=/root/helix/work/workitem/uploads/xharness-output --engine-arg=--dir=. --timeout=00:30:00 -- dotnet.wasm WasmTestRunner managed/System.Collections.Tests.dll -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
[14:46:07] info: Using wasm engine WasmTime from path /root/helix/work/correlation/wasmtime/wasmtime
[14:46:07] info: wasmtime-cli 5.0.0
[14:46:07] info: 
[14:46:07] info: Running /root/helix/work/correlation/wasmtime/wasmtime --dir=. dotnet.wasm WasmTestRunner managed/System.Collections.Tests.dll -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
[14:46:10] info: Discovering: managed/System.Collections.Tests.dll (method display = ClassAndMethod, method display options = None)
[14:46:13] info: Discovered:  managed/System.Collections.Tests.dll (found 5666 of 7580 test cases)
[14:46:13] info: Using random seed for test cases: 2084607369
[14:46:13] info: Using random seed for collections: 2084607369
[14:46:13] info: Starting:    managed/System.Collections.Tests.dll
[14:47:17] info: [MONO] error: * Assertion: should not be reached at /__w/1/s/src/mono/mono/sgen/sgen-scan-object.h:93
[14:47:17] info: 
[14:47:17] info: Process wasmtime exited with 1
[14:47:17] info: Waiting to flush log messages with a timeout of 120 secs ..
[14:47:17] fail: Application has finished with exit code 1 but 0 was expected
XHarness exit code: 71 (GENERAL_FAILURE)
/root/helix/work/workitem/e /root/helix/work/workitem/e
----- end Fri 26 May 2023 02:47:17 PM UTC ----- exit code 71 ----------------------------------------------------------

https://dev.azure.com/dnceng-public/public/_build/results?buildId=287442&view=ms.vss-test-web.build-test-results-tab&runId=5732622&paneView=debug&resultId=102106

Tail of wasi.console.log:

[PASS] System.Collections.Tests.BitArray_CtorTests.Ctor_ByteArray(bytes: [0, 0, 0, 0, 0, ...], expected: [False, False, False, False, False, ...])
[PASS] System.Collections.Tests.BitArray_CtorTests.Ctor_ByteArray(bytes: [170, 170, 170, 170, 170, ...], expected: [False, True, False, True, False, ...])
[PASS] System.Collections.Tests.BitArray_CtorTests.Ctor_NullBoolArray_ThrowsArgumentNullException
[PASS] System.Collections.Tests.BitArray_CtorTests.Ctor_Simple_Method_Tests
[MONO] error: * Assertion: should not be reached at /__w/1/s/src/mono/mono/sgen/sgen-scan-object.h:93

Activity

  1. ghost added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on May 29, 2023
  2. ghost added
    untriagedNew issue has not been triaged by the area owner
    on May 29, 2023
  3. added this to the 8.0.0 milestone on May 29, 2023
  4. ghost removed
    untriagedNew issue has not been triaged by the area owner
    on May 29, 2023
  5. added
    arch-wasmWebAssembly architecture
    and removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on May 29, 2023
  6. added
    os-wasiRelated to WASI variant of arch-wasm
    on May 29, 2023
  7. lewing commented on Jul 10, 2023

    @lewing
    Member

    Has this been seen anywhere other than the linked run?

  8. modified the milestones: 8.0.0, 9.0.0 on Jul 24, 2023
  9. vargaz commented on Sep 11, 2023

    @vargaz
    Contributor

    Hopefully fixed by:
    #91761

  10. carlossanlop commented on Sep 13, 2023

    @carlossanlop
    Contributor

    @vargaz If this got fixed in main already, please backport it to release/8.0. I am seeing it in some PRs. Example:

    ----- start Wed 09/13/2023 21:41:01.61 ===============  To repro directly: ===================================================== 
    pushd C:\helix\work\workitem\e\
    dotnet.exe exec "C:\helix\work\correlation\microsoft.dotnet.xharness.cli\8.0.0-prerelease.23407.2\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.Collections.Tests.dll  -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
    popd
    ===========================================================================================================
    
    C:\helix\work\workitem\e>dotnet.exe exec "C:\helix\work\correlation\microsoft.dotnet.xharness.cli\8.0.0-prerelease.23407.2\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.Collections.Tests.dll  -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
    [8.0.0-prerelease.23407.2+480b9159eb7e69b182a87581d5a336e97e0b6dae] 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.Collections.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.Collections.Tests.dll -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
    info: Discovering: managed/System.Collections.Tests.dll (method display = ClassAndMethod, method display options = None)
    info: Discovered:  managed/System.Collections.Tests.dll (found 5666 of 7580 test cases)
    info: Using random seed for test cases: 33639569
    info: Using random seed for collections: 33639569
    info: Starting:    managed/System.Collections.Tests.dll
    info: [MONO] error: * Assertion: should not be reached at D:/a/_work/1/s/src/mono/mono/sgen/sgen-scan-object.h:93
    info: 
    info: Process wasmtime.exe exited with 1
    info: Waiting to flush log messages with a timeout of 120 secs ..
    fail: Application has finished with exit code 1 but 0 was expected
    XHarness exit code: 71 (GENERAL_FAILURE)
    
    C:\helix\work\workitem\e>set EXIT_CODE=71 
    ----- end Wed 09/13/2023 21:42:10.40 ----- exit code 71 ----------------------------------------------------------
    XHarness artifacts: C:\helix\work\workitem\uploads\xharness-output
    python: can't open file 'C:\helix\work\workitem\u\xharness-event-processor.py': [Errno 2] No such file or directory
    2023-09-13T21:42:11.624Z	INFO   	run.py	run(48)	main	Beginning reading of test results.
    2023-09-13T21:42:11.624Z	INFO   	run.py	__init__(42)	read_results	Searching 'C:\helix\work\workitem\e' for test results files
    2023-09-13T21:42:11.625Z	INFO   	run.py	__init__(42)	read_results	Searching 'C:\helix\work\workitem\uploads' for test results files
    2023-09-13T21:42:11.625Z	WARNING	run.py	__init__(55)	read_results	No results file found in any of the following formats: xunit, junit, trx
    2023-09-13T21:42:11.626Z	INFO   	run.py	packing_test_reporter(30)	report_results	Packing 0 test reports to 'C:\helix\work\workitem\e\__test_report.json'
    2023-09-13T21:42:11.626Z	INFO   	run.py	packing_test_reporter(33)	report_results	Packed 1580 bytes
    ERROR: The process "corerun.exe" not found.
    
    [END EXECUTION]
    Exit Code:71
    
  11. vargaz commented on Sep 14, 2023

    @vargaz
    Contributor

    The PR has been backported.

  12. ghost locked as resolved and limited conversation to collaborators on Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmWebAssembly architecturearea-GC-monoos-wasiRelated to WASI variant of arch-wasm

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions