Skip to content
Tcl Source Code History Of Ticket 1224585fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1224585fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1224585fffffffffffffffffffffffffffffffff

  1. Ticket change [3b96ca8bc4] (rid 112772) by dgp on 2005-06-21 04:05:07:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The Active*Trace mechanism for
      protecting against trace deletion
      during trace execution is based on
      a hard and fast assumption that
      the trace lists are traversed in
      a single direction.
      
      However, "leave" and "enterstep"
      execution traces attempt to
      fire in the opposite direction.
      
      This leaves us open to a disaster like:
      
      % proc foo {} {}
      % proc x args {trace remove execution foo leave y}
      % trace add execution foo leave x
      % trace add execution foo leave y
      % foo
      
      Program received signal EXC_BAD_ACCESS, Could not
      access memory.
      0x0007027c in TclCheckExecutionTraces
      (interp=0x1803200, command=0x60f5d0 "foo\n",
      numChars=3, cmdPtr=0x6054d0, code=0, traceFlags=2,
      objc=1, objv=0x1803404) at ../generic/tclCmdMZ.c:4206
      4206                while (tracePtr->nextPtr !=
      lastTracePtr) {
      (gdb) bt
      #0  0x0007027c in TclCheckExecutionTraces
      (interp=0x1803200, command=0x60f5d0 "foo\n",
      numChars=3, cmdPtr=0x6054d0, code=0, traceFlags=2,
      objc=1, objv=0x1803404) at ../generic/tclCmdMZ.c:4206
      #1  0x0002468c in TclEvalObjvInternal
      (interp=0x1803200, objc=1, objv=0x1803404,
      command=0x60f5d0 "foo\n", length=3, flags=0) at
      ../generic/tclBasic.c:3101
      #2  0x0007346c in TclExecuteByteCode (interp=0x1803200,
      codePtr=0x60f620) at ../generic/tclExecute.c:1417
      #3  0x000722d8 in TclCompEvalObj (interp=0x1803200,
      objPtr=0x1801138) at ../generic/tclExecute.c:981
      #4  0x00025e50 in Tcl_EvalObjEx (interp=0x1803200,
      objPtr=0x1801138, flags=131072) at
      ../generic/tclBasic.c:4051
      #5  0x0004942c in Tcl_RecordAndEvalObj
      (interp=0x1803200, cmdPtr=0x1801138, flags=131072) at
      ../generic/tclHistory.c:142
      #6  0x00005cac in Tcl_Main (argc=1, argv=0xbffffd60,
      appInitProc=0x39c0 <Tcl_AppInit>) at
      ../generic/tclMain.c:390
      #7  0x000039a4 in main (argc=1, argv=0xbffffd60) at
      ../unix/tclAppInit.c:90
      
      It appears the reverse direction
      implementation never even considered
      the possibility of the trace list changing
      out from under it.
      
      
      
    4. foundin initialized to: "obsolete: 8.4.11"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "46. Traces"
    10. title initialized to: "reverse trace order conflicts trace delete safety"
    11. type initialized to: "Bug"
  2. Add attachment "1224585.patch" [e4f15c1dbe] (rid 88038) by dgp on 2005-06-22 00:13:00.

  3. Ticket change [9bef290f9b] (rid 111204) by dgp on 2005-06-22 00:13:00:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      attached patch makes the
      Active*Trace mechanism
      aware of the scan direction.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [4fac7f55a8] (rid 125866) by dgp on 2005-06-22 00:13:02:

    1. icomment:
      
      
      File Added - 139259: 1224585.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [5b3293fe18] (rid 118276) by dgp on 2005-06-22 00:20:15:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      patch committed for 8.4.11
      
      report open for port to HEAD
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [839ee195eb] (rid 117416) by dgp on 2005-06-22 01:33:12:

    1. closedate changed to: "2005-06-21T18:33:12"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      fix ported to HEAD
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"