Artifacts Associated With Ticket 1280817fffffffffffffffffffffffffffffffff
Ticket change [b791010402] (rid 125625) by nobody on 2005-09-02 16:50:09:
- assignee initialized to: "pvgoran"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Certain valid regular expressions cause [regexp] to hang, apparently in the expression-compilation phase. The following one-line command hangs Tcl, with memory requirements increasing apparently without limit: regexp -about {(\m.*\M)*} If the final * quantifier is removed, the bug does not occur. If the grouping parentheses are removed, the bug does not occur. If the grouping is made noncapturing with ?:, the bug still occurs. Observed with Tcl 8.4.9.1 snd also 8.3.4, on Win2000. Submitted by Jonathan Bromley, [email protected] - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "43. Regexp"
- title initialized to: "regexp hangs on some valid REs"
- type initialized to: "Bug"
Ticket change [680f73d213] (rid 103002) by nobody on 2005-12-08 21:03:12:
- icomment:
Logged In: NO Note: % regexp -about {(\m\M)} 1 {REG_UNONPOSIX REG_ULOCALE REG_UIMPOSSIBLE} If the IMPOSSIBLE is genuine (and usable), then perhaps nfatree() in regcomp.c should 'accumulate' its return value from nfanode so that it retains any IMPOSSIBLE flag. Something like: int ret = 0; if (t->left != NULL) { ret |= nfatree(v, t->left, f); } if (t->right != NULL) { ret |= nfatree(v, t->right, f); } ret |= nfanode(v, t, f); return ret; Then compile() can check the return value: /* build compacted NFAs for tree and lacons */ re->re_info |= nfatree(v, v->tree, debug); if (re->re_info & REG_UIMPOSSIBLE) { /* throw an error */ } More investigation needed :-) - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [a63a78cd5b] (rid 134750) by dgp on 2013-10-17 19:05:01:
- assignee changed to: "dgp"
- closer changed to: "nobody"
- comment changed to:
Certain valid regular expressions cause [regexp] to hang, apparently in the expression-compilation phase. The following one-line command hangs Tcl, with memory requirements increasing apparently without limit: regexp -about {(\m.*\M)*} If the final * quantifier is removed, the bug does not occur. If the grouping parentheses are removed, the bug does not occur. If the grouping is made noncapturing with ?:, the bug still occurs. Observed with Tcl 8.4.9.1 snd also 8.3.4, on Win2000. Submitted by Jonathan Bromley, [email protected] - icomment: "Possibly connected to 8f245009b0"
- login: "dgp"
- mimetype: "text/plain"
- severity changed to: "Important"
Ticket change [cab7e9b1cf] (rid 138953) by dgp on 2014-07-23 14:50:13:
- closedate changed to: "2456862.11821507"
- closer changed to: "dgp"
- icomment:
Turns out this is a dup of bugs 1810038 and 1810264 (or rather, they Duped this one!). Both fixed long ago in time for the 8.5.0 release.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Out of Date"
- status changed to: "Closed"