classification
Title: test_multiprocessing_fork: test_del_pool() leaks dangling threads and processes on AMD64 FreeBSD CURRENT Shared 3.x
Type: Stage: resolved
Components: Tests Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: koobs, vstinner
Priority: normal Keywords:

Created on 2018-12-05 01:35 by vstinner, last changed 2018-12-12 16:04 by vstinner. This issue is now closed.

Messages (2)
msg331086 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-05 01:35
Previous issue fixing such bug: bpo-33676.

https://buildbot.python.org/all/#/builders/168/builds/332

test_empty_string (test.test_multiprocessing_fork.WithThreadsTestPoll) ... ok
test_strings (test.test_multiprocessing_fork.WithThreadsTestPoll) ... ok
test_apply (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_async (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_async_timeout (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_context (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_del_pool (test.test_multiprocessing_fork.WithThreadsTestPool) ... Warning -- threading_cleanup() failed to cleanup 1 threads (count: 8, dangling: 9)
Dangling thread: <Thread(Thread-144, started daemon 34400207360)>
Dangling thread: <_MainThread(MainThread, started 34370793472)>
Dangling thread: <DummyProcess(Thread-146, started daemon 34400142336)>
Dangling thread: <DummyProcess(Thread-142, started daemon 34400199680)>
Dangling thread: <DummyProcess(Thread-140, started daemon 34400198400)>
Dangling thread: <DummyProcess(Thread-139, started daemon 34400200960)>
Dangling thread: <Thread(Thread-143, started daemon 34400143616)>
Dangling thread: <Thread(Thread-145, started daemon 34400204800)>
Dangling thread: <DummyProcess(Thread-141, started daemon 34400208640)>
ok
test_empty_iterable (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_imap (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_imap_handle_iterable_exception (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
test_imap_unordered (test.test_multiprocessing_fork.WithThreadsTestPool) ... ok
msg331704 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-12 16:04
I reverted the change which addd test_del_pool():
https://bugs.python.org/issue34172#msg331198

So this issue can be fixed.
History
Date User Action Args
2018-12-12 16:04:20vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg331704

stage: resolved
2018-12-05 09:35:04koobssetnosy: + koobs
2018-12-05 01:35:56vstinnercreate