Lewis Gaul <lewis.g...@gmail.com> added the comment:
It seems that test_audit_subinterpreter() in _testembed.c was (unintentionally?) doing this already. After fixing #36225 I found this testcase causes a segfault, but works fine when switching back to the main threadstate before calling Py_Finalize(). So it looks like adding a specific testcase for this is likely to weed out an actual issue here! ---------- nosy: +LewisGaul _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37776> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com