Crash report
What happened?
There was a Use-After-Free and double-decref bug in _PyContext_Exit() in Python/context.c. The function was calling Py_SETREF(ts->context, (PyObject *)ctx->ctx_prev) before clearing the ctx->ctx_prev and ctx->ctx_entered internal states.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Output from running 'python -VV' on the command line:
No response
Linked PRs
Crash report
What happened?
There was a Use-After-Free and double-decref bug in _PyContext_Exit() in Python/context.c. The function was calling Py_SETREF(ts->context, (PyObject *)ctx->ctx_prev) before clearing the ctx->ctx_prev and ctx->ctx_entered internal states.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Output from running 'python -VV' on the command line:
No response
Linked PRs