Artifacts Associated With Ticket 1706140fffffffffffffffffffffffffffffffff
Ticket change [58a9315f5f] (rid 117841) by dgp on 2007-04-23 20:07:26:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.5a6"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "07. Variables"
- title initialized to: "check TclCallVarTraces callers"
- type initialized to: "Bug"
Add attachment "1706140.patch" [9b5ec1f1a2] (rid 111108) by dgp on 2007-05-04 05:24:20.
Ticket change [e013e585e2] (rid 115133) by dgp on 2007-05-04 05:24:21:
- 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
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8773d1d5fd] (rid 131698) by dgp on 2007-05-04 12:15:39:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1706140-2.patch" [690edb64d7] (rid 103178) by msofer on 2007-05-04 12:50:25.
Ticket change [85001c595e] (rid 131251) by msofer on 2007-05-04 12:50:25:
- 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
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [51374681cb] (rid 126100) by dgp on 2007-05-08 00:21:55:
- icomment:
Logged In: YES user_id=80530 Originator: YES what's left to do before committing?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [7525fc8f4c] (rid 105346) by dgp on 2007-05-08 02:45:05:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: YES fix committed to HEAD keeping open to determine what to backport.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "7 High"
- resolution changed to: "Fixed"
- username: "dgp"
Ticket change [034b42f620] (rid 119800) by dgp on 2007-05-11 01:23:57:
- icomment:
Logged In: YES user_id=80530 Originator: YES backport committed.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [9fe9a9aa17] (rid 96719) by dgp on 2007-05-31 01:21:06:
- closedate changed to: "2007-05-30T18:21:06"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: YES I think all remaining issues raised here are now covered in 1716730 and 1714505
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dgp"