[issue13616] Never ending loop in in update_refs Modules/gcmodule.c

Amaury Forgeot d'Arc report at bugs.python.org
Wed Dec 21 00:13:21 CET 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Hey, you found it!
PySide::DynamicSlotDataV2::callback() calls PyMethod_New() without getting the GIL.  The Python allocator is not thread-safe, operations are supposed to be serialized by this Global Interpreter Lock.

I suggest to modify this DynamicSlotDataV2::callback() and add the line "Shiboken::GilState gil;" at the beginning of the function.

----------

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


More information about the Python-bugs-list mailing list