[New-bugs-announce] [issue18507] import_init() should not use Py_FatalError() but return an error

STINNER Victor report at bugs.python.org
Fri Jul 19 23:39:11 CEST 2013


New submission from STINNER Victor:

The import_init() function calls Py_FatalError() at any error. This is not kind for Py_NewInterpreter() which calls import_init(): Py_NewInterpreter() exits Python with a fatal error, instead of returning NULL, on import_init() failure. The pyfailmalloc tool can be used to easily inject faults (memory allocation failure) to test this issue: see issue #18408.

import_init() should return an error instead of using Py_FatalError().

----------
messages: 193377
nosy: brett.cannon, haypo, ncoghlan
priority: normal
severity: normal
status: open
title: import_init() should not use Py_FatalError() but return an error
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18507>
_______________________________________


More information about the New-bugs-announce mailing list