Message193377
| 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:11 | vstinner | set | recipients:
+ vstinner, brett.cannon, ncoghlan |
| 2013年07月19日 21:39:11 | vstinner | set | messageid: <1374269951.83.0.221076121181.issue18507@psf.upfronthosting.co.za> |
| 2013年07月19日 21:39:11 | vstinner | link | issue18507 messages |
| 2013年07月19日 21:39:11 | vstinner | create |
|