Skip to content
Tcl Source Code History Of Ticket 527164ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 527164ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 527164ffffffffffffffffffffffffffffffffff

  1. Ticket change [e8046f0d80] (rid 104577) by dgp on 2002-03-07 21:46:03:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      When an error occurs in a variable trace with
      message $msg, the operation on the variable returns
      an stack trace like:
      
      can't set "foo": $msg
          while executing
      set foo bar
      
      Unless all your error messages are unique, or you
      never put multiple traces on a variable (and never
      chain traces), that's not enough information to
      find the problem.  Debugging variable traces is
      thus much harder than it should be.
      
      I would rather the stack trace were like:
      
      $msg
      <rest of stack trace, formerly lost>
          (write trace on "foo")
          while executing
      set foo bar
      
      This can be done by not calling VarErrMsg when
      reporting errors in variable traces.
      
      Any reason not to make this change?
          
      
    4. foundin initialized to: "obsolete: 8.4a5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "07. Variables"
    10. title initialized to: "::errorInfo lost in variable traces"
    11. type initialized to: "Bug"
  2. Ticket change [655a8776f7] (rid 102531) by msofer on 2002-03-08 05:21:54:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      I do not see any reason not to, except maybe that some app
      might possibly be relying on the precise wording of the
      stack trace.
      
      By the way, if we do change errorInfo details: I'd like to
      get rid of the distinction between "while executing" and
      "invoked from" - I'm having quite a bit of trouble
      reproducing that exact structure in an attempt to have
      errorInfo be generated lazily. So, either there is no real
      logic behind that distinction, or else I'm missing it
      completely. Any reason not to unify those messages too?
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [3112a5568f] (rid 93363) by dgp on 2002-03-08 05:38:49:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      That's also worth considering, but I think it's a
      separate issue from the request in this report,
      and I'd like to consider it separately.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [ec52460c80] (rid 103695) by dkf on 2002-03-08 20:13:36:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Integrating variable trace failures with the other errors
      that can happen when reading or writing a variable is a bit
      of a pain (TIP #68 cleaned this up a bit, but it still isn't
      pretty); at the moment there is no way to indicate whether a
      particular message came from a trace or from somewhere else,
      which is exactly what you need when trying to work out
      whether to reinitialise the errorInfo variable.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [63e3e3cba9] (rid 92659) by dgp on 2002-03-28 05:36:38:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Note that after accepting Patch 535952, this change can
      be made by modifications to a single routine, CallTraces.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [d91175e798] (rid 107550) by dgp on 2002-03-28 11:21:54:

    1. icomment:
      
      
      File Added - 20173: vartrace.patch
      
      Logged In: YES 
      user_id=80530
      
      
      Here's a patch that includes the effects of Patch 535952
      and the additional changes to preserve ::errorInfo
      from variable traces.
      
      It does not include updates to the test suite, neither
      changes to existing tests, nor new tests to test the new
      functionality.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [4b3079423a] (rid 126655) by dgp on 2002-03-28 23:53:33:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      patch does not appear to work.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [345d073844] (rid 106750) by dgp on 2002-03-29 00:19:46:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      OK, the patched Call Traces will now preserve
      any stack trace info that's already in ::errorInfo.
      
      The problem is that TraceVarProc calls
      Tcl_RestoreResult which in turn calls
      Tcl_ResetResult.  This destroys all stack
      information in ::errorInfo before control
      ever gets back to CallTraces.
      
      Note sure whether this can be fixed.  The calls
      to Tcl_SaveResult and Tcl_RestoreResult in
      TraceVarProc could be removed, but that might
      break the interface of traces.  Tcl_RestoreResult
      could be changed to not call Tcl_ResetResult, but
      that also might be an incompatible interface change.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [683903fe87] (rid 103025) by dgp on 2002-03-29 07:07:44:

    1. icomment:
      
      
      File Deleted - 20173: 
      
      
      
      File Added - 20232: vartrace.patch
      
      Logged In: YES 
      user_id=80530
      
      Patch updated to the current HEAD.  Stil does not work.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [5514a5bb42] (rid 94069) by dkf on 2003-06-26 17:31:20:

    1. subsystem changed to: "46. Traces"
  11. Ticket change [c2f4d63b98] (rid 111573) by dgp on 2003-06-26 22:47:05:

    1. assignee changed to: "dgp"
  12. Ticket change [638440bde4] (rid 92595) by dgp on 2004-10-30 09:24:05:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      worth another look now.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dgp"
  13. Ticket change [8696a3d6e3] (rid 131539) by dgp on 2004-11-03 04:45:10:

    1. assignee changed to: "dkf"
    2. foundin changed to: "obsolete: 8.5a2"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      patch updated to HEAD.
      needs review and tests
      (new and revised)
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. username: "dgp"
  14. Ticket change [1baddc525c] (rid 123194) by dgp on 2004-11-03 04:45:11:

    1. icomment:
      
      
      File Deleted - 20232: 
      
      
      
      File Added - 107412: 527164.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  15. Ticket change [259470c340] (rid 88196) by dkf on 2004-11-03 20:37:04:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Patch looks likely to succeed and I approve of the general
      change. Assigning back to author for test suite updates.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  16. Ticket change [a06133928e] (rid 96802) by dgp on 2004-11-03 23:24:20:

    1. icomment:
      
      
      File Deleted - 107412: 
      
      
      
      File Added - 107483: 527164.patch
      
      Logged In: YES 
      user_id=80530
      
      updated patch provides the
      ::errorInfo preserving
      benefits, but keeps much
      better compatibility.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Ticket change [47f984e030] (rid 99803) by dgp on 2004-11-04 00:12:11:

    1. closedate changed to: "2004-11-03T17:12:11"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      File Deleted - 107483: 
      
      
      
      File Added - 107490: 527164.patch
      
      Logged In: YES 
      user_id=80530
      
      final patch includes test suite updates.
      
      committing for Tcl 8.5a2.
      
      Debugging errors in traces should
      be much easier now.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  18. Add attachment "527164.patch" [71aa417fe8] (rid 100728) by dgp on 2004-11-04 00:12:11.

  19. Ticket change [0697198369] (rid 89245) by dgp on 2004-11-04 01:12:18:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      additional patch for Tk test suite.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  20. Ticket change [f0bec17bd3] (rid 109248) by dgp on 2004-11-04 01:12:19:

    1. icomment:
      
      
      File Added - 107497: tk.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  21. Add attachment "tk.patch" [bb552bbeae] (rid 129467) by dgp on 2004-11-04 01:12:19.