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

History Of Ticket 3614226fffffffff

Artifacts Associated With Ticket 3614226fffffffff

  1. Ticket change [3d481a0942] (rid 121062) by dkf on 2013-06-01 21:03:55:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This procedure leaks memory when run (or would if it didn't crash):
      
          proc foo {} {while 1 {list a [list b [continue]]}}
      
      The problem? The INST_CONTINUE doesn't clear things down. (This is a general problem if we've got a [return -code continue]; this is all work-in-progress.) So we add tracking of stack depth (dkf-compile-improvements branch) so we can issue the right number of INST_POPs and it hangs without memory consumption, absolutely correctly. Yay!
      
      Let's try in our enhanced code with a new procedure:
      
          proc foo {} {while 1 {puts {*}[puts {*}[continue]]}}
      
      This is now worse; it leaks memory like it is going out of fashion! The problem is that we've got a build-up on the TD->auxObjList that can't be cleared.
      
      I've not analyzed what happens when there's a [catch] involved.
      
    4. foundin initialized to: "current: 8.6.0"
    5. is_private initialized to: "0"
    6. priority initialized to: "8"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dkf"
    10. subsystem initialized to: "47. Bytecode Compiler"
    11. title initialized to: "Memory leaks in compiled code"
    12. type initialized to: "Bug"
  2. Ticket change [4ba677020f] (rid 126749) by dkf on 2013-06-03 16:39:22:

    1. icomment:
      Note that returning from the stack frame (strictly, the bytecode execution context) releases the "leaking" memory so this is strictly not a leak. Just behaves like one.
      
      Tests for the various cases (both normal stack and expansion stack, both [break] and [continue]) discussed on the branch.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [27b4a9770d] (rid 88569) by dkf on 2013-06-05 15:13:37:

    1. closedate changed to: "2013-06-05T08:13:37"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Fixed on trunk; will not backport as new opcode was required.
      
      Case with [catch] still needs to be analyzed, but that can be its own bug report if necessary.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"