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

Matthew Barnett report at bugs.python.org
Fri Jul 3 19:20:29 CEST 2015


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 don't get a chance to run.

----------

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


More information about the Python-bugs-list mailing list