You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
intern_static() never detects a failed _Py_hashtable_set() (< -1 should be < 0) #157892
if (_Py_hashtable_set(INTERNED_STRINGS, s, s) <-1) {
)
_Py_hashtable_set() (Python/hashtable.c) returns 0 on success and -1 when the entry allocation fails, so this condition is never true and the Py_FatalError() call is unreachable.
The check has been like this since gh-120520, so 3.13, 3.14 and main are affected.
Activity
Vara715 commentedon Sep 27, 2026
hey, can i work on this one?
pochmann commentedon Sep 27, 2026
@Vara715 Why? What's wrong with the already existing PR? What would you do differently?
gh-157892: Fix error check on _Py_hashtable_set() in intern_static() (#…
[3.13] gh-157892: Fix error check on _Py_hashtable_set() in intern_st…
[3.14] gh-157892: Fix error check on _Py_hashtable_set() in intern_st…
[3.15] gh-157892: Fix error check on _Py_hashtable_set() in intern_st…