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
dictionary views lead to segmentation fault #62219
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2013-05-20.02:39:53.805>created_at=<Date2013-05-20.02:18:42.378>labels= ['type-crash']
title='dictionary views lead to segmentation fault'updated_at=<Date2013-05-20.02:39:53.798>user='https://bugs.python.org/MarcinSzamotulski'
This simple snipet will crash python:
>>> d={}
>>> v=d.viewvalues()
>>> k=d.viewkeys()
>>> d[v]=k
>>> k
Segmentation fault
I am using python2.7. Python3.2 does not have views while .keys() and .values() methods raise RuntimeError: maximum recursion depth exceeded, which is expected.
Activity
MarcinSzamotulski commentedon May 20, 2013
I am using python2.7. Python3.2 does not have views while .keys() and .values() methods raise RuntimeError: maximum recursion depth exceeded, which is expected.
python-dev commentedon May 20, 2013
New changeset 3568f8f1ccac by Benjamin Peterson in branch '2.7':
add missing NULL check (closes bpo-18019)
http://hg.python.org/cpython/rev/3568f8f1ccac