Skip to content
Tcl Source Code History Of Ticket 2017146
Login

History Of Ticket 2017146

Artifacts Associated With Ticket 2017146

  1. Ticket change [5d3b67a2f1] (rid 115423) by msofer on 2008-07-13 09:17:16:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "msofer"
    10. subsystem initialized to: "45. Parsing and Eval"
    11. title initialized to: "NRE testsuite errors: error messages"
    12. type initialized to: "Bug"
  2. Ticket change [d6cc8e3c0b] (rid 123866) by msofer on 2008-07-13 16:49:30:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      Don: do you have an opinion on this?
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [392a21a60a] (rid 112343) by msofer on 2008-07-13 16:49:31:

    1. assignee changed to: "dgp"
  4. Ticket change [d0328f1257] (rid 113127) by msofer on 2008-07-13 16:52:58:

    1. foundin changed to: "obsolete: 8.6a1"
  5. Ticket change [cb90ffe293] (rid 95542) by msofer on 2008-07-14 19:17:45:

    1. title changed to: "NRE testsuite errors: testcmdtrace tracetest"
  6. Ticket change [37682ec68b] (rid 107271) by dgp on 2008-07-22 22:41:44:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      The failing tests indicate a difference in
      the values of "command" passed to
      TclCheckInterpTraces().
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [ebf20c4737] (rid 103625) by dgp on 2008-07-22 22:46:59:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      ...which appears to trace back to
      changes to GetCommandSource()
      in tclBasic.c
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [6be786a974] (rid 128407) by dgp on 2008-07-22 23:12:44:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [5d223a6af5] (rid 115407) by dgp on 2008-07-23 01:14:42:

    1. 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()
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [ff638e4d1b] (rid 108746) by msofer on 2008-07-23 03:11:29:

    1. 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)?
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  11. Add attachment "2017146.patch" [741611c9fc] (rid 105141) by msofer on 2008-07-23 04:02:35.

  12. Ticket change [8730489b0f] (rid 131652) by msofer on 2008-07-23 04:02:35:

    1. 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
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. username: "msofer"
  13. Ticket change [7ba2d4c393] (rid 96940) by dgp on 2008-07-23 11:16:01:

    1. assignee changed to: "msofer"
    2. closedate changed to: "2008-07-23T04:16:01"
    3. closer changed to: "dgp"
    4. 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.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. status changed to: "Pending"
    8. username: "dgp"
  14. Ticket change [2354794e96] (rid 130906) by sf-robot on 2008-08-07 09:20:18:

    1. closedate changed to: "2008-08-07T02:20:18"
    2. closer changed to: "sf-robot"
    3. 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).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"