runtime: Exit Code 139 on random CLI xplat runs

Lately I’ve been seeing more and more “Expected command to pass but it did not. Exit Code: 139” issues on CLI runs.

In the past, when we’ve seen “Exit Code 139”, it means “segmentation fault” and usually in crossgened managed code.

I don’t have a solid repro yet.

Opening this issue to track all the places we’ve seen it. Maybe from logging these failures, and looking through the logs we will be able to determine what is the exact cause of the Exit Code 139.

Here are the first logs:

http://dotnet-ci.cloudapp.net/job/dotnet_cli/job/rel_1.0.0-preview2/job/debug_debian8.2_x64_prtest/97/testReport/junit/Microsoft.DotNet.Tests/PackagedCommandTests/TestProjectDependencyIsNotAvailableThroughDriver/

Expected command to pass but it did not. File Name: /mnt/resource/j/workspace/dotnet_cli/rel_1.0.0-preview2/debug_debian8.2_x64_prtest/artifacts/debian.8-x64/stage2/dotnet Arguments: --verbose build --build-profile "/mnt/resource/j/workspace/dotnet_cli/rel_1.0.0-preview2/debug_debian8.2_x64_prtest/test/dotnet.Tests/bin/Debug/netcoreapp1.0/TestAssets/TestProjects/AppWithDirectDependency/project.json" Exit Code: 139 StdOut: StdErr:

https://mseng.visualstudio.com/dotnetcore/_build?favDefinitionId=3598&_a=summary&buildId=3052704

2016-06-09T17:36:40.6997100Z     Microsoft.DotNet.Tools.Builder.Tests.BuildPerformanceTest.IncrementalSkipAllNoDependenciesInGraph_TwoTargetGraphLarge [FAIL]
2016-06-09T17:36:40.7002620Z       Expected command to pass but it did not.
2016-06-09T17:36:40.7008200Z       File Name: /opt/code/artifacts/centos.7-x64/stage2/dotnet
2016-06-09T17:36:40.7016130Z       Arguments: --verbose build  --no-dependencies  "/opt/code/test/Performance/bin/Release/netcoreapp1.0/IncrementalSkipAllNoDependenciesInGraph_TwoTargetGraphLarge/PerformanceTestProjects/TwoTargetGraphLarge/TwoTargetLargeP4"    --framework netcoreapp1.0           
2016-06-09T17:36:40.7022120Z       Exit Code: 139
2016-06-09T17:36:40.7026560Z       StdOut:
2016-06-09T17:36:40.7030930Z       
2016-06-09T17:36:40.7036240Z       StdErr:

https://mseng.visualstudio.com/dotnetcore/_build?favDefinitionId=3603&_a=summary&buildId=3053398

2016-06-09T21:08:52.706Z: Executing - /Users/SHAREDADMIN/vsoagent/_work/6/s/artifacts/osx.10.11-x64/stage2/dotnet --verbose build --build-profile   "/Users/SHAREDADMIN/vsoagent/_work/6/s/artifacts/osx.10.11-x64/tests/artifacts/5c513543-b685-4730-88ad-47d72b6ddccb/e2etestroot/project.json" -o "/Users/SHAREDADMIN/vsoagent/_work/6/s/artifacts/osx.10.11-x64/tests/artifacts/5c513543-b685-4730-88ad-47d72b6ddccb/e2etestroot/test space/bin"   --framework netcoreapp1.0           
2016-06-09T21:08:52.830Z: Telemetry is: Enabled
2016-06-09T21:08:53.682Z:     Microsoft.DotNet.Tests.EndToEnd.EndToEndTest.TestDotnetBuild [FAIL]
2016-06-09T21:08:53.682Z:       Expected command to pass but it did not.
2016-06-09T21:08:53.682Z:       File Name: /Users/SHAREDADMIN/vsoagent/_work/6/s/artifacts/osx.10.11-x64/stage2/dotnet
2016-06-09T21:08:53.682Z:       Arguments: --verbose build --build-profile   "/Users/SHAREDADMIN/vsoagent/_work/6/s/artifacts/osx.10.11-x64/tests/artifacts/5c513543-b685-4730-88ad-47d72b6ddccb/e2etestroot/project.json" -o "/Users/SHAREDADMIN/vsoagent/_work/6/s/artifacts/osx.10.11-x64/tests/artifacts/5c513543-b685-4730-88ad-47d72b6ddccb/e2etestroot/test space/bin"   --framework netcoreapp1.0           
2016-06-09T21:08:53.682Z:       Exit Code: 138

Technically that one is exit code 138, but this is OSX so that could be the difference.

https://mseng.visualstudio.com/dotnetcore/_build?favDefinitionId=3605&_a=summary&buildId=3052708

2016-06-09T17:35:55.829Z: Build failed: Microsoft.DotNet.Cli.Build.Framework.BuildFailureException: Command failed with exit code 139: /opt/code/artifacts/ubuntu.14.04-x64/stage2/dotnet "build" "--configuration" "Release"
2016-06-09T17:35:55.829Z: 
2016-06-09T17:35:55.829Z:    at Microsoft.DotNet.Cli.Build.TestTargets.BuildTests(BuildTargetContext c)
2016-06-09T17:35:55.829Z:    at Microsoft.DotNet.Cli.Build.Framework.BuildContext.ExecTarget(BuildTarget target)

@brthor @piotrpMSFT @gkhanna79 @sergiy-k @JohnChen0 @adityamandaleeka @joshfree

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 37 (37 by maintainers)

Most upvoted comments

Thanks - that worked.