Skip to content
Tcl Source Code History Of Ticket 1280817fffffffff
Login

History Of Ticket 1280817fffffffff

Artifacts Associated With Ticket 1280817fffffffff

  1. Ticket change [b791010402] (rid 125625) by nobody on 2005-09-02 16:50:09:

    1. assignee initialized to: "pvgoran"
    2. cmimetype initialized to: "text/plain"
    3. 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]
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "43. Regexp"
    10. title initialized to: "regexp hangs on some valid REs"
    11. type initialized to: "Bug"
  2. Ticket change [680f73d213] (rid 103002) by nobody on 2005-12-08 21:03:12:

    1. 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 :-)
      
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [a63a78cd5b] (rid 134750) by dgp on 2013-10-17 19:05:01:

    1. assignee changed to: "dgp"
    2. closer changed to: "nobody"
    3. 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]
      
    4. icomment: "Possibly connected to 8f245009b0"
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. severity changed to: "Important"
  4. Ticket change [cab7e9b1cf] (rid 138953) by dgp on 2014-07-23 14:50:13:

    1. closedate changed to: "2456862.11821507"
    2. closer changed to: "dgp"
    3. 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.
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"