New submission from Davis Herring:

import.c's remove_module() is always called with an exception set and can 
invoke arbitrary code via deallocation; if that code calls PyErr_Clear() (or is 
sensitive to PyErr_Occurred()) it will lose (or be damaged by) the preexisting 
exception.

----------
components: Interpreter Core
messages: 241914
nosy: herring
priority: normal
severity: normal
status: open
title: remove_module() needs to save/restore exception state
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24048>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to