-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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_free_threading.test_dict
on TSAN/free-threading is flaky
#130519
Comments
I'm a bit stuck with my last PR. Do you want me to look into this? |
You can investigate if you want but maybe free-threading experts have an idea of why it fails. cc @ZeroIntensity maybe you've encountered this beforehand? |
I haven't seen it. I think there's a thread somewhere where you're supposed to report flaky TSan failures. |
This is a good place to report it, thanks. I think the problem is that We extended it to also executing This invalidates some assumptions. For example, the head of the work queue can change during a call to Lines 1258 to 1268 in c5f925c
cc @DinoV |
The `free_work_item()` function in QSBR may call arbitrary code via Python object destructors, which may reenter the QSBR code. Reorder the processing of work items to be robust to reentrancy. Also fix the TODO for the out of memory situation.
The `free_work_item()` function in QSBR may call arbitrary code via Python object destructors, which may reenter the QSBR code. Reorder the processing of work items to be robust to reentrancy. Also fix the TODO for the out of memory situation.
Bug report
Bug description:
We have:
I'm not sure if it's a real bug or not. Victor suggested me to open an issue for this one. Maybe there's already one that exists though.
See https://github.com/python/cpython/actions/runs/13225352402/job/36915529351?pr=129175#step:12:44 for the log (hopefully it will stay).
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: