[issue43845] test_concurrent_futures leaks many dangling threads on FreeBSD

2021-04-16 Thread hai shi


Change by hai shi :


--
nosy: +shihai1991

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43845] test_concurrent_futures leaks many dangling threads on FreeBSD

2021-04-14 Thread STINNER Victor


STINNER Victor  added the comment:

See also:

* bpo-39995: test_concurrent_futures: 
ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] 
Bad file descriptor
* bpo-35809: test_concurrent_futures.ProcessPoolForkExecutorDeadlockTest fails 
intermittently on Travis and passes in verbose mode

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43845] test_concurrent_futures leaks many dangling threads on FreeBSD

2021-04-14 Thread STINNER Victor


New submission from STINNER Victor :

test_idle_process_reuse_multiple() of test_concurrent_futures failed on AMD64 
FreeBSD Shared 3.x, but then passed when re-run in verbose mode.
https://buildbot.python.org/all/#/builders/483/builds/1073

Moreover, test_concurrent_futures leaked many dangling threads.


0:04:31 load avg: 1.95 [163/427/1] test_concurrent_futures failed (3 min 29 
sec) -- running: test_nntplib (2 min 17 sec)
Warning -- threading_cleanup() failed to cleanup 2 threads (count: 2, dangling: 
3)
Warning -- Dangling thread: <_ExecutorManagerThread(Thread-41, started 
34386025472)>
Warning -- Dangling thread: <_MainThread(MainThread, started 34374492160)>
Warning -- Dangling thread: 
Warning -- threading_cleanup() failed to cleanup -2 threads (count: 0, 
dangling: 1)
Warning -- Dangling thread: <_MainThread(MainThread, started 34374492160)>
(...)
==
FAIL: test_idle_process_reuse_multiple 
(test.test_concurrent_futures.ProcessPoolForkProcessPoolExecutorTest)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/test/test_concurrent_futures.py",
 line 1018, in test_idle_process_reuse_multiple
self.assertLessEqual(len(executor._processes), 2)
AssertionError: 3 not less than or equal to 2

Stdout:
0.43s 

--

Ran 226 tests in 209.441s

FAILED (failures=1, skipped=6)
test test_concurrent_futures failed
(...)
1 re-run test:
test_concurrent_futures

Total duration: 16 min 7 sec
Tests result: FAILURE then SUCCESS

--
components: Tests
messages: 391070
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_concurrent_futures leaks many dangling threads on FreeBSD
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com