Skip to content

Iterating a cache segfaults on 3.*t while another thread writes to it - #98

Merged
awolverp merged 4 commits into
mainfrom
fix94
Oct 1, 2026
Merged

awolverp merged 4 commits into
mainfrom
fix94

Conversation

@awolverp

@awolverp awolverp commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Fix #94.

Replacing the value of an existing key while iterating was not a problem (except for LRUCache), and this caused a segfault in free-threading versions. From now on, in all free-threading versions, this will raise a RuntimeError in all cache implementations.

(except for LRUCache), and this caused a segfault in free-threaded
versions. From now on, in all free-threaded versions, this will raise a
RuntimeError in all cache implementations.
@awolverp
awolverp merged commit 1c4ec7a into main Oct 1, 2026
12 checks passed
@awolverp
awolverp deleted the fix94 branch October 1, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Iterating a cache segfaults on 3.14t while another thread writes to it

1 participant