classification
Title: _UnixSubprocessTransport leaks socket pair if Popen fails
Type: resource usage Stage: patch review
Components: asyncio Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, niklasf, yselivanov
Priority: normal Keywords: patch, patch, patch

Created on 2019-01-11 19:24 by niklasf, last changed 2019-01-14 14:09 by niklasf.

Files
File name Uploaded Description Edit
subprocess-exec-test.py niklasf, 2019-01-11 19:24
Pull Requests
URL Status Linked Edit
PR 11553 open niklasf, 2019-01-14 14:09
PR 11553 open niklasf, 2019-01-14 14:09
PR 11553 open niklasf, 2019-01-14 14:09
Messages (1)
msg333501 - (view) Author: Niklas Fiekas (niklasf) * Date: 2019-01-11 19:24
Output of attached test case:

non-existing indeed
subprocess-exec-test.py:11: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
  print("non-existing indeed")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
subprocess-exec-test.py:11: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
  print("non-existing indeed")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
.
----------------------------------------------------------------------
Ran 1 test in 0.007s

OK
History
Date User Action Args
2019-01-14 14:09:55niklasfsetkeywords: + patch
stage: patch review
pull_requests: + pull_request11186
2019-01-14 14:09:47niklasfsetkeywords: + patch
stage: (no value)
pull_requests: + pull_request11185
2019-01-14 14:09:39niklasfsetkeywords: + patch
stage: (no value)
pull_requests: + pull_request11184
2019-01-11 19:24:51niklasfcreate