New submission from Xiang Zhang: Just as the patch shows, when PyErr_Occurred() returns true mod is NULL, then Py_INCREF(mod) will crash. Replace it with Py_XINCREF.
---------- components: Interpreter Core files: create_builtin.patch keywords: patch messages: 274007 nosy: brett.cannon, eric.snow, ncoghlan, xiang.zhang priority: normal severity: normal status: open title: Py_INCREF(NULL) in _imp.create_builtin type: crash versions: Python 3.5, Python 3.6 Added file: http://bugs.python.org/file44292/create_builtin.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27909> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com