Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e1cd6e07667f26376e079b2f78d19ff354fa836c
Ticket: 3604074fffffffffffffffffffffffffffffffff
Inifinite loop when matching regular expression
User & Date: dkf on 2013-02-11 22:08:51
Changes

  1. icomment:
    That's where the loop is, but I don't know if it is where the problem is. :-)
    
    In particular, fixempties() and unempty() are rather familiar with each other, so I can't tell where the bug is between those two. (It might be that a normally-not-taken arm of unempty() is returning the wrong value.)
    
    I have *no* idea why the problem only happens when we get to depth 5. For all I know, it could be some compensatory code elsewhere that no longer applies.
    
      $ make shell
    [...]
      % regexp -about ((((a)*)*)*)*
      4 REG_UEMPTYMATCH
      % regexp -about (((((a)*)*)*)*)*
      ^Cmake: *** [shell] Interrupt
    
    Did I mention before that we really need either a proper RE maintainer, or to switch to a different RE engine?
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"