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

History Of Ticket 2017162fffffffff

Artifacts Associated With Ticket 2017162fffffffff

  1. Ticket change [ca9f840b70] (rid 95387) by msofer on 2008-07-13 09:48:26:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      NRE possibly messed the bytecode tracing facilities. It will also require further specialized debugging tools to inspect the new stacks (records and callbacks).
      
    4. foundin initialized to: "None"
    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: "msofer"
    10. subsystem initialized to: "45. Parsing and Eval"
    11. title initialized to: "NRE and debugging tools"
    12. type initialized to: "Bug"
  2. Ticket change [7a653a669e] (rid 90311) by msofer on 2008-07-13 16:53:57:

    1. foundin changed to: "obsolete: 8.6a1"
  3. Ticket change [af0a786e67] (rid 97741) by msofer on 2008-07-30 06:43:56:

    1. priority changed to: "6"
  4. Ticket change [5285d793a0] (rid 126332) by msofer on 2009-05-01 08:26:40:

    1. priority changed to: "7 High"
  5. Ticket change [27a375b1f1] (rid 88553) by kot on 2009-10-14 04:41:01:

    1. icomment:
      When I compile TclX (from head) against Tcl-8.6b1 and attempt to run TclX' own self-tests, the profile test inevitably crashes inside PushProcCallFrame:
      
      #0  0x08089368 in PushProcCallFrame (clientData=0x96b0f90, interp=0x95c7f90, 
          objc=1, objv=0x95caa70, isLambda=0)
          at /data/mteterin/tcl8.6b1/generic/tclProc.c:1573
      #1  0x08089560 in TclNRInterpProc (clientData=0x96b0f90, interp=0x95c7f90, 
          objc=1, objv=0x95caa70) at /data/mteterin/tcl8.6b1/generic/tclProc.c:1683
      #2  0x080d9da6 in NRRunObjProc (data=0x96a1b8c, interp=0x95c7f90, result=0)
          at /data/mteterin/tcl8.6b1/generic/tclBasic.c:4303
      #3  0x080d9b3b in TclNRRunCallbacks (interp=0x95c7f90, result=0, 
          rootPtr=0x96a1c30, tebcCall=0)
          at /data/mteterin/tcl8.6b1/generic/tclBasic.c:4241
      #4  0x080d9737 in Tcl_EvalObjv (interp=0x95c7f90, objc=1, objv=0x95caa70, 
          flags=2097152) at /data/mteterin/tcl8.6b1/generic/tclBasic.c:4024
      
      Apparently, the clientData passed to PushProcCallFrame is now mis-interpreted. It is now the verbatim clientData, that the custom procedure (set by Tcl_CreateTrace). It used to be a different pointer... Because of the mis-interpretation, the procPtr points to TclX' own custom data-structure, rather than anything remotely resembling struct Proc.
      
      This was not the case with 8.5.x
      
      The crash-stack is thus:
      
      #0  0x08089368 in PushProcCallFrame (clientData=0x96b0f90, interp=0x95c7f90, 
          objc=1, objv=0x95caa70, isLambda=0)
          at /data/mteterin/tcl8.6b1/generic/tclProc.c:1573
      #1  0x08089560 in TclNRInterpProc (clientData=0x96b0f90, interp=0x95c7f90, 
          objc=1, objv=0x95caa70) at /data/mteterin/tcl8.6b1/generic/tclProc.c:1683
      #2  0x080d9da6 in NRRunObjProc (data=0x96a1b8c, interp=0x95c7f90, result=0)
          at /data/mteterin/tcl8.6b1/generic/tclBasic.c:4303
      #3  0x080d9b3b in TclNRRunCallbacks (interp=0x95c7f90, result=0, 
          rootPtr=0x96a1c30, tebcCall=0)
          at /data/mteterin/tcl8.6b1/generic/tclBasic.c:4241
      #4  0x080d9737 in Tcl_EvalObjv (interp=0x95c7f90, objc=1, objv=0x95caa70, 
          flags=2097152) at /data/mteterin/tcl8.6b1/generic/tclBasic.c:4024
      #5  0x080db3a1 in TclEvalEx (interp=0x95c7f90, 
          script=0x970aaa0 "#\n# profile.test\n#\n# Tests for the profile command and profrep procedure.\n#", '-' <repeats 78 times>, "\n# Copyright 1992-1999 Karl Lehenbauer and Mark"..., numBytes=24800, flags=0, line=28)
      
      
      
    2. login: "kot"
    3. mimetype: "text/plain"
    4. username: "kot"
  6. Ticket change [617edad0fb] (rid 92248) by msofer on 2010-05-17 19:53:27:

    1. icomment:
      Ooo ... missed that comment completely, sorry kot.
      
      The answer is (I think): TclX uses tcl's internals structures in tclInt.h that are COMPLETELY changed in 8.6. This means that it will not run with 8.6 until it is adapted.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "msofer"
  7. Ticket change [5bbedac9da] (rid 118387) by kot on 2010-05-17 21:29:21:

    1. icomment:
      Miguel, as someone, who knows the changes, could you be troubled to make up a patch for TclX? I will then test it and push into TclX' source (properly ifdef-ed on TCL_VERSION)...
      
      Thank you!
      
      
    2. login: "kot"
    3. mimetype: "text/plain"
    4. username: "kot"