Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a63a78cd5b2ab381d720a5c1df057ec18915a5ea
Ticket: 1280817fffffffffffffffffffffffffffffffff
regexp hangs on some valid REs
User & Date: dgp on 2013-10-17 19:05:01
Changes

  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"