David Bolen <[email protected]> added the comment:
I can at least confirm that this commit is the source of the issue on the
Windows 10 buildbot. Interactively, it fails every time with it in place
(unlike the buildbot which has had the occasional success) and passes reliably
with it reverted.
The error arises during the SubprocessProactorTests test suite, but seemingly
not with a specific test, just something that shows up when the entire suite is
run. At least I haven't been able to get it to occur by running individual
tests.
Since the buildbot test output hides the underlying exception, here's the
details of the two unraisable exceptions in question from
test_asyncio.test_subprocess.SubprocessProactorTests. I enabled tracemalloc
but the original allocation is from the common utils module so probably not
that much extra help:
D:\test\cpython\lib\asyncio\windows_utils.py:112: ResourceWarning: unclosed
<PipeHandle handle=424>
_warn(f"unclosed {self!r}", ResourceWarning, source=self)
Object allocated at (most recent call last):
File "D:\test\cpython\lib\asyncio\windows_utils.py", lineno 164
self.stdout = PipeHandle(stdout_rh)
D:\test\cpython\lib\asyncio\windows_utils.py:112: ResourceWarning: unclosed
<PipeHandle handle=476>
_warn(f"unclosed {self!r}", ResourceWarning, source=self)
Object allocated at (most recent call last):
File "D:\test\cpython\lib\asyncio\windows_utils.py", lineno 166
self.stderr = PipeHandle(stderr_rh)
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at
0x000001DEB55D14B0>
Traceback (most recent call last):
File "D:\test\cpython\lib\asyncio\proactor_events.py", line 115, in __del__
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
File "D:\test\cpython\lib\asyncio\proactor_events.py", line 79, in __repr__
info.append(f'fd={self._sock.fileno()}')
File "D:\test\cpython\lib\asyncio\windows_utils.py", line 102, in fileno
raise ValueError("I/O operation on closed pipe")
ValueError: I/O operation on closed pipe
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at
0x000001DEB55D14B0>
Traceback (most recent call last):
File "D:\test\cpython\lib\asyncio\proactor_events.py", line 115, in __del__
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
File "D:\test\cpython\lib\asyncio\proactor_events.py", line 79, in __repr__
info.append(f'fd={self._sock.fileno()}')
File "D:\test\cpython\lib\asyncio\windows_utils.py", line 102, in fileno
raise ValueError("I/O operation on closed pipe")
ValueError: I/O operation on closed pipe
----------
nosy: +db3l
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41273>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com