PyGILState_Ensure/Release in python bindings

Anthony Baxter anthony at interlink.com.au
Mon Jun 20 06:06:55 PDT 2005


So recently the dbus bindings started crashing with current
svn trunk of twisted, using the gtk2reactor. Looking more 
closely, it's probably because they now create a second 
thread (I don't know why...) and the dbus bindings call into
Python without grabbing the GIL first. I've fixed the two
obvious places that this was a problem, but I'm still seeing
another crash - this is proving incredibly hard to track down.
Are there any places other than the two I've already patched
(cunregister_function_handler and cmessage_function_handler)
where dbus calls back into Python? 

This patch is against 0.23.4, but the current CVS trunk needs
the same TLC. 

Anthony

-- 
Anthony Baxter     <anthony at interlink.com.au>
It's never too late to have a happy childhood.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-gilstate.patch
Type: text/x-diff
Size: 1467 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20050620/3e880004/dbus-gilstate.bin


More information about the dbus mailing list