Artifacts Associated With Ticket 1355342
Ticket change [cdd127449a] (rid 95952) by msofer on 2005-11-12 17:40:56:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
% proc x {} {} % trace add command x delete {set w aha!;#} % rename x {} aha! % info patch 8.5a4 Comparing TraceCommandProc in HEAD (tclTrace.c) with 8-4-branch (tclCmdMZ.c), I see that we still have the comment that the result is discarded, but the code is missing: 8.4 has Tcl_SaveResult(interp, &state); stateCode = iPtr->returnCode; ... Tcl_RestoreResult(interp, &state); iPtr->returnCode = stateCode; Not fixing myself as I'm not sure about the correct fix. This code was removed on 2004-10-19 (tclTraces.c version 1.17) when TclSaveInterpState and related were created; the Changelog says: "Callers of Tcl_*Result updated to call the new routines. The calls were relocated in several cases to perform save/restore operations only when needed." but I do not see where this might have been relocated to. - foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "9 Immediate"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "46. Traces"
- title initialized to: "cmd deletion traces do not discard the result"
- type initialized to: "Bug"
Ticket change [572955f0cf] (rid 94437) by msofer on 2005-11-14 07:43:19:
- icomment:
Logged In: YES user_id=148712 Tests trace-20.13-16 added to HEAD
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [00b672bdd1] (rid 119366) by dgp on 2005-11-14 23:21:40:
- icomment:
Logged In: YES user_id=80530 The reasoning of that comment is that there's no need for each Tcl_CommandTraceProc and Tcl_VarTraceProc to save/restore the interp state is the dispatch routine takes care of that for all. In particular, the save/restore in TraceCommandProc was relocated to TclCheckExecutionTraces and TclCheckInterpTraces It appears the additional relocation to CheckCommandTraces (tclBasic.c) got overlooked?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e70b717e7c] (rid 104389) by dgp on 2005-11-14 23:45:19:
- closedate changed to: "2005-11-14T16:45:19"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 committing the attached patch.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"
Ticket change [ff97fa9c33] (rid 108777) by dgp on 2005-11-14 23:45:20:
- icomment:
File Added - 156225: 1355342.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1355342.patch" [5b98b5ad22] (rid 118358) by dgp on 2005-11-14 23:45:20.