[issue4236] Crash when importing builtin module during interpreter shutdown
Simon Cross
report at bugs.python.org
Sat Nov 20 12:34:32 CET 2010
Simon Cross <hodgestar at gmail.com> added the comment:
I'm attaching a patch to relax the check in PyModule_Create2 as suggested by the Amaury (http://bugs.python.org/issue4236#msg75409).
The patch uses "PyThreadState_Get()->interp->modules == NULL" to determine whether the import machinery has been cleaned up yet.
The test suite still appears to pass.
----------
nosy: +hodgestar
Added file: http://bugs.python.org/file19655/check-import-machinery-only.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4236>
_______________________________________
More information about the Python-bugs-list
mailing list