I'm getting a segfault with PythonPlot.jl after a testsuite has finished, assuming that it's during finalizers https://github.com/stevengj/PythonPlot.jl/pull/24 ``` signal (11): Segmentation fault in expression starting at none:0 _PyInterpreterState_GET at /usr/local/src/conda/python-3.11.0/Include/internal/pycore_pystate.h:116 [inlined] get_dict_state at /usr/local/src/conda/python-3.11.0/Objects/dictobject.c:251 [inlined] new_dict at /usr/local/src/conda/python-3.11.0/Objects/dictobject.c:722 [inlined] PyDict_New at /usr/local/src/conda/python-3.11.0/Objects/dictobject.c:841 type_ready_set_dict at /usr/local/src/conda/python-3.11.0/Objects/typeobject.c:6143 [inlined] type_ready at /usr/local/src/conda/python-3.11.0/Objects/typeobject.c:6462 [inlined] PyType_Ready at /usr/local/src/conda/python-3.11.0/Objects/typeobject.c:6513 _PyObject_GenericGetAttrWithDict at /usr/local/src/conda/python-3.11.0/Objects/object.c:1266 PyObject_GenericGetAttr at /usr/local/src/conda/python-3.11.0/Objects/object.c:1367 [inlined] module_getattro at /usr/local/src/conda/python-3.11.0/Objects/moduleobject.c:761 PyObject_GetAttr at /usr/local/src/conda/python-3.11.0/Objects/object.c:916 PyObject_GetAttr at /home/ubuntu/.julia/packages/PythonCall/dsECZ/src/cpython/pointers.jl:299 [inlined] macro expansion at /home/ubuntu/.julia/packages/PythonCall/dsECZ/src/Py.jl:131 [inlined] pyhasattr at /home/ubuntu/.julia/packages/PythonCall/dsECZ/src/abstract/object.jl:37 #9 at /home/ubuntu/.julia/packages/PythonPlot/ei8cR/src/pygui.jl:194 macro expansion at ./asyncevent.jl:281 [inlined] #666 at ./task.jl:134 unknown function (ip: 0x7fac1b57080f) _jl_invoke at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined] ijl_apply_generic at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2559 jl_apply at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/julia.h:1843 [inlined] start_task at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/task.c:931 Allocations: 860081766 (Pool: 859557939; Big: 523827); GC: 110 ``` I noticed that `pyhasattr` is `PyObject_GetAttr` backed. Perhaps it needs some more protection against whatever is causing this?