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

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

Closed
ilonatommy opened this issue Feb 7, 2024 · 5 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Build-mono Known Build Error Use this to report build issues in the .NET Helix tab wasm-aot-test WebAssembly AOT Test

Comments

@ilonatommy
Copy link
Member

ilonatommy commented Feb 7, 2024

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: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=556904
Error message validated: [Assertion.*llvm.*elems.*MAX_VECTOR_ELEMS]
Result validation: ✅ 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
564149 dotnet/runtime LLVM AOT compile CoreCLR tests Log
563468 dotnet/runtime LLVM AOT compile CoreCLR tests Log
562884 dotnet/runtime LLVM AOT compile CoreCLR tests Log #92057
562464 dotnet/runtime LLVM AOT compile CoreCLR tests Log #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 #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 #92057
Build Definition Test Pull Request
2376960 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
2376359 dotnet-runtime x64.micro_mono.net9.0.Partition9.WorkItemExecution
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 #98093
557210 dotnet/runtime WasmTestOnBrowser-System.Runtime.Serialization.Xml.Tests.WorkItemExecution #98087
556904 dotnet/runtime WasmTestOnBrowser-System.Runtime.Serialization.Xml.Tests.WorkItemExecution #98087

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 35
@ilonatommy ilonatommy added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-Build-mono wasm-aot-test WebAssembly AOT Test Known Build Error Use this to report build issues in the .NET Helix tab labels Feb 7, 2024
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Feb 7, 2024
@pavelsavara pavelsavara added the arch-wasm WebAssembly architecture label Feb 7, 2024
@ghost
Copy link

ghost commented Feb 7, 2024

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: -

@ilonatommy ilonatommy reopened this Feb 7, 2024
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Feb 7, 2024
@vargaz vargaz self-assigned this Feb 7, 2024
@pavelsavara pavelsavara added Known Build Error Use this to report build issues in the .NET Helix tab and removed Known Build Error Use this to report build issues in the .NET Helix tab labels Feb 7, 2024
@vargaz
Copy link
Contributor

vargaz commented Feb 8, 2024

Should be fixed by:
#98114

@fanyang-mono
Copy link
Member

fanyang-mono commented Feb 12, 2024

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.

@jkurdek
Copy link
Member

jkurdek commented Feb 12, 2024

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

@pavelsavara
Copy link
Member

Could we close this ?

@pavelsavara pavelsavara removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Mar 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Build-mono Known Build Error Use this to report build issues in the .NET Helix tab wasm-aot-test WebAssembly AOT Test
Projects
None yet
Development

No branches or pull requests

5 participants