File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Misc/NEWS.d/next/Core_and_Builtins Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1+ Fix crash in finalization of dtoa state. Patch by Kumar Aditya.
Original file line number Diff line number Diff line change @@ -1888,7 +1888,6 @@ finalize_interp_clear(PyThreadState *tstate)
18881888 _PyXI_Fini (tstate -> interp );
18891889 _PyExc_ClearExceptionGroupType (tstate -> interp );
18901890 _Py_clear_generic_types (tstate -> interp );
1891- _PyDtoa_Fini (tstate -> interp );
18921891
18931892 /* Clear interpreter state and all thread states */
18941893 _PyInterpreterState_Clear (tstate );
@@ -1910,6 +1909,9 @@ finalize_interp_clear(PyThreadState *tstate)
19101909
19111910 finalize_interp_types (tstate -> interp );
19121911
1912+ /* Finalize dtoa at last so that finalizers calling repr of float doesn't crash */
1913+ _PyDtoa_Fini (tstate -> interp );
1914+
19131915 /* Free any delayed free requests immediately */
19141916 _PyMem_FiniDelayed (tstate -> interp );
19151917
You can’t perform that action at this time.
0 commit comments