Skip to content

Possible deadlock in Utility::ExecuteProcess() #344

@BruceForstall

Description

@BruceForstall

jitutils/src/util/util.cs

Lines 239 to 240 in fdf42ea

string stdout = process.StandardOutput.ReadToEnd();
string stderr = process.StandardError.ReadToEnd();

According to the documentation, calling process.StandardOutput.ReadToEnd() followed by process.StandardError.ReadToEnd() can lead to deadlock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions