Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e515e3abc18f9adadda373c1e9df4ab0d5b659c5
Ticket: 3604074fffffffffffffffffffffffffffffffff
Inifinite loop when matching regular expression
User & Date: dgp on 2013-02-12 01:06:46
Changes

  1. icomment:
    The trouble is when unempty is called to
    remove an EMPTY arc, and then copyouts()
    copies the same EMPTY arc back into place.
    The simplest graph I can imagine that would have
    this problem is one with two states A B and arc lists:
    
    A:  ->A  ->B
    B:  ->A  ->B
    
    where all those arcs are empty.  Add as many
    other states and arcs as you like.  One pass
    through fixempties() will leave that set of EMPTY
    arcs unchanged, so we loop forever still trying
    to change them (reduce them to 0).
    
    Now it may be that such a graph ought not be
    possible in this context, and the real bug is
    somewhere else that permits it to show up.
    But it wouldn't hurt to not assume that here.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"