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
regrtest fails to stop test_multiprocessing_spawn worker process #82384
Comments
I ran tests locally on my laptop. Tests were running for 2 minutes. I interrupted the process by pressing CTRL+c: regrtest failed to stop immediately the worker <MultiprocessThread alive test=test_multiprocessing_spawn pid=28037>. Then, regrtest main process hangs in threading._shutdown(). I had to press again CTRL+c to unblock it :-( This bug may be related to bpo-37531 "Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS". See also bpo-38190 "regrtest: test suite completes but Tests Result is not displayed and the process hangs" which might be related? vstinner@apu$ make && ./python -m test -j0 -r == Tests result: INTERRUPTED == 177 tests omitted: 226 tests OK. 16 tests skipped: Total duration: 2 min 34 sec ^CWarning -- Unraisable exception
Exception ignored in: <module 'threading' from '/home/vstinner/python/master/Lib/threading.py'>
Traceback (most recent call last):
File "/home/vstinner/python/master/Lib/threading.py", line 1390, in _shutdown
lock.acquire()
KeyboardInterrupt: |
Moreover, even after I stopped regrtest, two processes are still running in the background :-( 6535 pts/2 Sl 0:00 /home/vstinner/python/master/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=4, pipe_handle=9) --multiprocessing-fork 6560 pts/2 Sl 0:00 /home/vstinner/python/master/python -c from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=4, pipe_handle=11) --multiprocessing-fork |
I worked around the issue, but see bpo-37531 for the root issue which is not fixed yet. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: