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_no_refcycle_through_target sometimes fails in test_threading #46748
Comments
This is a reminder for the failing test which is affecting some buildbots. |
This is a tentative patch. I can't verify it fixes anything but at least
|
Hmm, even with a Py_DEBUG build I can't reproduce the bug. |
Hmm, I think I know what happens. t_bootstrap() in threadmodule.c calls The problem is that at this point, t_bootstrap() still (rightly) holds a So I think it's the test that is flaky. Instead of calling the join() |
I'm attaching a patch which tries to make the test a bit less flaky |
I'll look at this tonight. |
I think I've confirmed your diagnosis. If I add a _sleep(.01) to |
Fixed in r61984. I believe the exception info was actually keeping the |
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: