[New-bugs-announce] [issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

Niklas Fiekas report at bugs.python.org
Fri Jan 11 14:24:51 EST 2019


New submission from Niklas Fiekas <niklas.fiekas at backscattering.de>:

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

----------
components: asyncio
files: subprocess-exec-test.py
messages: 333501
nosy: asvetlov, niklasf, yselivanov
priority: normal
severity: normal
status: open
title: _UnixSubprocessTransport leaks socket pair if Popen fails
type: resource usage
versions: Python 3.8
Added file: https://bugs.python.org/file48043/subprocess-exec-test.py

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


More information about the New-bugs-announce mailing list