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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18507>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to