Process crash when System.Diagnostics.Process can't find child process

Open
#116,385 6 comments 0 reactions 1 assignee View on GitHub

@adamsitnik is already working on this.

Since Mar 27, 2026.

Assessment

This issue has not been assessed yet.

Description

area-System.Diagnostics.Process

We saw a test run crash recently with the error below. I would hope crashing the process is not the desired behavior here.

Process terminated.
Error while reaping child. errno = 10
    at System.Environment.FailFast(System.Runtime.CompilerServices.StackCrawlMarkHandle, System.String, System.Runtime.CompilerServices.ObjectHandleOnStack, System.String)
    at System.Environment.FailFast(System.Threading.StackCrawlMark ByRef, System.String, System.Exception, System.String)
    at System.Environment.FailFast(System.String)
    at System.Diagnostics.ProcessWaitState.TryReapChild(Boolean)
    at System.Diagnostics.ProcessWaitState.CheckChildren(Boolean, Boolean)
    at System.Diagnostics.Process.OnSigChild(Int32, Int32)

Crash dumps and logs available at https://dev.azure.com/dnceng-public/public/_build/results?buildId=1060264&view=ms.vss-test-web.build-test-results-tab&runId=28602304&resultId=124848&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab (although the crash dump is for the code using System.Diagnostics.Process not the process it failed to find)

cc @tmds

Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/runtime

All issues in dotnet/runtime

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.