Overview
| Artifact ID: | 1cf863b45508acb040941e5f3a1a51c34a368eab0b4169ec3cd0c2eac34f0f42 |
|---|---|
| Ticket: | 1716730fffffffffffffffffffffffffffffffff
alleged bug claimed in TraceVar.3 |
| User & Date: | dgp on 2019-05-10 14:03:59 |
Changes
- 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"