[issue31247] test_xmlrpc leaks dangling threads

STINNER Victor report at bugs.python.org
Mon Aug 21 11:48:53 EDT 2017


New submission from STINNER Victor:

Using PR 3138 of bpo-31234, I noticed that test_xmlrpc leaks dangling threads. Example:

haypo at selma$ ./python -m test -v test_xmlrpc --fail-env-changed -m test.test_xmlrpc.MultiPathServerTestCase.test_path1
== CPython 3.7.0a0 (heads/master:0267128, Aug 21 2017, 17:23:11) [GCC 6.4.1 20170727 (Red Hat 6.4.1-1)]
(...)
Warning -- threading_cleanup() detected 0 leaked threads (count: 0, dangling: 2)
test_xmlrpc failed (env changed)
(...)

It seems like xmlrpc error handling creates reference leaks. Attached PR fixes the issue.

----------
components: Tests
messages: 300630
nosy: haypo
priority: normal
severity: normal
status: open
title: test_xmlrpc leaks dangling threads
type: resource usage
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31247>
_______________________________________


More information about the Python-bugs-list mailing list