[issue3666] atexit.register with bad input segfaults on exit
Christian Heimes
report at bugs.python.org
Sun Aug 24 23:10:03 CEST 2008
Christian Heimes <lists at cheimes.de> added the comment:
I was able to trace the error to its apartment. During the cleanup
gen_del calls PyErr_Fetch() which fails in PyThreadState_GET().
Conclusion:
The atexit cleanup method must be called much earlier.
call_ll_exitfunc() is too late. I suggest a new function that calls
atexit_cleanup() right after atexit_callfuncs().
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3666>
_______________________________________
More information about the Python-bugs-list
mailing list