Race between Py_SetRecursionLimit and _Py_LeaveRecursiveCallPy under free-threading #128717
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-free-threading
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Under Python 3.13 at commit 65da5db, we see the following TSAN race:
TSAN report:
Looks like the per-thread update of
p->py_recursion_remaining
is racy.CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: