dotnet / dotnet/jitutils

Possible deadlock in Utility::ExecuteProcess()

Open
#344 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
160
Forks
69
Avg merge
1h 56m
Merged PRs (30d)
1

Description

https://github.com/dotnet/jitutils/blob/fdf42eaa08fad997c56d8da50f4300a6c4353b12/src/util/util.cs#L239-L240

According to the [documentation](https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.standardoutput?redirectedfrom=MSDN&view=net-5.0#System_Diagnostics_Process_StandardOutput), calling `process.StandardOutput.ReadToEnd()` followed by `process.StandardError.ReadToEnd()` can lead to deadlock.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.