New submission from Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue33713>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to