[Patches] [ python-Patches-1010677 ] thread Module Breaks PyGILState_Ensure()

SourceForge.net noreply at sourceforge.net
Sat Apr 16 22:43:31 CEST 2005


Patches item #1010677, was opened at 2004-08-17 21:08
Message generated for change (Comment added) made by jbelmonte
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1010677&group_id=5470

Category: Modules
Group: Python 2.4
Status: Closed
Resolution: Fixed
Priority: 7
Submitted By: Phil Thompson (philthompson10)
Assigned to: Mark Hammond (mhammond)
Summary: thread Module Breaks PyGILState_Ensure()

Initial Comment:
The thread module creates thread states that 
PyGILState_Ensure() doesn't know about. This means that the 
latter can try to acquire the GIL when it already has it - resulting 
in a deadlock. 

----------------------------------------------------------------------

Comment By: John Belmonte (jbelmonte)
Date: 2005-04-17 05:43

Message:
Logged In: YES 
user_id=282299

This patch seems to have caused [ 1163563 ] Sub  
threads execute in restricted mode  
(http://sourceforge.net/tracker/?func=detail&aid=1163563&group_id=5470&atid=105470).    
  
I don't have an explanation-- I only know that when this 
patch is applied, the symptom appears.  
  

----------------------------------------------------------------------

Comment By: Mark Hammond (mhammond)
Date: 2004-09-02 07:32

Message:
Logged In: YES 
user_id=14198

Checked into 2.3 maint branch:
Checking in Lib/test/test_capi.py;
new revision: 1.6.10.1; previous revision: 1.6
Checking in Modules/threadmodule.c;
new revision: 2.56.8.1; previous revision: 2.56


----------------------------------------------------------------------

Comment By: Johan Dahlin (zilche)
Date: 2004-09-02 00:10

Message:
Logged In: YES 
user_id=132216

Can this be backported release23-maint as well? 
PyGTK suffers quite badly from this. 

----------------------------------------------------------------------

Comment By: Mark Hammond (mhammond)
Date: 2004-08-25 07:24

Message:
Logged In: YES 
user_id=14198

Fixed - thanks!

Checking in Modules/threadmodule.c;
new revision: 2.59; previous revision: 2.58
Checking in Lib/test/test_capi.py;
new revision: 1.7; previous revision: 1.6


----------------------------------------------------------------------

Comment By: Anthony Baxter (anthonybaxter)
Date: 2004-08-24 22:14

Message:
Logged In: YES 
user_id=29957

Boosting to pri 7 for pre-2.4 inclusion.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1010677&group_id=5470


More information about the Patches mailing list