[issue41739] test_logging: test_race_between_set_target_and_flush() leaks threads (threading_cleanup() failed to cleanup ...)

STINNER Victor report at bugs.python.org
Sun Oct 11 18:01:17 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

Cool, my threading change works as expected! The name of the target function was logged.

https://buildbot.python.org/all/#/builders/509/builds/172

0:00:28 load avg: 3.58 [ 36/424/1] test_logging failed (env changed)
Warning -- threading_cleanup() failed to cleanup 2 threads (count: 2, dangling: 3)
Warning -- Dangling thread: <Thread(Thread-4 (removeTarget), started daemon 4396862667024)>
Warning -- Dangling thread: <Thread(Thread-11 (removeTarget), started daemon 4396595259664)>
Warning -- Dangling thread: <_MainThread(MainThread, started 4396920310576)>

So leaked threads are running removeTarget() which come from MemoryHandlerTest.test_race_between_set_target_and_flush().

----------
title: test_logging: threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2) -> test_logging: test_race_between_set_target_and_flush() leaks threads (threading_cleanup() failed to cleanup ...)

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


More information about the Python-bugs-list mailing list