dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.27k stars 4.73k forks source link

[8.0][wasm] Exit code 137 returned from docker process after executing containerHandlerInvoker.js, cs files specified multiple times #99423

Open carlossanlop opened 8 months ago

carlossanlop commented 8 months ago

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=593479 Build error leg or test failing: browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter - Build Tests

Error Message

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

{
  "ErrorMessage": "##[error]Exit code 137 returned from process: file name '/usr/bin/docker', arguments 'exec -i -u 1000  -w /home/cloudtest_azpcontainer",
  "BuildRetry": true,
  "ExcludeConsoleLog": false
}

First, a bunch of warning messages like this:

##[warning]CSC(0,0): warning CS2002: Source file '/__w/1/s/artifacts/tests/coreclr/obj/browser.wasm.Release/Managed/JIT/HardwareIntrinsics/General/Vector128_1/Vector128_1_r/Vector128_1_r/gen/op_LeftShift.Byte.cs' specified multiple times [/__w/1/s/src/tests/JIT/HardwareIntrinsics/General/Vector128_1/Vector128_1_r.csproj]

And then a final error message:

##[error]Exit code 137 returned from process: file name '/usr/bin/docker', arguments 'exec -i -u 1000  -w /home/cloudtest_azpcontainer 476633c25f864844c61bcb34e02519932b7de634f433aa15a2aeeaf5e3a8752a /__a/externals/node/bin/node /__w/_temp/containerHandlerInvoker.js'.

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=593479 Error message validated: [##[error]Exit code 137 returned from process: file name '/usr/bin/docker', arguments 'exec -i -u 1000 -w /home/cloudtest_azpcontainer] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 3/7/2024 7:05:43 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
ilonatommy commented 3 months ago

Between net9 and net8 there was a change in how we build for NativeAOT_* lanes, introduced in https://github.com/dotnet/runtime/pull/101270. The code 137 is OOM and skipping building host looks like a probable fix for it. I am backporting the mentioned PR.

Edit: if it won't work, another PR that was optimizing this lane is: https://github.com/dotnet/runtime/pull/98939.

ilonatommy commented 3 months ago

The initial analysis was incorrect, the issue is not purely NativeAOT-related.

dotnet-policy-service[bot] commented 3 months ago

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.