Skip to content
Tcl Source Code History Of Ticket 1008314fffffffff
Login

History Of Ticket 1008314fffffffff

Artifacts Associated With Ticket 1008314fffffffff

  1. Ticket change [1113fa0536] (rid 95079) by dgp on 2004-08-12 22:26:31:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The TclPtrSetVar() routine processes
      the TCL_LIST_ELEMENT flag only
      when the TCL_APPEND_VALUE
      flag is also set.  This is an error that
      was introduced in revision 1.32 of
      tclVar.c.
      
      For example,
      
      Tcl_SetVar(i, "x", "a b", TCL_LIST_ELEMENT);
      
      will set the value of x to be "a b" and
      not "{a b}" as it should according to the
      docs.
      
      The public routine Tcl_SetErrorCode() can
      also be used to demo this bug.  In particular
      
      Tcl_SetErrorCode(i, "{", NULL);
      
      will store a value in ::errorCode that is not
      a valid Tcl list.
      
      
    4. foundin initialized to: "obsolete: 8.4.7"
    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: "Tcl_*SetVar* mishandle TCL_LIST_ELEMENT"
    11. type initialized to: "Bug"
  2. Ticket change [6c82172294] (rid 128521) by dgp on 2004-08-13 05:59:18:

    1. icomment:
      
      
      File Added - 97490: 1008314.patch
      
      Logged In: YES 
      user_id=80530
      
      The attached patch
      (against the HEAD) adds
      tests to the test suite that demo
      this bug.
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [dd2862872b] (rid 114614) by dgp on 2004-08-13 06:12:18:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Another possible error here
      is that when both
      TCL_LIST_ELEMENT and
      TCL_APPEND_VALUE are
      set, then the Tcl_ListObjAppendElement()
      routine is used to do the work.
      
      Use of T_LOAE adds the constraint
      that the value of the variable to which
      we are appending must already be a
      valid list..  I don't think that's a documented
      requirement of the Tcl_*SetVar* routines.
      
      On that point, a documentation fix is
      probably more attractive than a code change.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [6b12ad3a18] (rid 128252) by dgp on 2004-08-13 06:57:28:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      On the latter point, the 
      T_LOAE routine has been
      in use for this operation since
      Tcl 8.0, it appears, so this change
      can safely be considered to be
      one of the Tcl 7 -> Tcl 8 incompatibilities.
      Only change that might be needed is
      improved documentation on the point.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [77e0069c92] (rid 89845) by dgp on 2004-08-13 21:21:23:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      New patch includes the fixes.
      
      Please review, test, apply, and backport.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Add attachment "1008314.patch" [fe62cb5aca] (rid 108580) by dgp on 2004-08-13 21:21:23.

  7. Ticket change [dc5b192776] (rid 114464) by dgp on 2004-08-13 21:21:24:

    1. icomment:
      
      
      File Deleted - 97490: 
      
      
      
      File Added - 97590: 1008314.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [8e9eccdf8f] (rid 120143) by msofer on 2004-08-14 22:20:56:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      I do not understand TclseterrorcodeCmd (in the patch) very
      well: it passes  argv[5] to Tcl_SetErrorCode() even when
      (argc==3). Isn't this dangerous, as in setting up a possible
      segfault?
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  9. Ticket change [f48551ab6e] (rid 129937) by msofer on 2004-08-16 20:58:01:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      From the chat:
      dkf "Why are you worrying about testseterrorcode? It's a
      testing API; it's allowed to be unsafe"
      dgp "TclInvokeStringCommand passes an argv of minimum length
      20, so testseterrorcode should be safe. ...and argv[argc] is
      guaranteed to be NULL."
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  10. Ticket change [b7dbe592de] (rid 128870) by msofer on 2004-08-16 21:18:53:

    1. closedate changed to: "2004-08-16T14:18:53"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Applied to HEAD and core-8-4-branch
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "msofer"