classification
Title: test_logging leaks dangling threads on FreeBSD
Type: resource usage Stage:
Components: Tests Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: haypo, koobs
Priority: normal Keywords: buildbot

Created on 2017-07-03 08:09 by haypo, last changed 2017-08-16 08:47 by haypo.

Messages (7)
msg297540 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-03 08:09
test_output (test.test_logging.HTTPHandlerTest) ... ok
Warning -- threading_cleanup() failed to cleanup -1 threads after 3 sec (count: 0, dangling: 1)

See also the previous test_logging threads issue, bpo-30131.
msg297541 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-03 08:10
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.x/builds/541
msg297574 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-03 13:05
I failed to reproduce the issue by running test_logging in a loop on Koobs's FreeBSD CURRENT.
msg298521 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-17 14:06
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/587/steps/test/logs/stdio

test_listen_config_10_ok (test.test_logging.ConfigDictTest) ... Warning -- threading_cleanup() failed to cleanup -1 threads after 3 sec (count: 0, dangling: 1)
ok

1 test altered the execution environment:
    test_logging

Tests result: ENV CHANGED
msg299838 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-08-07 09:56
Another test_listen_config_10_ok() example:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/674/steps/test/logs/stdio

test_config_8a_ok (test.test_logging.ConfigDictTest) ... ok
test_config_9_ok (test.test_logging.ConfigDictTest) ... ok
test_listen_config_10_ok (test.test_logging.ConfigDictTest) ... Warning -- threading_cleanup() failed to cleanup -1 threads after 2 sec (count: 0, dangling: 1)
ok
test_listen_config_1_ok (test.test_logging.ConfigDictTest) ... ok
test_listen_verify (test.test_logging.ConfigDictTest) ... ok
test_out_of_order (test.test_logging.ConfigDictTest) ... ok
test_manager_loggerclass (test.test_logging.ManagerTest) ... ok
msg300108 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-08-10 15:44
bpo-31041 has been marked as a duplicate of this issue. Extracts:

test_handle_called_with_mp_queue (test.test_logging.QueueListenerTest) ...
Warning -- threading_cleanup() failed to cleanup -1 threads after 4 sec (count: 0, dangling: 1)

and

test_handle_called_with_mp_queue (test.test_logging.QueueListenerTest) ...
Warning -- threading_cleanup() failed to cleanup -1 threads after 3 sec (count: 0, dangling: 1)

--

"Maybe threading_cleanup() should call support.gc_collect()."
msg300336 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-08-16 08:47
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/698/steps/test/logs/stdio

test_output (test.test_logging.UnixDatagramHandlerTest) ... ok
test_output (test.test_logging.UnixSysLogHandlerTest) ... ok
test__all__ (test.test_logging.MiscTestCase) ... ok
test_handle_called_with_mp_queue (test.test_logging.QueueListenerTest) ... Warning -- threading_cleanup() failed to cleanup -1 threads after 3 sec (count: 0, dangling: 1)
ok
test_handle_called_with_queue_queue (test.test_logging.QueueListenerTest) ... ok
test_no_messages_in_queue_after_stop (test.test_logging.QueueListenerTest) ... ok
History
Date User Action Args
2017-08-16 08:47:35hayposetmessages: + msg300336
2017-08-11 00:01:38hayposettitle: test_logging leaks a "dangling" threads on FreeBSD -> test_logging leaks dangling threads on FreeBSD
2017-08-10 15:44:34hayposetmessages: + msg300108
2017-08-10 15:43:31haypolinkissue31041 superseder
2017-08-10 15:43:02hayposettitle: HTTPHandlerTest of test_logging leaks a "dangling" thread on AMD64 FreeBSD CURRENT Non-Debug 3.x -> test_logging leaks a "dangling" threads on FreeBSD
2017-08-07 09:56:58hayposetmessages: + msg299838
2017-07-17 14:06:53hayposetmessages: + msg298521
2017-07-03 13:05:12hayposetmessages: + msg297574
2017-07-03 08:10:55hayposettitle: HTTPHandlerTest of test_logging leaks a "dangling" thread on FreeBSD CURRENT -> HTTPHandlerTest of test_logging leaks a "dangling" thread on AMD64 FreeBSD CURRENT Non-Debug 3.x
2017-07-03 08:10:46hayposettitle: HTTPHandlerTest of test_logging leaks a "dangling" thread -> HTTPHandlerTest of test_logging leaks a "dangling" thread on FreeBSD CURRENT
2017-07-03 08:10:40hayposetmessages: + msg297541
2017-07-03 08:09:05haypocreate