Artifacts Associated With Ticket 2017146fffffffff
Ticket change [5d3b67a2f1] (rid 115423) by msofer on 2008-07-13 09:17:16:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The NRE commit causes two new errors in the testsuite. They seem to be actually the same error due to a change in the output of 'testcmdtrace tracetest'. It may be a bug, it may be an improvement ... ==== parse-8.5 Tcl_EvalObjv procedure, command traces FAILED ==== Contents of test case: testevalobjv 0 set x 123 testcmdtrace tracetest {testevalobjv 0 set x $x} ---- Result was: {testevalobjv 0 set x $x} {testevalobjv 0 set x 123} {testevalobjv 0 set x $x} {set x 123} ---- Result should have been (exact matching): {testevalobjv 0 set x $x} {testevalobjv 0 set x 123} {set x 123} {set x 123} ==== parse-8.5 FAILED ==== trace-29.2 Tcl_CreateTrace, correct command and argc/argv arguments of trace proc FAILED ==== Contents of test case: testcmdtrace tracetest {set stuff [info tclversion]} ---- Result was: {info tclversion} {info tclversion} {info tclversion} {::tcl::info::tclversion} {set stuff [info tclversion]} {set stuff 8.6} ---- Result should have been (exact matching): {info tclversion} {info tclversion} ::tcl::info::tclversion {::tcl::info::tclversion} {set stuff [info tclversion]} {set stuff 8.6} ==== trace-29.2 FAILED - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "NRE testsuite errors: error messages"
- type initialized to: "Bug"
Ticket change [d6cc8e3c0b] (rid 123866) by msofer on 2008-07-13 16:49:30:
- icomment:
Logged In: YES user_id=148712 Originator: YES Don: do you have an opinion on this?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [392a21a60a] (rid 112343) by msofer on 2008-07-13 16:49:31:
- assignee changed to: "dgp"
Ticket change [d0328f1257] (rid 113127) by msofer on 2008-07-13 16:52:58:
- foundin changed to: "obsolete: 8.6a1"
Ticket change [cb90ffe293] (rid 95542) by msofer on 2008-07-14 19:17:45:
- title changed to: "NRE testsuite errors: testcmdtrace tracetest"
Ticket change [37682ec68b] (rid 107271) by dgp on 2008-07-22 22:41:44:
- icomment:
Logged In: YES user_id=80530 Originator: NO The failing tests indicate a difference in the values of "command" passed to TclCheckInterpTraces().
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ebf20c4737] (rid 103625) by dgp on 2008-07-22 22:46:59:
- icomment:
Logged In: YES user_id=80530 Originator: NO ...which appears to trace back to changes to GetCommandSource() in tclBasic.c
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6be786a974] (rid 128407) by dgp on 2008-07-22 23:12:44:
- icomment:
Logged In: YES user_id=80530 Originator: NO In these failing test scenarios, it seems that GetCommandSource() has until now not been able to pass in the pre-substitution command string. It had to fallback on generating a command string as a list constructed from the objv[] array. On the HEAD, in these scenarios, something claiming to be the pre-substitution command string is now getting pulled from the iPtr->cmdFramePtr struct. In theory, this should be better, so long as the value stored in that struct is actually correct.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5d223a6af5] (rid 115407) by dgp on 2008-07-23 01:14:42:
- icomment:
Logged In: YES user_id=80530 Originator: NO dgpthese failures are just indicators of a deeper problem dgpWhen the CmdFrame gets re-used for a new command.... dgp...but the tip 280 data stored in the CmdFrame is left unmodified dgpThis is going to bite any Tcl_ObjCmdProc that calls Tcl_EvalObjv()
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ff638e4d1b] (rid 108746) by msofer on 2008-07-23 03:11:29:
- icomment:
Logged In: YES user_id=148712 Originator: YES (Rough idea, so that I do not forget) If GetCommandSource would detect when that happened, would it generating the string from objc/objv make things right again? I think it might be possible to detect that situation if pushing a cmdFrame would record eg the numLevels when it happened. Or it might be possible to detect the situation from the TEOV_record stack (nre-specific)?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "2017146.patch" [741611c9fc] (rid 105141) by msofer on 2008-07-23 04:02:35.
Ticket change [8730489b0f] (rid 131652) by msofer on 2008-07-23 04:02:35:
- icomment:
File Added - 285588: 2017146.patch Logged In: YES user_id=148712 Originator: YES The attached patch solves these two issues and has been committed. Leaving open for review if necessary, afaic the bug is solved. File Added: 2017146.patch
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "msofer"
- icomment:
Ticket change [7ba2d4c393] (rid 96940) by dgp on 2008-07-23 11:16:01:
- assignee changed to: "msofer"
- closedate changed to: "2008-07-23T04:16:01"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: NO I confirm it's effective at making the tests pass. I confirm that all the cases I know about involve getting the command string from the objv and ignoring the other "out of date/scope/whatever" values. I can't confirm that all the new cases that might exist with the new Tcl_NR* routines an extension may (soon) call are covered. Trusting miguel on that. Related to this bug is a need to at least briefly review what changes to Tcl_CreateTrace() might be appropriate to add to TIP 322. Tcl_CreateTrace explicitly traces command procedure invocation. Now that the Tcl_NR* interfaces permit other command-procedure-like things to be invoked too, it's worth asking whether Tcl_CreateTrace function should extend to tracing them too. Or possibly I just don't grok NRE yet.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "dgp"
Ticket change [2354794e96] (rid 130906) by sf-robot on 2008-08-07 09:20:18:
- closedate changed to: "2008-08-07T02:20:18"
- closer changed to: "sf-robot"
- icomment:
Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"