This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ammar2
Recipients Anthony Sottile, ammar2, christian.heimes, pablogsal, paul.moore, shreyanavigyan, stestagg, steve.dower, tim.golden, vstinner, zach.ware
Date 2021-05-20.18:35:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621535714.28.0.721004496657.issue44184@roundup.psfhosted.org>
In-reply-to
Content
The segfault seems to be occuring on typeobject.c:1456 during interpreter finalization:

    if (type->tp_flags & Py_TPFLAGS_HEAPTYPE && !(base->tp_flags & Py_TPFLAGS_HEAPTYPE))

where `type` seems to have already been deallocated.

Here's the stack trace:

 	python310.dll!subtype_dealloc(_object * self) Line 1456	C
 	[Inline Frame] python310.dll!_Py_Dealloc(_object *) Line 2288	C
 	[Inline Frame] python310.dll!_Py_DECREF(_object *) Line 500	C
 	[Inline Frame] python310.dll!_Py_XDECREF(_object * op) Line 567	C
>	python310.dll!dict_dealloc(PyDictObject * mp) Line 2067	C
 	[Inline Frame] python310.dll!_Py_Dealloc(_object *) Line 2288	C
 	[Inline Frame] python310.dll!_Py_DECREF(_object *) Line 500	C
 	python310.dll!ast_clear(AST_object * self) Line 784	C
 	python310.dll!delete_garbage(_ts * tstate, _gc_runtime_state * gcstate, PyGC_Head * collectable, PyGC_Head * old) Line 1018	C
 	python310.dll!gc_collect_main(_ts * tstate, int generation, __int64 * n_collected, __int64 * n_uncollectable, int nofail) Line 1304	C
 	[Inline Frame] python310.dll!_PyGC_CollectNoFail(_ts *) Line 2123	C
 	python310.dll!interpreter_clear(_is * interp, _ts * tstate) Line 326	C
 	[Inline Frame] python310.dll!_PyInterpreterState_Clear(_ts *) Line 358	C
 	python310.dll!finalize_interp_clear(_ts * tstate) Line 1639	C
 	python310.dll!Py_FinalizeEx() Line 1813	C
 	[Inline Frame] python310.dll!Py_RunMain() Line 668	C
 	[Inline Frame] python310.dll!pymain_main(_PyArgv *) Line 696	C
 	python310.dll!Py_Main(int argc, wchar_t * * argv) Line 708	C
History
Date User Action Args
2021-05-20 18:35:14ammar2setrecipients: + ammar2, paul.moore, vstinner, christian.heimes, tim.golden, zach.ware, steve.dower, Anthony Sottile, pablogsal, stestagg, shreyanavigyan
2021-05-20 18:35:14ammar2setmessageid: <1621535714.28.0.721004496657.issue44184@roundup.psfhosted.org>
2021-05-20 18:35:14ammar2linkissue44184 messages
2021-05-20 18:35:14ammar2create