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

[wasi] System.Globalization.Tests AOT build fails with LLVM ERROR: out of memory on Windows #95365

Closed
radical opened this issue Nov 28, 2023 · 3 comments
Labels
arch-wasm WebAssembly architecture area-Build-mono area-Codegen-AOT-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-wasi Related to WASI variant of arch-wasm os-windows
Milestone

Comments

@radical
Copy link
Member

radical commented Nov 28, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=481587
Build error leg or test failing: System.Globalization.Tests.WorkItemExecution
Pull request: #95146

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "LLVM ERROR: out of memory.*C:.*ProxyProjectForAOTOnHelix.proj",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

From the console log:

error : Failed to compile C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-instances.dll.bc -> C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-instances.dll.o [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : C:\helix\work\workitem\e\publish>C:\Windows\System32\chcp.com 65001 1>nul  [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : C:\helix\work\workitem\e\publish>setlocal [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : C:\helix\work\workitem\e\publish>set errorlevel=dummy  [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : C:\helix\work\workitem\e\publish>set errorlevel=  [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : C:\helix\work\workitem\e\publish>C:\helix\work\correlation\build\\wasi-sdk\\bin\clang.exe "@C:\helix\work\correlation\build\microsoft.netcore.app.runtime.wasi-wasm\runtimes\wasi-wasm\native\src\wasi-default.rsp"  "@C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\wasi-compile-bc.rsp" -c -o "C:\Users\ContainerAdministrator\AppData\Local\Temp\tmpmr5st5.tmp" "C:\helix\work\workitem\e\wasm_build\obj\wasm\for-build\aot-instances.dll.bc"  [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : clang version 16.0.0 [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : Target: wasm32-unknown-wasi [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : Thread model: posix [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : InstalledDir: C:/helix/work/correlation/build//wasi-sdk//bin [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error :  (in-process) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error :  "C:/helix/work/correlation/build/wasi-sdk/bin/clang.exe" -cc1 -triple wasm32-unknown-wasi -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name aot-instances.dll.bc -mrelocation-model static -mframe-pointer=none -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu generic -fvisibility=hidden -mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -v -fcoverage-compilation-dir=C:/helix/work/workitem/e/publish -resource-dir C:/helix/work/correlation/build/wasi-sdk/lib/clang/16 -Oz -fdebug-compilation-dir=C:/helix/work/workitem/e/publish -ferror-limit 19 -fgnuc-version=4.2.1 -vectorize-slp -o "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\tmpmr5st5.tmp" -x ir "C:\\helix\\work\\workitem\\e\\wasm_build\\obj\\wasm\\for-build\\aot-instances.dll.bc" [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : clang -cc1 version 16.0.0 based upon LLVM 16.0.0 default target wasm32-wasi [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : LLVM ERROR: out of memory [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : Allocation failed [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : Stack dump: [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : 0.	Program arguments: C:\\helix\\work\\correlation\\build\\\\wasi-sdk\\\\bin\\clang.exe @C:\\helix\\work\\correlation\\build\\microsoft.netcore.app.runtime.wasi-wasm\\runtimes\\wasi-wasm\\native\\src\\wasi-default.rsp @C:\\helix\\work\\workitem\\e\\wasm_build\\obj\\wasm\\for-build\\wasi-compile-bc.rsp -c -o C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\tmpmr5st5.tmp C:\\helix\\work\\workitem\\e\\wasm_build\\obj\\wasm\\for-build\\aot-instances.dll.bc [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : 1.	Code generation [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : Exception Code: 0xC000001D [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : 0x00A1FB73 <unknown module> [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : 0x7133C902 <unknown module> [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : 0x00A023A1 <unknown module> [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : 0x00E7FD3C <unknown module> [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : 0x00E7FFBC <unknown module> [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : 0x00E80133 <unknown module> [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : 0x008DE5CF <unknown module> [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : clang: error: clang frontend command failed due to signal (use -v to see invocation) [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : clang version 16.0.0 [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : Target: wasm32-unknown-wasi [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : Thread model: posix [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : InstalledDir: C:/helix/work/correlation/build//wasi-sdk//bin [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]
error : clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. [took 93.46s] [C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj]

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=481587
Error message validated: LLVM ERROR: out of memory.*C:.*ProxyProjectForAOTOnHelix.proj
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/28/2023 11:22:33 PM UTC

Report

Build Definition Test Pull Request
544686 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #95402
544678 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #96895
544646 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97216
544782 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97660
544045 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97604
544662 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #93619
544814 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97651
544810 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97361
544798 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97643
544772 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97658
544575 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97640
544717 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97654
544681 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #95543
544692 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97052
544677 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97589
544670 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #93953
544190 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97632
544304 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97508
544584 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97559
544550 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #86674
544478 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97644
544354 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97388
544295 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97637
544240 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #91317
544273 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #96910
544187 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97441
544167 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97559
544105 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #96910
544091 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97340
544037 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #91317
543656 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97592
543240 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #97592
541985 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #91317
540864 dotnet/runtime System.Buffers.Tests.WorkItemExecution #97441
540620 dotnet/runtime System.Buffers.Tests.WorkItemExecution #97391
540294 dotnet/runtime System.Buffers.Tests.WorkItemExecution #97391
540124 dotnet/runtime System.Buffers.Tests.WorkItemExecution #97441
522619 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #96455
518255 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #96455
517013 dotnet/runtime System.Collections.Specialized.Tests.WorkItemExecution #96455

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 5 40
@radical radical added arch-wasm WebAssembly architecture os-windows blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-Build-mono Known Build Error Use this to report build issues in the .NET Helix tab os-wasi Related to WASI variant of arch-wasm labels Nov 28, 2023
@ghost
Copy link

ghost commented Nov 28, 2023

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

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=481587
Build error leg or test failing: System.Globalization.Tests.WorkItemExecution
Pull request: #95146

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "LLVM ERROR: out of memory.*C:\helix\work\workitem\e\publish\ProxyProjectForAOTOnHelix.proj",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Author: radical
Assignees: -
Labels:

arch-wasm, os-windows, blocking-clean-ci, area-Build-mono, Known Build Error, os-wasi

Milestone: -

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 28, 2023
@radical radical added this to the 9.0.0 milestone Nov 28, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 28, 2023
radical added a commit to radical/runtime that referenced this issue Jan 2, 2024
@lewing
Copy link
Member

lewing commented Jan 29, 2024

cc @steveisok

@steveisok
Copy link
Member

Quite possible #97096 will fix.

@lewing lewing closed this as completed Feb 5, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 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 area-Codegen-AOT-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-wasi Related to WASI variant of arch-wasm os-windows
Projects
None yet
Development

No branches or pull requests

3 participants