Artifacts Associated With Ticket 1337941fffffffffffffffffffffffffffffffff
Ticket change [34538b600e] (rid 106745) by jhdv on 2005-10-26 00:08:26:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "obsolete: 8.5a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jhdv"
- subsystem initialized to: "46. Traces"
- title initialized to:
TclCheckExecutionTraces incompatible with Tcl_TraceCommand
- type initialized to: "Bug"
Add attachment "tclTrace.diff" [d3c3c8b765] (rid 123339) by jhdv on 2005-10-26 07:08:26.
Ticket change [0432c71cc1] (rid 119955) by jhdv on 2005-10-26 07:08:32:
- icomment:
File Added - 153779: tclTrace.diff
- login: "jhdv"
- mimetype: "text/plain"
- username: "jhdv"
- icomment:
Add attachment "1337941.patch" [ef34c5c141] (rid 108955) by dgp on 2005-11-02 02:46:41.
Ticket change [509723804a] (rid 125999) by dgp on 2005-11-02 02:46:41:
- icomment:
Logged In: YES user_id=80530 Here's the same patch in the more customary format.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [d5265106c7] (rid 123568) by dgp on 2005-11-02 02:47:10:
- icomment:
File Added - 154690: 1337941.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8b6fd3c02a] (rid 127569) by dgp on 2005-11-02 02:51:26:
- icomment:
Logged In: YES user_id=80530 Here's the corresponding patch for Tcl 8.4 branch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1337941-84.patch" [6ee542ac22] (rid 100217) by dgp on 2005-11-02 02:51:28.
Ticket change [091b3a2883] (rid 89660) by dgp on 2005-11-02 02:51:49:
- icomment:
File Added - 154691: 1337941-84.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1af2d499bd] (rid 123066) by dgp on 2005-11-02 03:19:31:
- icomment:
Logged In: YES user_id=80530 Patches committed. Bug fixed for Tcl 8.4.12 and 8.5a4. Thanks for the report and the fix!
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [a6fc4b3fa3] (rid 98706) by jhdv on 2005-11-02 07:57:50:
- closedate changed to: "2005-11-02T00:57:50"
- closer changed to: "jhdv"
- status changed to: "Closed"