[New-bugs-announce] [issue33712] OrderedDict can set an exception in tp_clear

Serhiy Storchaka report at bugs.python.org
Thu May 31 08:08:48 EDT 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

The tp_clear handler of OrderedDict can set an exception when fail to allocate a nodes cache for an empty dict. An exception in tp_clear is not expected and caused a crash in the garbage collector. In the master branch it will cause just writing a traceback to stderr (see issue33622), but in any case it would be better to handle the failure locally in OrderedDict. Perhaps the cache for an empty dict is not needed.

----------
components: Interpreter Core
messages: 318287
nosy: eric.snow, inada.naoki, serhiy.storchaka
priority: normal
severity: normal
status: open
title: OrderedDict can set an exception in tp_clear
type: crash
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33712>
_______________________________________


More information about the New-bugs-announce mailing list