This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gvanrossum, neologix, pitrou, python-dev, tim.golden, vstinner
Date 2014-03-04.23:15:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393974907.33.0.0022617136525.issue19612@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, it looks like my patch is not enough: the test still fails sometimes :-/ It looks like the process was still running (poll() didn't return None) whereas stdin.write() got an OSError(errno.EINVAL).

http://buildbot.python.org/all/builders/x86%20Windows%20Server%202008%20%5BSB%5D%203.x/builds/2408/steps/test/logs/stdio

======================================================================
ERROR: test_communicate_epipe (test.test_subprocess.ProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "E:\home\cpython\buildslave\x86\3.x.snakebite-win2k8r2sp1-x86\build\lib\test\test_subprocess.py", line 1095, in test_communicate_epipe
    p.communicate(b"x" * 2**20)
  File "E:\home\cpython\buildslave\x86\3.x.snakebite-win2k8r2sp1-x86\build\lib\subprocess.py", line 951, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "E:\home\cpython\buildslave\x86\3.x.snakebite-win2k8r2sp1-x86\build\lib\subprocess.py", line 1187, in _communicate
    self.stdin.write(input)
OSError: [Errno 22] Invalid argument
History
Date User Action Args
2014-03-04 23:15:07vstinnersetrecipients: + vstinner, gvanrossum, pitrou, tim.golden, neologix, python-dev
2014-03-04 23:15:07vstinnersetmessageid: <1393974907.33.0.0022617136525.issue19612@psf.upfronthosting.co.za>
2014-03-04 23:15:07vstinnerlinkissue19612 messages
2014-03-04 23:15:06vstinnercreate