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

History Of Ticket 484200ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 484200ffffffffffffffffffffffffffffffffff

  1. Ticket change [1cb95e9683] (rid 90663) by dgp on 2001-11-21 15:11:23:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Within TclEvalObjvInternal(), trace
      procedures are called in a loop like:
      
      for (tracePtr = iPtr->tracePtr;
           tracePtr != NULL;
           tracePtr = nextPtr) {
        nextPtr = tracePtr->nextPtr;
        ...
        (*tracePtr->proc)(tracePtr->clientData, interp,
                          iPtr->numLevels, commandCopy,
                          cmdPtr->proc, cmdPtr->clientData,
                          objc, argv);
      }
      
      Trouble with that is (*tracePtr->proc) could
      do anything, including calling Tcl_DeleteTrace
      on the Tcl_Trace held by nextPtr.  If it does
      that, there will be a segfault.
      
      The technique used by command and variable traces
      that involves defining additional structures
      such as ActiveCommandTrace and special handling
      could be adapted to solve this problem.
      
    4. foundin initialized to: "obsolete: 8.4a4"
    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: "45. Parsing and Eval"
    10. title initialized to: "TclEvalObjvInternal: potential segfault"
    11. type initialized to: "Bug"
  2. Ticket change [baa902a39b] (rid 129359) by dgp on 2001-11-27 03:57:19:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      The TIP 62 reference implementation
      (Tcl Patch 562580) appears to address
      this potential bug, though it's a
      patch against an earlier HEAD.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [b081ab958e] (rid 97990) by dgp on 2002-06-22 00:05:08:

    1. priority changed to: "9 Immediate"
  4. Ticket change [cb0748bc5b] (rid 95457) by dgp on 2002-06-22 00:05:09:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Can we check that TIP 62 really fixed this?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [d62bc45bf3] (rid 123761) by msofer on 2002-06-22 01:40:14:

    1. assignee changed to: "vincentdarley"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      It looks like it did; that logic now moved from TEOVI to
      TclCheck[...]Traces in tclCmdMZ.c, a cursory look (without
      deep understanding) suggests the issue is handled there.
      
      Assigning to Vince so that he (hopefully) confirms that
      all's well and closes the ticket.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  6. Ticket change [55f74aba39] (rid 94242) by vincentdarley on 2002-06-26 22:26:19:

    1. closedate changed to: "2002-06-26T15:26:19"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      I agree with Miguel.  It looks as if there is not a 
      problem.  I also recall doing extensive testing of this 
      sort of thing (trace deletes trace, trace deletes cmd, etc), 
      with no adverse effects.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "vincentdarley"