runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[aot] Library tests failures on Windows, assertion `elems <= MAX_VECTOR_ELEMS / 2' not met

Open ilonatommy opened this issue 1 year ago • 4 comments

Assertion at D:\a\_work\1\s\src\mono\mono\mini\mini-llvm.c:8581, condition elems <= MAX_VECTOR_ELEMS / 2' not met `

Error Blob

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "Assertion.*llvm.*elems.*MAX_VECTOR_ELEMS",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=556904&view=logs&jobId=b455efc5-4fe2-50ab-5106-412ad73c23a0

Log

  [System.Private.CoreLib.dll] Exec (with response file contents expanded) in C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in: MONO_PATH=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in;C:\helix\work\correlation\build\microsoft.netcore.app.runtime.browser-wasm\runtimes\browser-wasm\native\;C:\helix\work\correlation\build\microsoft.netcore.app.runtime.browser-wasm\runtimes\browser-wasm\lib\net9.0 MONO_ENV_OPTIONS= C:\helix\work\correlation\build\cross\mono-aot-cross.exe --wasm-exceptions --debug --llvm "--aot=no-opt,static,direct-icalls,deterministic,mattr=simd,dwarfdebug,llvm-path=C:\helix\work\correlation\build\emsdk\upstream\bin\,static,dedup-skip,trimming-eligible-methods-outfile=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\tokens\System_Private_CoreLib_dll_compiled_methods.txt,llvmonly,interp,asmonly,llvm-outfile=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\System.Private.CoreLib.dll.bc.tmp,temp-path=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\System.Private.CoreLib.dll.tmp" "System.Private.CoreLib.dll"
  
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(677,5): error : Precompiling failed for C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in\System.Private.CoreLib.dll with exit code -1073740791. [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(677,5): error : Mono Ahead of Time compiler - compiling assembly C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in\System.Private.CoreLib.dll [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(677,5): error : * Assertion at D:\a\_work\1\s\src\mono\mono\mini\mini-llvm.c:8581, condition `elems <= MAX_VECTOR_ELEMS / 2' not met [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=556904 Error message validated: [Assertion.*llvm.*elems.*MAX_VECTOR_ELEMS] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 2/7/2024 6:07:06 PM UTC

Report

Build Definition Step Name Console log Pull Request
562884 dotnet/runtime LLVM AOT compile CoreCLR tests Log dotnet/runtime#92057
562464 dotnet/runtime LLVM AOT compile CoreCLR tests Log dotnet/runtime#92057
562296 dotnet/runtime LLVM AOT compile CoreCLR tests Log
562067 dotnet/runtime LLVM AOT compile CoreCLR tests Log
562000 dotnet/runtime LLVM AOT compile CoreCLR tests Log dotnet/runtime#98279
561823 dotnet/runtime LLVM AOT compile CoreCLR tests Log
561414 dotnet/runtime LLVM AOT compile CoreCLR tests Log
560509 dotnet/runtime LLVM AOT compile CoreCLR tests Log dotnet/runtime#92057
Build Definition Test Pull Request
2376039 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2375871 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2375785 dotnet-runtime release.Partition9.WorkItemExecution
2375653 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2375545 dotnet-runtime release.Partition9.WorkItemExecution
2375475 dotnet-runtime release.Partition9.WorkItemExecution
2375394 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2375312 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2375166 dotnet-runtime release.Partition9.WorkItemExecution
2375008 dotnet-runtime release.Partition9.WorkItemExecution
2374634 dotnet-runtime release.Partition9.WorkItemExecution
2374376 dotnet-runtime release.Partition9.WorkItemExecution
2374218 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2373987 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2373755 dotnet-runtime release.Partition9.WorkItemExecution
2373510 dotnet-runtime release.Partition9.WorkItemExecution
2373349 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2373235 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2372973 dotnet-runtime release.Partition9.WorkItemExecution
2372666 dotnet-runtime release.Partition9.WorkItemExecution
557221 dotnet/runtime WasmTestOnBrowser-System.Runtime.Serialization.Xml.Tests.WorkItemExecution dotnet/runtime#98093
557210 dotnet/runtime WasmTestOnBrowser-System.Runtime.Serialization.Xml.Tests.WorkItemExecution dotnet/runtime#98087
556904 dotnet/runtime WasmTestOnBrowser-System.Runtime.Serialization.Xml.Tests.WorkItemExecution dotnet/runtime#98087

Summary

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

ilonatommy avatar Feb 07 '24 14:02 ilonatommy

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

Issue Details

Assertion at D:\a\_work\1\s\src\mono\mono\mini\mini-llvm.c:8581, condition elems <= MAX_VECTOR_ELEMS / 2' not met `

Error Blob

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "Assertion.*mini-llvm.*elems.*MAX_VECTOR_ELEMS",
  "ExcludeConsoleLog": true
}

Reproduction Steps

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=556904&view=logs&jobId=b455efc5-4fe2-50ab-5106-412ad73c23a0

Log

  [System.Private.CoreLib.dll] Exec (with response file contents expanded) in C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in: MONO_PATH=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in;C:\helix\work\correlation\build\microsoft.netcore.app.runtime.browser-wasm\runtimes\browser-wasm\native\;C:\helix\work\correlation\build\microsoft.netcore.app.runtime.browser-wasm\runtimes\browser-wasm\lib\net9.0 MONO_ENV_OPTIONS= C:\helix\work\correlation\build\cross\mono-aot-cross.exe --wasm-exceptions --debug --llvm "--aot=no-opt,static,direct-icalls,deterministic,mattr=simd,dwarfdebug,llvm-path=C:\helix\work\correlation\build\emsdk\upstream\bin\,static,dedup-skip,trimming-eligible-methods-outfile=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\tokens\System_Private_CoreLib_dll_compiled_methods.txt,llvmonly,interp,asmonly,llvm-outfile=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\System.Private.CoreLib.dll.bc.tmp,temp-path=C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\System.Private.CoreLib.dll.tmp" "System.Private.CoreLib.dll"
  
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(677,5): error : Precompiling failed for C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in\System.Private.CoreLib.dll with exit code -1073740791. [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(677,5): error : Mono Ahead of Time compiler - compiling assembly C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-in\System.Private.CoreLib.dll [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
C:\helix\work\correlation\build\wasm-shared\WasmApp.Common.targets(677,5): error : * Assertion at D:\a\_work\1\s\src\mono\mono\mini\mini-llvm.c:8581, condition `elems <= MAX_VECTOR_ELEMS / 2' not met [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
Author: ilonatommy
Assignees: -
Labels:

arch-wasm, blocking-clean-ci, untriaged, area-Build-mono, wasm-aot-test, Known Build Error

Milestone: -

ghost avatar Feb 07 '24 16:02 ghost

Should be fixed by: https://github.com/dotnet/runtime/pull/98114

vargaz avatar Feb 08 '24 04:02 vargaz

This is not a WASM only issue. It is also seen on desktop linux. See logs here: https://dev.azure.com/dnceng-public/public/_build/results?buildId=560509&view=logs&j=d25dc2c0-518b-5583-f661-5ac905106679&t=47cb0142-4d6b-5edf-a0a8-cf81fa3f7e05 @jkurdek Could you take a look, as your previous fix was to exclude Vector3 intrinsics from WASM.

fanyang-mono avatar Feb 12 '24 18:02 fanyang-mono

I am aware of the regression on llvm linux x64. Looking into it.

jkurdek avatar Feb 12 '24 19:02 jkurdek

Could we close this ?

pavelsavara avatar Mar 04 '24 08:03 pavelsavara