Overview
| Artifact ID: | 34538b600e7382fc2834d7597ab3c6da4954b9b8 |
|---|---|
| Ticket: | 1337941fffffffffffffffffffffffffffffffff
TclCheckExecutionTraces incompatible with Tcl_TraceCommand |
| User & Date: | jhdv on 2005-10-26 00:08:26 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
TclCheckExecutionTraces() assumes that tracePtr->clientData points to a TraceCommandInfo struct. This is not the case if, say, Tcl_TraceCommand() was called to set up a trace from user code. Example: User code calls Tcl_TraceCommand(interp,"list",TCL_TRACE_RENAME,traceProc,(ClientData)NULL); and then, from the interpreter: proc >> args {puts [info level 0]} trace add execution list enter >> list This leads to a segfault in TclCheckExecutionTraces(). A solution that appears to work for me is to make the assumption above only when tracePtr->traceProc == TraceCommandProc. Patch against CVS version 1.26 of tclTrace.c is attached. - foundin changed to: "obsolete: 8.5a4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jhdv"
- subsystem changed to: "46. Traces"
- title changed to:
TclCheckExecutionTraces incompatible with Tcl_TraceCommand
- type changed to: "Bug"