Issue 776311: Regular expression failure of the sre engine (original) (raw)

Issue776311

Created on 2003-07-23 15:15 by grafen, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
regexfailure.zip grafen,2003-07-23 15:16 sre regexp testcase infinite loop
Messages (3)
msg17306 - (view) Author: Wolfgang Grafen (grafen) Date: 2003-07-23 15:15
Don't depreciate pre as we all will loose a useful verification tool for sre! From time to time I have situations where I wonder why re(sre) doesn't match its input. Then I change to pre (import pre as re) and several times it happened that pre worked fine while sre did not. Sorry that I didn't track down the error but if you are interested in the testcase I attached the test case for you. (This failure is in a regular expression which maches a complete pattern of a VHDL Architecture to apply a patch on it so it was quick hack but a large regex. The other failures I cannot remember what it was, sorry) Regards Wolfgang Grafen --------------------------------------- I will be absent until 5 September 2003 ---------------------------------------
msg17307 - (view) Author: Mike Coleman (mkc) Date: 2004-08-29 00:22
Logged In: YES user_id=555 The particular problem with your test case turned out to be an infinite loop in the sre parser. This is fixed in patch #1018386. If you are aware of or encounter any other cases where sre's behavior deviates from pre, please post a bug for them. Pending that, I'd suggest this bug be closed. Thanks for your excellent bug report!
msg17308 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2004-09-03 17:23
Logged In: YES user_id=7887 Patch #1018386 was applied. Thanks for the report! And thanks again for the patch, Mike!
History
Date User Action Args
2022-04-10 16:10:11 admin set github: 38919
2003-07-23 15:15:57 grafen create