[issue22898] segfault during shutdown attempting to log ResourceWarning
STINNER Victor
report at bugs.python.org
Fri Mar 25 20:10:45 EDT 2016
STINNER Victor added the comment:
warn_5.patch: The patch cannot be reviewed on Rietveld :-( You must not use the git format for diff.
warn_5.patch: "if (globals == NULL) { (...) return 0; }"
It looks like filename is not initialized. I suggest to use:
*filename = f->f_code->co_filename;
It looks like you have to add:
if (PyUnicode_Check(*filename)) *filename = NULL;
To mimick the code below.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22898>
_______________________________________
More information about the Python-bugs-list
mailing list