roslyn: error MSB6006: "csc.dll" exited with code 137

@khteh commented on Thu Oct 10 2019

Steps to reproduce

Screenshot from 2019-10-11 10-54-24

Expected behavior

Actual behavior

Environment data

dotnet --info output:

$ dn --info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100
 Commit:    04339c3a26

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  19.04
 OS Platform: Linux
 RID:         ubuntu.19.04-x64
 Base Path:   /usr/share/dotnet-3.0.100/sdk/3.0.100/

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  3.0.100 [/usr/share/dotnet-3.0.100/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0 [/usr/share/dotnet-3.0.100/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/share/dotnet-3.0.100/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Reply from CircleCI:

Exit code 137 typically means that your process is getting killed because it is running out of memory.

Could that point to potentially memory leak in the toolchain?

Free up more space for Docker.

image

Happend right now on our azure build agents:

image

##[error] [174.86s] /tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Roslyn/Microsoft.CSharp.Core.targets(70,5): error MSB6006: "csc.dll" exited with code 137. [/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj] ##[error] [174.87s] /tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Roslyn/Microsoft.CSharp.Core.targets(70,5): error MSB6006: "csc.dll" exited with code 137. [/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiSrvExtNet/Core/TcHmiSrvExtNet.Core/1/TcHmiSrvExtNet.Core_1.csproj] ##[error] [174.88s] /tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Roslyn/Microsoft.CSharp.Core.targets(70,5): error MSB6006: "csc.dll" exited with code 137. [/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/PluginWebSocket/PluginWebSocket/PluginWebSocket.csproj] [175.18s] [175.18s] Build FAILED. [175.18s] [175.18s] /usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.proj(6,3): warning MSB4011: "/tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props" cannot be imported again. It was already imported at "/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj". This is most likely a build authoring error. This subsequent import will be ignored. [175.18s] /usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj : warning MSB4011: "/tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.targets" cannot be imported again. It was already imported at "/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.proj (202,3)". This is most likely a build authoring error. This subsequent import will be ignored. [175.18s] /usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.proj(6,3): warning MSB4011: "/tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props" cannot be imported again. It was already imported at "/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj". This is most likely a build authoring error. This subsequent import will be ignored. [175.18s] /usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj : warning MSB4011: "/tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.targets" cannot be imported again. It was already imported at "/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.proj (202,3)". This is most likely a build authoring error. This subsequent import will be ignored. ##[error] [175.18s] /tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Roslyn/Microsoft.CSharp.Core.targets(70,5): error MSB6006: "csc.dll" exited with code 137. [/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj] ##[error] [175.18s] /tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Roslyn/Microsoft.CSharp.Core.targets(70,5): error MSB6006: "csc.dll" exited with code 137. [/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiSrvExtNet/Core/TcHmiSrvExtNet.Core/1/TcHmiSrvExtNet.Core_1.csproj] ##[error] [175.18s] /tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Roslyn/Microsoft.CSharp.Core.targets(70,5): error MSB6006: "csc.dll" exited with code 137. [/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/PluginWebSocket/PluginWebSocket/PluginWebSocket.csproj] [175.18s] 4 Warning(s) [175.18s] 3 Error(s)