Skip to content
Tcl Source Code History Of Ticket 2824981fffffffff
Login

History Of Ticket 2824981fffffffff

Artifacts Associated With Ticket 2824981fffffffff

  1. Ticket change [b39ea1ae51] (rid 124888) by zbigniew_b on 2009-07-21 19:47:09:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      It seems, that "rename" command is faulty - by trying, as example:
      
        % rename set asd
        % asd a 0
      
      ...one can see, that any other input is impossible, while CPU is at full power. Tested on Linux. Test with tclsh8.5 revealed no such problem, but still another one:
      $tclsh8.5
      % rename set asd
      % asd a 1
      1
      % asd b 2
      2
      % set a 1
      too many nested evaluations (infinite loop?)
      
      ...and since this time, every try to run any other non-existing command is answered with "too many nested evaluations (infinite loop?)" instead of with usual "invalid command name".
      
    4. foundin initialized to: "None"
    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: "zbigniew_b"
    10. subsystem initialized to: "18. Commands M-Z"
    11. title initialized to: ""Rename" spoiled in 8.6b1 (and probably in 8.5)"
    12. type initialized to: "Bug"
  2. Ticket change [b4f2f57620] (rid 125143) by msofer on 2009-07-22 04:24:36:

    1. icomment:
      The 8.5 behaviour is correct - it is a consequence of your breaking [unknown] (which uses [set]) by not providing a reasonable implementation of [set]. This causes [unknown] to call itself recursively.
      
      Not sure yet about what is happening with 8.6 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [3677014633] (rid 107106) by msofer on 2009-07-22 06:47:10:

    1. icomment:
      8.6 seems to be miscounting recursion levels from [unknown]
         proc history args {}
         rename set xx
         set x 1
      enters a busy loop and never hits the recursion limit.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [69b8307b39] (rid 103301) by dkf on 2009-07-22 12:41:38:

    1. assignee changed to: "msofer"
  5. Ticket change [dc1adad403] (rid 108072) by msofer on 2009-12-11 10:29:58:

    1. foundin changed to: "obsolete: 8.6b1.1"
    2. icomment:
      still present
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. username: "msofer"
  6. Ticket change [01f376dc2d] (rid 119571) by dkf on 2009-12-30 00:11:51:

    1. icomment:
      Updated title to be more descriptive of the real issue
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [d5ea519413] (rid 123717) by dkf on 2009-12-30 00:11:52:

    1. title changed to:
      lack of [set] causes infinite loop through [unknown]
      
  8. Ticket change [5300556018] (rid 126410) by msofer on 2009-12-30 20:52:27:

    1. icomment:
      The problem with [unknown] is now fixed in HEAD: errors in setting two variables were [catch]ed, so that the infinite loop was not being detected.
      
      Bug kept open because there is a deeper problem: this behaviour should NOT be triggerable with a plain script, infinite recursion of the unknown handler should never happen.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. username: "msofer"
  9. Ticket change [6f60990762] (rid 100307) by dgp on 2012-01-27 21:32:42:

    1. assignee changed to: "dgp"
    2. foundin changed to: "obsolete: 8.5.11"
    3. icomment:
      
      This bug fix didn't get backported to 8.5.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. priority changed to: "9 Immediate"
    7. subsystem changed to: "38. Init - Library - Autoload"
    8. username: "dgp"
  10. Ticket change [5cfcd75c74] (rid 115387) by msofer on 2012-01-27 21:37:57:

    1. icomment:
      The fix was for the 8.6 behaviour (busy loop at 100% cpu), which does not happen in 8.5
      
      The deeper bug (recursive calling of unknown) is present in both ... and possibly since the dawn of time.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  11. Ticket change [a6e7fd0bcb] (rid 98690) by dgp on 2012-01-27 21:42:35:

    1. icomment:
      
      Help me out.  Was the busy loop behavior fixed, or avoided?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [59251cef75] (rid 117927) by msofer on 2012-01-27 22:07:09:

    1. icomment:
      The infinite loop in [unknown] happens when there is an unknown command in the body of [unknown] itself. Still there.
      
      The bug in 8.6 was that that particular infinite loop was not being counted as a nesting level, so that  "too many nested evaluations" was never triggered. 
      
      The patch http://core.tcl.tk/tcl/ci/0c8502aa1f?sbs=1 just allows differentiating errors: is it that errorInfo does not exist? Or rather that [set] is not defined? The first should keep going, the second should recursively call [unknown] outside of a [catch]. That is fixed now.
      
      I forget now why that diff seems not to be important in 8.5 :(
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  13. Ticket change [f28b37479e] (rid 109563) by dgp on 2012-01-27 22:10:34:

    1. icomment:
      I'm still puzzled.  Why is it that the same code
      in 8.5 and 8.6 has its nesting levels counted differently?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Ticket change [e0f43d092c] (rid 87361) by sebres on 2012-01-27 23:24:14:

    1. icomment:
      the command "set" that used in "unknown" is not available - also call "unknown" again and again ...
      
      8.6b
      % puts [regexp -inline {(?:[^\n]*\n){1,6}} $::errorInfo]
      {too many nested evaluations (infinite loop?)
          while executing
      "set savedErrorInfo $::errorInfo"
          (procedure "::unknown" line 7)
          invoked from within
      "set savedErrorInfo $::errorInfo"
      }
      
      8.5.11
      % puts [regexp -inline {(?:[^\n]*\n){1,6}} $::errorInfo]
      {too many nested evaluations (infinite loop?)
          while executing
      "set cmd [lindex $args 0]"
          (procedure "::unknown" line 8)
          invoked from within
      "set cmd [lindex $args 0]"
      }
      
      
    2. login: "sebres"
    3. mimetype: "text/plain"
    4. username: "sebres"
  15. Ticket change [bd3ebfc976] (rid 101878) by dgp on 2012-01-27 23:43:37:

    1. icomment:
      
      New bug 3480592 demonstrates the core real
      issue of how a busy loop can be created the evades
      inf recursion detection.  It avoids all potentialy confusing
      interactions with ::error* variables and the unknown mechanism.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  16. Ticket change [30a39c4e72] (rid 93291) by dgp on 2012-01-28 00:09:34:

    1. icomment:
      FWIW, the reason the problem arose in Tcl 8.6
      is that we removed "Aunt Millie" from [::unknown].
      She was using [set] before the [catch {set ...}] that
      came later, which avoided the Houdini structure.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Ticket change [30459f3239] (rid 93218) by ferrieux on 2012-05-11 04:20:32:

    1. icomment:
      Doesn't look like a showstopper. Lowering prio.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "ferrieux"
  18. Ticket change [f2710ba5a9] (rid 257770) by serhiy.storchaka on 2026-10-12 17:47:52:

    1. icomment:
      The busy loop was fixed in [0c8502aa1f]. In 8.6.18, 9.0 and 9.1, after
      <code>rename set asd</code> an unknown command fails at once with "too many
      nested evaluations (infinite loop?)", as in 8.5. This is the expected result of
      removing a command that <code>unknown</code> uses; the remaining case
      [3480592] was closed as not a bug.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  19. Ticket change [1988d92ae9] (rid 259892) by serhiy.storchaka on 2026-10-22 17:19:24:

    1. closedate changed to: "2461326.2415741896"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"