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
[EASY] test_thread: Warning -- reap_children() reaped child process #75333
Comments
It seems like an unit test of test_thread leaks a process. A bisection found the following 2 tests are enough to get the warning:
I bet that test_forkinthread() doesn't wait correctly for the child process (fork) completion using os.waitpid() or something like that. Example 1 (from Refleak buildbot): haypo@selma$ ./python -m test -R 3:3 test_thread Total duration: 5 sec Example 2 (only run the 2 methods): haypo@selma$ ./python -m test -m test.test_thread.TestForkInThread.test_forkinthread -m test.test_thread.LockTests.test_acquire_contended -v test_thread test_thread 0:00:00 load avg: 0.27 [1/2] test_thread ---------------------------------------------------------------------- OK ---------------------------------------------------------------------- OK |
Thank you Ammar Askar for your contribution! |
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: