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

History Of Ticket 2379689fffffffff

Artifacts Associated With Ticket 2379689fffffffff

  1. Ticket change [9cbebfb327] (rid 96199) by dgp on 2008-12-02 21:44:39:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      I notice in the SlaveCreate() routine:
      
          /*
           * The [clock] command presents a safe API, but uses unsafe features in
           * its implementation. This means it has to be implemented in safe interps
           * as an alias to a version in the (trusted) master.
           */
      
          if (safe) {
              Tcl_Obj *clockObj;
              int status;
      
              TclNewLiteralStringObj(clockObj, "clock");
              Tcl_IncrRefCount(clockObj);
              status = AliasCreate(interp, slaveInterp, masterInterp, clockObj,
                      clockObj, 0, NULL);
              Tcl_DecrRefCount(clockObj);
              if (status != TCL_OK) {
                  goto error2;
              }
          }
      
          return slaveInterp;
      
        error:
          TclTransferResult(slaveInterp, TCL_ERROR, interp);
        error2:
          Tcl_DeleteInterp(slaveInterp);
      
      
      What is the reason to bypass the reporting of
      the error message when failure to create the
      [clock] alias lead to failure to create the
      slave interp?
      
      
      
    4. foundin initialized to: "obsolete: 8.6a4"
    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: "dgp"
    10. subsystem initialized to: "06. Time Measurement"
    11. title initialized to: "[clock] alias in safe slave"
    12. type initialized to: "Bug"
  2. Ticket change [d63345916c] (rid 123765) by kennykb on 2009-10-29 09:35:52:

    1. icomment:
      I thought that AliasCreate reports the problem in 'interp', not 'slaveInterp', so the error message should already be in place when we hit 'goto error2'. Did I err?
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  3. Ticket change [8940758039] (rid 131995) by kennykb on 2009-10-29 09:35:58:

    1. closedate changed to: "2009-10-29T02:35:58"
    2. closer changed to: "kennykb"
    3. resolution changed to: "Invalid"
    4. status changed to: "Pending"
  4. Ticket change [f047b8ab97] (rid 109162) by dgp on 2009-10-29 21:42:58:

    1. icomment:
      D'oh!
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [f23c42d7dd] (rid 109505) by dgp on 2009-10-29 21:43:05:

    1. closedate changed to: "2009-10-29T14:43:05"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "dgp"