-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Free threading locking issues in listobject.c
#127536
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
Comments
listobject.c
listobject.c
Ah.. it's my fault, I will take a look at it |
Thanks @corona10. I started some work on this (but didn't finish) yesterday. Here's what I had in case it's helpful: |
Ah in that case please go ahead |
We were missing locks around some list operations in the free threading build.
We were missing locks around some list operations in the free threading build.
…27580) We were missing locks around some list operations in the free threading build. (cherry picked from commit e51da64) Co-authored-by: Sam Gross <[email protected]>
@colesbury Are the build bot failures possibly related to that one or not? if not, I think we can close this one. |
I think the buildbot failures are unrelated. The other s390x 3.13 buildbots are passing. https://buildbot.python.org/#/builders/1469 is passing, but the runs slowed down (including on |
We were missing locks around some list operations in the free threading build.
Bug report
In #127524, @mpage suggested adding an assert to check that the list object is locked when calling
ensure_shared_on_resize
. This uncovers a few more locking issues.Additionally, we may return out of the critical section without unlocking here:
cpython/Objects/listobject.c
Lines 956 to 964 in c7dec02
Linked PRs
The text was updated successfully, but these errors were encountered: