[issue43423] Subprocess IndexError possible in _communicate

Eryk Sun report at bugs.python.org
Sat Mar 6 15:36:26 EST 2021


Eryk Sun <eryksun at gmail.com> added the comment:

The presumption I suppose is that these statements only execute if self.stdout_thread and/or self.stderr_thread completes successfully. I suppose that the read could fail or get canceled via CancelSynchronousIo(). Of course in that case you have a bigger problem than an IndexError.

On a related note, _communicate() needs significant changes in Windows. See bpo-43346 if you're interested.

----------
components: +Windows
nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43423>
_______________________________________


More information about the Python-bugs-list mailing list