-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Free threading locking issues in listobject.c #127536
Copy link
Copy link
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
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