[issue11321] 9th import of module _pickle always crashes

Nick Coghlan report at bugs.python.org
Mon Feb 28 02:31:20 CET 2011


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Looking at the example of _struct.c, I'll withdraw my objection to the patch. The segfault is due to the attempt to destroy a statically allocated type object, and the only viable solution to that is to ensure the reference count never drops to 0, even during Py_Finalize.

I also created issue11349 to cover the fact that _pickle really shouldn't be stashing things in static globals now that a better alternative is available.

----------
nosy: +loewis
versions: +Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11321>
_______________________________________


More information about the Python-bugs-list mailing list