Skip to content
Tcl Source Code History Of Ticket 80304238ac
Login

History Of Ticket 80304238ac

Artifacts Associated With Ticket 80304238ac

  1. Ticket change [931b6b9106] (rid 144993) by dgp on 2016-02-25 20:18:21:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      This script leaks 48 bytes:
      
      proc doit script {
          eval $script
          set index xx
      }
      doit {foreach index foo {}}
      
      This leak is what prevents me getting
      a clean valgrind of our release candidates
      because my system has an install of "nsf 2.0.0"
      and it has code like this in its
      pkgIndex.tcl file.  This solves the mystery of
      why others see clean valgrind runs and I do not.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Severe"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "16. Commands A-H"
    14. title initialized to: "foreach memleak"
    15. type initialized to: "Bug"
  2. Ticket change [b0d5786ded] (rid 144994) by dgp on 2016-02-26 04:10:37:

    1. icomment:
      
      It appears that this code is a nasty way to create
      a circular reference, where each of 2 Tcl_Obj values
      holds a reference to the other as part of its intrep.
      This defeats the refCounting system, and the
      objects leak.
      
      The cross referencing comes between a "list"
      value with a single element which is a "localVarName"
      value with a cached localName (twoPtrValue.ptr1)
      which is the original list value.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [e5ae66fe9d] (rid 145008) by dgp on 2016-02-26 15:44:22:

    1. icomment:
      
      See bug-80304238ac branch for candidate fix.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [dbe4b49b04] (rid 145030) by dgp on 2016-03-01 16:56:18:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2457449.20576939"
    3. closer changed to: "dgp"
    4. icomment:
      
      Fix merged to trunk.
      
      Same demo script does not leak in 8.5.19.
      
      Either no leak there, or no reliabale way to
      demo it (yet). Either way, doing nothing on
      8.5 branch.
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"