Artifacts Associated With Ticket 1716730fffffffffffffffffffffffffffffffff
Ticket change [d3f5d51523] (rid 123364) by dgp on 2007-05-10 19:22:48:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Near the end of TraceVar.3, we see: BUGS Tcl doesn’t do any error checking to prevent trace procedures from mis-using the interpreter during traces with TCL_INTERP_DESTROYED set. It would be a fairly simple matter for TclCallVarTraces to pass in a value of (interp == NULL) in exactly those cases when it is setting the TCL_INTERP_DESTROYED flag. A Tcl_TraceVarProc certainly can't abuse an interp it never receives a pointer for. I suppose there's too many existing Tcl_TraceVarProcs that implicitly assume they receive a non-NULL interp argument to do anything like this before Tcl 9. Oh well, at least it's recorded.
- 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: "46. Traces"
- title initialized to: "alleged bug claimed in TraceVar.3"
- type initialized to: "Bug"
Ticket change [bb829da733] (rid 129498) by dgp on 2013-01-08 01:38:27:
- priority changed to: "9 Immediate"
Ticket change [98aa2b012a] (rid 110648) by dgp on 2013-04-10 23:28:20:
- priority changed to: "5 Medium"
Ticket change [1cf863b455] (rid 171465) by dgp on 2019-05-10 14:03:59:
- closedate changed to: "2458614.08610078"
- closer changed to: "dgp"
- comment changed to:
Near the end of TraceVar.3, we see: BUGS Tcl doesn’t do any error checking to prevent trace procedures from mis-using the interpreter during traces with TCL_INTERP_DESTROYED set. It would be a fairly simple matter for TclCallVarTraces to pass in a value of (interp == NULL) in exactly those cases when it is setting the TCL_INTERP_DESTROYED flag. A Tcl_TraceVarProc certainly can't abuse an interp it never receives a pointer for. I suppose there's too many existing Tcl_TraceVarProcs that implicitly assume they receive a non-NULL interp argument to do anything like this before Tcl 9. Oh well, at least it's recorded.
- icomment:
A null interp value is not suitable. A variable is being traced and without an interp, the context to find that variable again is incomplete. Although the TCL_INTERP_DESTROYED signal that interp destruction has begun is a good warning not to Tcl_Eval() anything in it, an interpreter being destroyed can still do some things, and access to do those things is useful. When TIP 543 is accepted, the documentation in question will go away.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- severity changed to: "Minor"
- status changed to: "Closed"