Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 944bafe132c4e5ed8b14ed83b6580e163e3bf921
Ticket: 8d2c0da36d99d48cfd2e8a9e305f2840225936b4
Regression: TCL 8.6.0 cannot compile a long regexp
User & Date: anonymous on 2013-07-29 19:12:45
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    The following script, which is a simplified test case, fails in TCL 8.6.0.
    It used to work in TCL 8.5.14 (and several older TCL versions; the real
    code that started failing in TCL 8.6.0 dates back to 2003 or earlier).
    
    Sample code:
    
    set num "1*"
    set time_t "$num $num $num $num $num $num $num $num $num"
    set grp "1 3 8 $time_t 00000000 1 13Hxxxxxxxxxxxxx"
    set re "^$time_t { $grp $grp $grp $grp $grp $grp $grp $grp $grp $grp $grp }"
    regexp $re hi
    
    Expected output: none.
    
    TCL 8.6.0 output:
    
    couldn't compile regular expression pattern: out of memory
        while executing
    "regexp $re hi"
        (file "demo.tcl" line 5)
    
    This regression was found while trying to run the test suite of the
    LysKOM server.  I've checked in a less simplified test case here:
    
    https://git.lysator.liu.se/lyskom-server/lyskom-server/blobs/master/src/server/testsuite/dejagnu.0/01-long-regexp.exp
    
    The real code is buried inside this DejaGnu testsuite:
    
    https://git.lysator.liu.se/lyskom-server/lyskom-server/blobs/master/src/server/testsuite/lyskomd.0/03.exp
    
    (I'm only anonymous because a five-minute search didn't reveal how to
    create an account here.  I'm Per Cederqvist <[email protected]>.)
    
  5. foundin changed to: "8.6.0"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "c6a523e7f8c9eec6b37979254f4b651edaff8a95"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "43. Regexp"
  15. title changed to: "Regression: TCL 8.6.0 cannot compile a long regexp"
  16. type changed to: "Bug"