Dennis Sweeney <sweeney.dennis...@gmail.com> added the comment:

I got a crash on Windows in Objects/genobject.c:

void
_PyGen_Finalize(PyObject *self)
{
    PyGenObject *gen = (PyGenObject *)self;
    PyObject *res = NULL;
    PyObject *error_type, *error_value, *error_traceback;

    if (gen->gi_xframe == NULL ||  _PyFrameHasCompleted(gen->gi_xframe)) { 
<------- Crash is here
        /* Generator isn't paused, so no need to close */
        return;
    }
    ...


It looks like gen->gi_xframe is a junk-but-not-NULL pointer that is getting 
dereferenced by _PyFrameHasCompleted.

Maybe related to bpo-44590.

----------
nosy: +Dennis Sweeney, Mark.Shannon

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45813>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to