Skip to content

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

Open
@BrennanConroy

Description

@BrennanConroy

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions