Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-35182: fix communicate() crash after child closes its pipes #17020
+15
−2
Conversation
and800
added a commit
to and800/cpython
that referenced
this pull request
Oct 31, 2019
…onGH-17020) When communicate() is called in a loop, it crashes when the child process has already closed any piped standard stream, but still continues to be running
This comment has been minimized.
This comment has been minimized.
codecov
bot
commented
Oct 31, 2019
•
Codecov Report
@@ Coverage Diff @@
## master #17020 +/- ##
=========================================
Coverage ? 82.13%
=========================================
Files ? 1951
Lines ? 580578
Branches ? 44252
=========================================
Hits ? 476847
Misses ? 94109
Partials ? 9622
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
please port it to 3.7 & 3.8 |
and800
added a commit
to and800/cpython
that referenced
this pull request
Oct 31, 2019
…pythonGH-17020) When communicate() is called in a loop, it crashes when the child process has already closed any piped standard stream, but still continues to be running
This comment has been minimized.
This comment has been minimized.
Hi, I'm hitting this issue in production. Is there anything I could do to help get this merged? |
This comment has been minimized.
This comment has been minimized.
can you resolve the test_subprocess.py merge conflict? |
alpire
added a commit
to alpire/cpython
that referenced
this pull request
Jan 22, 2020
…onGH-17020) When communicate() is called in a loop, it crashes when the child process has already closed any piped standard stream, but still continues to be running
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
that's ok, let's proceed with your PR |
gpshead
added a commit
that referenced
this pull request
Jan 22, 2020
This comment has been minimized.
This comment has been minimized.
thanks! other PR merged. :) |
alpire
added a commit
to alpire/cpython
that referenced
this pull request
Jan 23, 2020
…pythonGH-17020) (pythonGH-18117) When communicate() is called in a loop, it crashes when the child process has already closed any piped standard stream, but still continues to be running Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com>. (cherry picked from commit d3ae95e) Co-authored-by: Alex Rebert <alex@forallsecure.com>
alpire
added a commit
to alpire/cpython
that referenced
this pull request
Jan 23, 2020
…pythonGH-17020) (pythonGH-18117) When communicate() is called in a loop, it crashes when the child process has already closed any piped standard stream, but still continues to be running Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com>. (cherry picked from commit d3ae95e) Co-authored-by: Alex Rebert <alex@forallsecure.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
and800 commentedOct 31, 2019
•
edited by bedevere-bot
When communicate() is called in a loop, it crashes when the child process has already closed any piped standard stream, but still continues to be running. The fix is trivial.
https://bugs.python.org/issue35182