Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_multiprocessing_fork: test_del_pool() leaks dangling threads and processes on AMD64 FreeBSD CURRENT Shared 3.x #79594

Closed
vstinner opened this issue Dec 5, 2018 · 2 comments
Labels
3.8 only security fixes tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

vstinner commented Dec 5, 2018

BPO 35413
Nosy @vstinner, @koobs

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2018-12-12.16:04:20.645>
created_at = <Date 2018-12-05.01:35:56.255>
labels = ['3.8', 'tests']
title = 'test_multiprocessing_fork: test_del_pool() leaks dangling threads and processes on AMD64 FreeBSD CURRENT Shared 3.x'
updated_at = <Date 2018-12-12.16:04:20.643>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2018-12-12.16:04:20.643>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2018-12-12.16:04:20.645>
closer = 'vstinner'
components = ['Tests']
creation = <Date 2018-12-05.01:35:56.255>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 35413
keywords = []
message_count = 2.0
messages = ['331086', '331704']
nosy_count = 2.0
nosy_names = ['vstinner', 'koobs']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue35413'
versions = ['Python 3.8']

@vstinner
Copy link
Member Author

vstinner commented Dec 5, 2018

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

@vstinner vstinner added 3.8 only security fixes tests Tests in the Lib/test dir labels Dec 5, 2018
@vstinner
Copy link
Member Author

I reverted the change which addd test_del_pool():
https://bugs.python.org/issue34172#msg331198

So this issue can be fixed.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.8 only security fixes tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

1 participant