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

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

Closed
ManickaP opened this issue May 29, 2023 · 6 comments
Closed

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

ManickaP opened this issue May 29, 2023 · 6 comments
Labels
arch-wasm WebAssembly architecture area-GC-mono os-wasi Related to WASI variant of arch-wasm
Milestone

Comments

@ManickaP
Copy link
Member

net8.0-wasi-Release-wasm-Mono_Release-normal-(Ubuntu.2004.Amd64)[email protected]/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

@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 May 29, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label May 29, 2023
@ghost
Copy link

ghost commented May 29, 2023

Tagging subscribers to this area: @BrzVlad
See info in area-owners.md if you want to be subscribed.

Issue Details

net8.0-wasi-Release-wasm-Mono_Release-normal-(Ubuntu.2004.Amd64)[email protected]/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

Author: ManickaP
Assignees: -
Labels:

untriaged, area-GC-mono, needs-area-label

Milestone: -

@lewing lewing added this to the 8.0.0 milestone May 29, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label May 29, 2023
@lewing lewing added arch-wasm WebAssembly architecture and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels May 29, 2023
@ghost
Copy link

ghost commented May 29, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

net8.0-wasi-Release-wasm-Mono_Release-normal-(Ubuntu.2004.Amd64)[email protected]/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

Author: ManickaP
Assignees: -
Labels:

arch-wasm, area-GC-mono

Milestone: 8.0.0

@lewing lewing added the os-wasi Related to WASI variant of arch-wasm label May 29, 2023
@lewing
Copy link
Member

lewing commented Jul 10, 2023

Has this been seen anywhere other than the linked run?

@lewing lewing modified the milestones: 8.0.0, 9.0.0 Jul 24, 2023
@vargaz
Copy link
Contributor

vargaz commented Sep 11, 2023

Hopefully fixed by:
#91761

@carlossanlop
Copy link
Member

@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

@vargaz
Copy link
Contributor

vargaz commented Sep 14, 2023

The PR has been backported.

@vargaz vargaz closed this as completed Sep 17, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-GC-mono os-wasi Related to WASI variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

5 participants