Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible deadlock in Utility::ExecuteProcess() #344

Open
BruceForstall opened this issue Nov 9, 2021 · 1 comment
Open

Possible deadlock in Utility::ExecuteProcess() #344

BruceForstall opened this issue Nov 9, 2021 · 1 comment

Comments

@BruceForstall
Copy link
Member

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.

@erozenfeld
Copy link
Member

I fixed a similar issue in PMIDriver.cs in #252 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants