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

History Of Ticket 1706140fffffffff

Artifacts Associated With Ticket 1706140fffffffff

  1. Ticket change [58a9315f5f] (rid 117841) by dgp on 2007-04-23 20:07:26:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      One of the leaks reported in
      1705778 got tracked down to
      a TclCallVarTraces() call
      filtering out the
      TCL_INTERP_DESTROYED flag,
      so that a trace procedure
      didn't get signaled that it
      was time to free memory.
      
      Since it was wrong in one place,
      and has apparently been wrong
      as long as Tcl's been in CVS,
      someone should give all the
      callers a look over for similar
      problems.
      
      
    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: "dgp"
    10. subsystem initialized to: "07. Variables"
    11. title initialized to: "check TclCallVarTraces callers"
    12. type initialized to: "Bug"
  2. Add attachment "1706140.patch" [9b5ec1f1a2] (rid 111108) by dgp on 2007-05-04 05:24:20.

  3. Ticket change [e013e585e2] (rid 115133) by dgp on 2007-05-04 05:24:21:

    1. icomment:
      
      
      File Added - 227758: 1706140.patch
      
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      This patch does lots of
      cleanup and safety for the
      flag values passed around
      tclVar.c.  Might be further
      improved by moving all setting
      of the TCL_INTERP_DESTROYED flag
      value into TclCallVarTraces, instead
      of having all callers set it.
      
      File Added: 1706140.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [8773d1d5fd] (rid 131698) by dgp on 2007-05-04 12:15:39:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      There's a deeper brokenness
      here that's becoming apparent.
      The value of the TCL_INTERP_DESTROYED
      flag is set once by the caller
      of TclCallVarTraces.  Then TclCallVarTraces
      might well call several traceProcs.
      The first of these might delete the interp,
      so for correct operations, TCL_INTERP_DESTROYED
      ought to get set for subsequent traceProc
      calls.  This implies TclCallVarTraces *should*
      be setting this flag itself, as the only place
      it can be done correctly, and the callers shouldn't
      be burdened with making the attempt.
      
      Looking a bit further it's clear that
      doing this as a flag value passed to
      a traceProc is basically pointless.
      We also pass the interp to traceProc,
      which can just as easily call Tcl_InterpDeleted()
      for itself to check for the deleted interp
      scenario.  We have to support the flag for
      compatibility, but probably should stop
      recommending that traceProcs refer to it
      when they can more simply and reliably just
      call Tcl_InterpDeleted() for themselves.
      
      Ok, did some archeology and the explanation
      is that TCL_INTERP_DESTROYED came first.
      It's there in Tcl 7.4 and who knows how long
      before that.  Tcl_InterpDeleted() didn't show
      up until Tcl 7.5 (3/22/96).
      
      Well, it's well established
      now, and is the better answer.  It's time
      for the TCL_INTERP_DESTROYED flag to just
      fade away.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Add attachment "1706140-2.patch" [690edb64d7] (rid 103178) by msofer on 2007-05-04 12:50:25.

  6. Ticket change [85001c595e] (rid 131251) by msofer on 2007-05-04 12:50:25:

    1. icomment:
      
      
      File Added - 227788: 1706140-2.patch
      
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      I was already playing with this ... attached patch implements the TCL_INTERP_DESTROYED changes described by dgp (minus the deprecation and doc changes).
      File Added: 1706140-2.patch
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Ticket change [51374681cb] (rid 126100) by dgp on 2007-05-08 00:21:55:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      what's left to do before
      committing?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [7525fc8f4c] (rid 105346) by dgp on 2007-05-08 02:45:05:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      fix committed to HEAD
      
      keeping open to determine
      what to backport.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "7 High"
    6. resolution changed to: "Fixed"
    7. username: "dgp"
  9. Ticket change [034b42f620] (rid 119800) by dgp on 2007-05-11 01:23:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      backport committed.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [9fe9a9aa17] (rid 96719) by dgp on 2007-05-31 01:21:06:

    1. closedate changed to: "2007-05-30T18:21:06"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      I think all remaining issues
      raised here are now covered
      in 1716730 and 1714505
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "dgp"