Skip to content
Tcl Source Code History Of Ticket 3480592
Login

History Of Ticket 3480592

Artifacts Associated With Ticket 3480592

  1. Ticket change [bb0c3a1134] (rid 129412) by dgp on 2012-01-27 16:37:51:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      This demo script creates a busy loop:
      
      proc demo {} {
          catch demo
          demo
      }
      demo
      
      The guards in Tcl meant to detect and stop infinite
      recursion don't catch this one.
      
    4. foundin initialized to: "obsolete: 8.5.11"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "45. Parsing and Eval"
    11. title initialized to: "Houdini escape inf recursion detection"
    12. type initialized to: "Bug"
  2. Ticket change [69ede1d78f] (rid 128060) by dgp on 2012-01-27 23:45:48:

    1. icomment:
      
      It's not necessarily a bug.  Certainly
      we permit scripts that hang Tcl:
      
      while 1 {}
      
      It's at least surprising though, since at
      least at a simple level we aim to discover
      and report infinite recursions.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [86e2692180] (rid 131591) by dgp on 2012-01-27 23:53:17:

    1. icomment:
      
      Aha!  This structure doesn't actually escape
      detection.  It just delays it a very very great deal.
      The time to detect the recursion is quadratic in
      the recursionlimit of the interp.  Use
      
      interp recursionlimit {} 20
      
      before the script, and it will stop with an error.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [3df4e1922c] (rid 121184) by sebres on 2012-01-28 00:07:24:

    1. icomment:
      this is not a busy loop, it's a "tree" of "demo" calls, where in catch each recusrsion level ends level - 1 times with "too many nested evals...". Also factorial from 1000 - is very very big...
      
      IMO - is not a bug.
      
      while 1 {incr test} - is also "busy loop"?
      
      
      
    2. login: "sebres"
    3. mimetype: "text/plain"
    4. username: "sebres"
  5. Ticket change [4eee82ea8f] (rid 125735) by dkf on 2012-01-30 20:43:16:

    1. closedate changed to: "2012-01-30T13:43:16"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Confirmed as not a bug, just (eye-wateringly) expensive.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "dkf"