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
DefaultAtomDict.__missing__ increfs the NULL from PyDict_GetItem leading to seg fault #277
PyDict_GetItem returns a borrowed reference or NULL, and it suppresses exceptions raised by __hash__/__eq__. The result is passed to cppy::incref with no NULL check, so a key whose __hash__ raises on this lookup makes Py_INCREF(NULL) dereference a null pointer.
Exception ignored in PyDict_GetItem(); consider using PyDict_GetItemRef() or PyDict_GetItemWithError():Traceback (most recent call last): File "min.py", line 14, in __hash__ raise RuntimeError("Key.__hash__")RuntimeError: Key.__hash__Segmentation fault (core dumped)
Activity
Fixes for #277 and #278 (#279)
MatthieuDartiailh commentedon Nov 3, 2026
Closed by #279