[issue24555] Python logic error when deal with re and muti-threading

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> re functions never release GIL ___ Python tracker ___ __

[issue24555] Python logic error when deal with re and muti-threading

2015-07-03 Thread Matthew Barnett
Matthew Barnett added the comment: Your regex is a pathological case: it suffers from catastrophic backtracking and can take a long time to finish. The other problem is that the re module never releases the GIL, so while it's performing the search in the low-level C code, other Python threads

[issue24555] Python logic error when deal with re and muti-threading

2015-07-03 Thread bee13oy
bee13oy added the comment: #Python logic error when deal with re and muti-threading ##Bug Description When use re and multi-threading it will trigger the bug. Bug type: `Logic Error` Test Enviroment: * `Windows 7 SP1 x64 + python 3.4.3` * `Linux kali 3.14-kali1-amd64 + pyt

[issue24555] Python logic error when deal with re and muti-threading

2015-07-03 Thread R. David Murray
R. David Murray added the comment: If you re-post your bug information in a plain text and/or test program format it might get faster attention. -- nosy: +r.david.murray ___ Python tracker

[issue24555] Python logic error when deal with re and muti-threading

2015-07-02 Thread bee13oy
New submission from bee13oy: Bug 0x01 is the main problem. t.start() t.join(timeout) In normal case, I run a while() in sub-thread, the main thread will get the control of the program after the sub-thread is timed out. But, in our POC, even the sub-thread timed out, the main thread still can't