[New-bugs-announce] [issue33713] memoryview can set an exception in tp_clear

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


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

The tp_clear handler of memoryview can set an exception when fail to release the buffer. 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 memoryview. I don't know what is the best solution: silencing an error, writing a traceback with more detailed information, or resurrecting the buffer object.

----------
components: Interpreter Core
messages: 318288
nosy: serhiy.storchaka, skrah
priority: normal
severity: normal
status: open
title: memoryview can set an exception in tp_clear
type: crash
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

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


More information about the New-bugs-announce mailing list