[issue18019] dictionary views lead to segmentation fault

Marcin Szamotulski report at bugs.python.org
Mon May 20 04:18:42 CEST 2013


New submission from Marcin Szamotulski:

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.

----------
messages: 189632
nosy: Marcin.Szamotulski
priority: normal
severity: normal
status: open
title: dictionary views lead to segmentation fault
type: crash
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18019>
_______________________________________


More information about the Python-bugs-list mailing list