This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients brett.cannon, ncoghlan, vstinner
Date 2013-07-19.21:39:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374269951.83.0.221076121181.issue18507@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2013-07-19 21:39:11vstinnersetrecipients: + vstinner, brett.cannon, ncoghlan
2013-07-19 21:39:11vstinnersetmessageid: <1374269951.83.0.221076121181.issue18507@psf.upfronthosting.co.za>
2013-07-19 21:39:11vstinnerlinkissue18507 messages
2013-07-19 21:39:11vstinnercreate