Message184343
Isn't the thread state clearing subject to a race condition? PyThreadState_Clear() will release a bunch of frames, deallocating arbitrary objects and therefore potentially releasing the GIL. This lets the main thread run and potentially spawn other threads, which may be wrongly deallocated in the following loop iteration.
A solution would be to detach the thread states from the linked list and clear them afterwards. |
|
Date |
User |
Action |
Args |
2013-03-16 18:42:47 | pitrou | set | recipients:
+ pitrou, Ringding, neologix |
2013-03-16 18:42:47 | pitrou | set | messageid: <1363459367.16.0.93314144207.issue17094@psf.upfronthosting.co.za> |
2013-03-16 18:42:47 | pitrou | link | issue17094 messages |
2013-03-16 18:42:46 | pitrou | create | |
|