runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[wasm] perf: AOT `CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) `

Open radical opened this issue 2 years ago • 7 comments

Build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2308311&view=results Commit: 7faabde7 This ran on PERFTIGER173 .

// Benchmark: Handling.CatchAndRethrowDeep: Job-BOURXZ(PowerPlanMode=00000000-0000-0000-0000-000000000000, Runtime=Wasm, Arguments=/p:EnableUnsafeBinaryFormatterSerialization=true, Toolchain=Wasm, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1) [kind=Software]
// *** Execute ***
// Launch: 1 / 1
// Execute: /home/helixbot/.jsvu/bin/v8-11.9.169 --expose_wasm --module test-main.js -- --run Job-BOURXZ.dll --benchmarkName "Exceptions.Handling.CatchAndRethrowDeep(kind: Software)" --job "PowerPlanMode=00000000-0000-0000-0000-000000000000, Runtime=Wasm, Arguments=/p:EnableUnsafeBinaryFormatterSerialization=true, Toolchain=Wasm, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1" --benchmarkId 3  in /home/helixbot/work/A5BC08BE/w/C4C80A33/e/performance/artifacts/bin/for-running/MicroBenchmarks/Job-BOURXZ/bin/net9.0/browser-wasm/AppBundle
Failed to set up high priority. Make sure you have the right permissions. Message: Permission denied
Incoming arguments: --run Job-BOURXZ.dll --benchmarkName Exceptions.Handling.CatchAndRethrowDeep(kind: Software) --job PowerPlanMode=00000000-0000-0000-0000-000000000000, Runtime=Wasm, Arguments=/p:EnableUnsafeBinaryFormatterSerialization=true, Toolchain=Wasm, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1 --benchmarkId 3
Application arguments: --run Job-BOURXZ.dll --benchmarkName Exceptions.Handling.CatchAndRethrowDeep(kind: Software) --job PowerPlanMode=00000000-0000-0000-0000-000000000000, Runtime=Wasm, Arguments=/p:EnableUnsafeBinaryFormatterSerialization=true, Toolchain=Wasm, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1 --benchmarkId 3
MONO_WASM: instantiate_wasm_module() failed CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121
MONO_WASM: CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121
    at /home/helixbot/work/A5BC08BE/w/C4C80A33/e/performance/artifacts/bin/for-running/MicroBenchmarks/Job-BOURXZ/bin/net9.0/browser-wasm/AppBundle/_framework/dotnet.js:3:30577
Error in mono_download_assets: CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121
exiting due to exception: CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121,CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121
    at /home/helixbot/work/A5BC08BE/w/C4C80A33/e/performance/artifacts/bin/for-running/MicroBenchmarks/Job-BOURXZ/bin/net9.0/browser-wasm/AppBundle/_framework/dotnet.js:3:30577

CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2)

I could not reproduce this on macos, but haven't tried it on linux.

cc @kg @vargaz

Known Issue Error Message

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

{
  "ErrorMessage": "",
  "ErrorPattern": "System_Linq_Expressions_System_Linq_Expressions.*not enough arguments on the stack",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng/internal/_build/results?buildId=2308311 Error message validated: System_Linq_Expressions_System_Linq_Expressions.*not enough arguments on the stack Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 11/6/2023 7:51:34 PM UTC

Report

Summary

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

radical avatar Nov 06 '23 19:11 radical

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

Issue Details

Build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2308311&view=results Commit: 7faabde7 This ran on PERFTIGER173 .

// Benchmark: Handling.CatchAndRethrowDeep: Job-BOURXZ(PowerPlanMode=00000000-0000-0000-0000-000000000000, Runtime=Wasm, Arguments=/p:EnableUnsafeBinaryFormatterSerialization=true, Toolchain=Wasm, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1) [kind=Software]
// *** Execute ***
// Launch: 1 / 1
// Execute: /home/helixbot/.jsvu/bin/v8-11.9.169 --expose_wasm --module test-main.js -- --run Job-BOURXZ.dll --benchmarkName "Exceptions.Handling.CatchAndRethrowDeep(kind: Software)" --job "PowerPlanMode=00000000-0000-0000-0000-000000000000, Runtime=Wasm, Arguments=/p:EnableUnsafeBinaryFormatterSerialization=true, Toolchain=Wasm, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1" --benchmarkId 3  in /home/helixbot/work/A5BC08BE/w/C4C80A33/e/performance/artifacts/bin/for-running/MicroBenchmarks/Job-BOURXZ/bin/net9.0/browser-wasm/AppBundle
Failed to set up high priority. Make sure you have the right permissions. Message: Permission denied
Incoming arguments: --run Job-BOURXZ.dll --benchmarkName Exceptions.Handling.CatchAndRethrowDeep(kind: Software) --job PowerPlanMode=00000000-0000-0000-0000-000000000000, Runtime=Wasm, Arguments=/p:EnableUnsafeBinaryFormatterSerialization=true, Toolchain=Wasm, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1 --benchmarkId 3
Application arguments: --run Job-BOURXZ.dll --benchmarkName Exceptions.Handling.CatchAndRethrowDeep(kind: Software) --job PowerPlanMode=00000000-0000-0000-0000-000000000000, Runtime=Wasm, Arguments=/p:EnableUnsafeBinaryFormatterSerialization=true, Toolchain=Wasm, IterationTime=250.0000 ms, MaxIterationCount=20, MinIterationCount=15, WarmupCount=1 --benchmarkId 3
MONO_WASM: instantiate_wasm_module() failed CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121
MONO_WASM: CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121
    at /home/helixbot/work/A5BC08BE/w/C4C80A33/e/performance/artifacts/bin/for-running/MicroBenchmarks/Job-BOURXZ/bin/net9.0/browser-wasm/AppBundle/_framework/dotnet.js:3:30577
Error in mono_download_assets: CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121
exiting due to exception: CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121,CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2) @+29394121
    at /home/helixbot/work/A5BC08BE/w/C4C80A33/e/performance/artifacts/bin/for-running/MicroBenchmarks/Job-BOURXZ/bin/net9.0/browser-wasm/AppBundle/_framework/dotnet.js:3:30577

CompileError: WebAssembly.Module(): Compiling function #116384:"System_Linq_Expressions_System_Linq_Expressions..." failed: not enough arguments on the stack for call (need 4, got 2)

I could not reproduce this on macos, but haven't tried it on linux.

cc @kg @vargaz

Author: radical
Assignees: -
Labels:

arch-wasm, area-Codegen-AOT-mono, perf-pipeline

Milestone: -

ghost avatar Nov 06 '23 19:11 ghost

Is this a random failure ?

vargaz avatar Nov 06 '23 19:11 vargaz

This happened in the latest run, and only in one helix job which ran on PERFTIGER173 (which is not the one we have been seeing problems). Also, almost all the benchmarks failed with this error.

radical avatar Nov 06 '23 19:11 radical

Is it possible to get the binaries for this run ?

vargaz avatar Nov 06 '23 20:11 vargaz

The dotnet.framework.wasm file appears to be invalid, wasm-dis cannot disassemble it:

Fatal: error parsing wasm (try --debug for more info)

I can't reproduce this locally, i.e. the dotnet.framework.wasm file built locally from the files in the obj/ dir appears valid.

vargaz avatar Nov 07 '23 02:11 vargaz

I can't reproduce this locally, i.e. the dotnet.framework.wasm file built locally from the files in the obj/ dir appears valid.

Could this be https://github.com/dotnet/runtime/issues/88148 ?

radical avatar Nov 07 '23 16:11 radical

Here, the build succeeds, but the resulting .wasm file appears to be invalid.

vargaz avatar Nov 07 '23 17:11 vargaz