Skip to content
Tcl Source Code History Of Ticket 1348775
Login

History Of Ticket 1348775

Artifacts Associated With Ticket 1348775

  1. Ticket change [db60d47f08] (rid 107955) by msofer on 2005-11-05 02:07:54:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The new test trace-8.9 shows an 18-byte leak:
              set end [getbytes]
              for {set i 0} {$i < 5} {incr i} {
                  set apa {a 1 b 2}
                  set bepa [lrange $apa 0 end]
                  trace add variable bepa write {error hej}
                  catch {set bepa a}
                  unset bepa
                  set tmp $end
                  set end [getbytes]
              }
              expr {$end - $tmp}
      
      This supercedes #1342858, which detected the same leak
      but blamed it on [dict].
      
      
    4. foundin initialized to: "obsolete: 8.5a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "46. Traces"
    10. title initialized to: "varTraces leak on error"
    11. type initialized to: "Bug"
  2. Ticket change [4482a1962c] (rid 116724) by msofer on 2005-11-07 17:46:36:

    1. foundin changed to: "obsolete: 8.4.11"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Test trace-8.9 deleted, trace-13.2-4 added to HEAD and
      8-4-branch.
      
      When a traced variable is unset, the TraceVarInfo
      (clientData in the VarTrace struct) is leaked. This should
      be fixed directly in 8.4, and possibly together with
      #1056134 in HEAD.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. priority changed to: "8"
    6. title changed to: "varTraces leak when variable is unset"
    7. username: "msofer"
  3. Ticket change [772787e6fb] (rid 89729) by msofer on 2005-11-07 19:34:21:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Specifically: the code for [unset] does Tcl_EventuallyFree
      the VarTrace, but does not free the contents of its
      clientData field. 
      
      Look for a q&d solution in 8-4, and a redesign for 8.5 (see
      also #1056134) maybe involving api changes: Tcl_TraceVar
      should take also a deletion callback as argument.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "msofer"
  4. Ticket change [b3bf8fc06d] (rid 124906) by msofer on 2005-11-08 03:24:26:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      The attached patch solves the issue for 8.4, in an inelegant
      but effective and safe (?) way - assigning to dkf for a
      second opinion on this.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [0d5b6e5213] (rid 114346) by msofer on 2005-11-08 03:24:27:

    1. icomment:
      
      
      File Added - 155347: trace-8.4.patch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [ec1e5c9e84] (rid 103656) by msofer on 2005-11-08 03:25:08:

    1. assignee changed to: "dkf"
  7. Ticket change [b974547187] (rid 129144) by msofer on 2005-11-08 04:29:34:

    1. icomment:
      
      
      File Deleted - 155347: 
      
      
      
      File Added - 155356: trace-8.4.patch
      
      Logged In: YES 
      user_id=148712
      
      Patch replaced with a slightly-less-icky one (thanks kevin
      and joe).
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  8. Add attachment "trace-8.4.patch" [f869efd702] (rid 91531) by msofer on 2005-11-08 04:32:58.

  9. Ticket change [12334e0559] (rid 95271) by msofer on 2005-11-08 04:32:58:

    1. icomment:
      
      
      File Deleted - 155356: 
      
      
      
      File Added - 155357: trace-8.4.patch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  10. Ticket change [503a566399] (rid 125931) by dkf on 2005-11-08 17:44:05:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Might be cleaner to introduce a new private function
      (perhaps called TclTraceVarEx) that lets the caller supply
      the VarTrace with the traceProc, clientData and flags fields
      already filled in. That would, in turn, allow the lookup
      code to be handled far more neatly (i.e. by not inlining it
      all in the [trace * variable] subcommand implementation).
      
      The general strategy (using a single alloc instead of a
      pair) should work well though, given that we cannot change
      the API.
      
      Still thinking about this...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  11. Ticket change [8053acba11] (rid 116853) by dkf on 2005-11-08 21:56:18:

    1. status changed to: "Closed"
  12. Ticket change [c350aa5298] (rid 111636) by dkf on 2005-11-08 21:56:19:

    1. resolution changed to: "Fixed"
  13. Ticket change [a64bbbc603] (rid 98578) by dkf on 2005-11-08 21:56:20:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      fixed 8.4 branch with your patch and HEAD with attached patch.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  14. Ticket change [27406c4e9e] (rid 88485) by dkf on 2005-11-08 21:56:22:

    1. closedate changed to: "2005-11-08T14:56:22"
    2. closer changed to: "dkf"
  15. Add attachment "trace-8.5.diff" [eed28afbab] (rid 108884) by dkf on 2005-11-08 21:56:26.

  16. Ticket change [5dba0fe7e0] (rid 115522) by dkf on 2005-11-08 21:56:27:

    1. icomment:
      
      
      File Added - 155453: trace-8.5.diff
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"