Skip to content
Tcl Source Code History Of Ticket 1752146
Login

History Of Ticket 1752146

Artifacts Associated With Ticket 1752146

  1. Ticket change [0bd3b2acbc] (rid 114063) by nobody on 2007-07-11 18:34:07:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi,
      
      *** release 8.5a6 - 2007-04-25
      
      in some cases, while interpreting some very short loop code, the command limit of the interpreter is never reached.
      
      
      For example, the following code never reach the command limit :
      *****************
      interp create testlimit
      testlimit eval {
      proc testlimit {} {
             while 1 {
          set b 22
      }
      }
      }
      interp limit testlimit commands -value 303
      testlimit eval testlimit
      ******************
      
      
      
      As well, the following code never reach the command limit :
      *****************
      interp create testlimit
      testlimit eval {
              set b 22
      proc testlimit {} {
             while 1 {
          incr b
             }
      }
      }
      interp limit testlimit commands -value 303
      testlimit eval testlimit
      ******************
      
      
      
      Conversely, the following code aborts when the command limit is reached (correct behavior) :
      *****************
      interp create testlimit
      testlimit eval {
              set b 22
      proc testlimit {} {
             while 1 {
          set b 22
          set a 22
             }
      }
      }
      interp limit testlimit commands -value 303
      testlimit eval testlimit
      ******************
      
      
    4. foundin initialized to: "obsolete: 8.5a6"
    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: "nobody"
    10. subsystem initialized to: "20. [interp]"
    11. title initialized to: "command limit is never reached in loops"
    12. type initialized to: "Bug"
  2. Ticket change [2b053c18eb] (rid 118669) by msofer on 2007-07-12 01:50:55:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      The problem seems to be caused by the optimisation of INST_START_CMD (2007-04-01), and require for its manifestation:
        (a) a 'while 1' loop with 
        (b) a single bytecoded command in the body
      In this case all the bytecode in the loop is atmdStart, and there is no ISC within the loop.
      
      Note also that the 'deep cause' is that the commands are miscounted: the first command in the loop body will be counted just once, and not at each iteration. Again, only on 'while 1' which starts the body immediately (when there is no condition a jump is optimised away by the compiler).
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  3. Ticket change [887a674eb7] (rid 131873) by msofer on 2007-07-12 04:25:46:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      Misdiagnosis: problem present with 8.5a5, which is earlier than that patch. It was caused by faulty avoidance of ISC when the very first opcode in a script is within a loop body - as produced by 'while 1'.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. status changed to: "Closed"
    5. username: "msofer"
  4. Ticket change [2556ed14ac] (rid 88154) by msofer on 2007-07-12 04:25:47:

    1. assignee changed to: "msofer"
    2. closedate changed to: "2007-07-11T21:25:47"
    3. closer changed to: "msofer"
    4. resolution changed to: "Fixed"
  5. Ticket change [2b24f47272] (rid 118684) by dkf on 2007-07-22 02:41:44:

    1. subsystem changed to: "47. Bytecode Compiler"