On Tue, Aug 17, 2021 at 12:05 PM Duncan Grisby <duncan@grisby.org> wrote:
I don't know if it is pertinent to this at all, but I raised https://bugs.python.org/issue44449 in which the faulthandler module can lead to a segfault inside Py_TRASHCAN_SAFE_BEGIN. Would that be avoided if frameobject.c was changed to use Py_TRASHCAN_BEGIN / END?

We just changed frameobject.c to use the new macros. Can you check? 
https://github.com/python/cpython/pull/27683