[issue25406] OrderedDict.move_to_end may cause crash in python 3.5
Cruise Liu
report at bugs.python.org
Wed Oct 14 09:20:03 EDT 2015
New submission from Cruise Liu:
Following code will crash python. Tested on linux and windows.
Python 3.5.0 (default, Sep 20 2015, 11:28:25)
[GCC 5.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import collections
>>> x = collections.OrderedDict([ ('a', 1), ('b', 2), ('c', 3) ])
>>> x.move_to_end('c', last = False)
>>> x.move_to_end('a', last = False)
>>> x
Segmentation fault (core dumped)
----------
components: Library (Lib)
messages: 252991
nosy: Cruise Liu
priority: normal
severity: normal
status: open
title: OrderedDict.move_to_end may cause crash in python 3.5
type: crash
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25406>
_______________________________________
More information about the Python-bugs-list
mailing list