Skip to content
Tcl Source Code History Of Ticket 1201035
Login

History Of Ticket 1201035

Artifacts Associated With Ticket 1201035

  1. Ticket change [d277b0e7a1] (rid 113533) by msofer on 2005-05-12 22:17:41:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      bschofield reports on clt that the script 'crash'
      (attached) crashes tcl8.4.9. I verified the crash in
      both HEAD and 8.4-branch.
      
      The immediate cause of the crash is that tracePtr is
      NULL on line 1492 in TclCheckInterpTraces. The stack
      trace is
      
      #0  0x0808cdcf in TclCheckInterpTraces
      (interp=0x81432c8, command=0x8183bd5 "set x 1\n",
      numChars=7,
          cmdPtr=0x81484f0, code=0, traceFlags=1, objc=3,
      objv=0x8144260) at ../generic/tclTrace.c:1492
      #1  0x080b9d9b in TclEvalObjvInternal
      (interp=0x81432c8, objc=3, objv=0x8144260,
          command=0x8183bd5 "set x 1\n", length=7, flags=0)
      at ../generic/tclBasic.c:3339
      #2  0x080f7001 in TclExecuteByteCode (interp=0x81432c8,
      codePtr=0x8185d48) at ../generic/tclExecute.c:1721
      #3  0x080f5758 in TclCompEvalObj (interp=0x81432c8,
      objPtr=0x8167440) at ../generic/tclExecute.c:1030
      #4  0x08081ee9 in TclObjInterpProc
      (clientData=0x8161ff8, interp=0x81432c8, objc=1,
      objv=0xbfffee50)
          at ../generic/tclProc.c:1328
      
      
    4. foundin initialized to: "obsolete: 8.5a3"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "46. Traces"
    10. title initialized to: "crash in TclCheckInterpTraces"
    11. type initialized to: "Bug"
  2. Add attachment "crash" [72d3919418] (rid 104930) by msofer on 2005-05-13 05:17:45.

  3. Ticket change [2aa702dc7c] (rid 118617) by msofer on 2005-05-13 05:17:46:

    1. icomment:
      
      
      File Added - 134265: crash
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [3f2285fde8] (rid 121401) by dgp on 2005-05-17 02:59:15:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Simpler script that make same crash:
      
      proc x {} {
          puts ACTION
      }
      proc es {args} {
          puts $args
          trc remove
          trc add
          puts done
      }
      proc trc {m} {
          trace $m execution ::x leavestep es
          trace $m execution ::x enterstep es
      }
      trc add
      x
      
      Reverse the two commands in the [trc] body,
      and there's no crash, but the trace result
      is incorrect.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [c6058770ce] (rid 121691) by dgp on 2005-05-17 04:36:01:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Note that adding a trace
      during an enterstep or
      leavestep callback can't
      impace the current command
      evaluation, but (inconsistently?)
      removing a trace takes effect
      immediately:
      
      % proc foo {} {
          lappend ::x foo
          lappend ::x foo
      }
      % proc bar args {   
          lappend ::x bar
      trace remove execution foo enterstep bar
      trace add execution foo enterstep bar
      }
      % trace add execution foo enterstep bar
      % foo
      bar foo foo
      
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [bd9f509a68] (rid 101934) by dgp on 2005-06-21 09:03:11:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      The deletion of "interp" traces
      lacks the walk of the activeTrace
      list that's done for command and
      variable traces.  That's at least related,
      and possibly the cause of this.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [6bf97ae4e3] (rid 128419) by dgp on 2005-06-21 10:16:10:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Attached patch (for 8.4.11) appears to
      stop the crashes.  Please test.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [a633d6b143] (rid 98557) by dgp on 2005-06-21 10:16:11:

    1. icomment:
      
      
      File Added - 139168: 1201035.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Add attachment "1201035.patch" [0c104a47f2] (rid 114112) by dgp on 2005-06-21 10:16:11.

  10. Ticket change [64594c6a2a] (rid 92750) by dgp on 2005-06-21 21:46:10:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      patch committed for 8.4.11
      
      report still open to deal with
      it in the HEAD.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [fe12d8929c] (rid 108520) by dgp on 2005-06-22 01:33:09:

    1. closedate changed to: "2005-06-21T18:33:09"
    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"