An extension module I use makes extensive use of the PyGILState API's in callback functions for C APIs. Some of the functions that use the PyGILState APIs are used in the tp_dealloc of methods. This seems cause problems when objects are cleaned up during interpreter shutdown: when an object is deallocated during PyInterpreterState_Clear I get a hard crash because the GILState machinery has been shut down at that time :-(

The bug report for this: http://bugs.python.org/issue1402

The report includes a patch, but I know just enough about the python threading infrastructure to be dangerous and am not convinced that the patch is actually correct.

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to