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

History Of Ticket 1773040fffffffff

Artifacts Associated With Ticket 1773040fffffffff

  1. Ticket change [c094ddd38f] (rid 102426) by mpc_janssen on 2007-08-13 11:11:02:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When setting an write trace on ::errorInfo, the Tcl process gets terminated in some cases.
      The following script shows the problem:
      
      H:\>tclsh
      % trace add variable ::errorInfo write log_error
      % proc log_error args {puts $args}
      % dne
      errorInfo {} write
      invalid command name "dne"
      % set dne
      errorInfo {} write
      errorInfo {} write
      
      H:\>
      
      version info:
      
      H:\>tclsh
      % info patch
      8.5a7
      % parray tcl_platform
      tcl_platform(byteOrder)   = littleEndian
      tcl_platform(machine)     = intel
      tcl_platform(os)          = Windows NT
      tcl_platform(osVersion)   = 5.1
      tcl_platform(platform)    = windows
      tcl_platform(pointerSize) = 4
      tcl_platform(threaded)    = 1
      tcl_platform(user)        = nlv18605
      tcl_platform(wordSize)    = 4
      %
      
    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: "mpc_janssen"
    10. subsystem initialized to: "46. Traces"
    11. title initialized to: "::errorInfo trace exits Tcl in some cases"
    12. type initialized to: "Bug"
  2. Ticket change [2fb33389bc] (rid 93106) by mpc_janssen on 2007-08-13 18:21:42:

    1. icomment:
      Logged In: YES 
      user_id=1463011
      Originator: YES
      
      for easier copy and paste:
      
      trace add variable ::errorInfo write log_error
      proc log_error args {puts $args}
      dne
      
      
    2. login: "mpc_janssen"
    3. mimetype: "text/plain"
    4. username: "mpc_janssen"
  3. Ticket change [855493acf3] (rid 131297) by dkf on 2007-08-13 19:33:04:

    1. foundin changed to: "obsolete: 8.4.16"
    2. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      Whatever is going wrong, I can't duplicate it with the HEAD
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. resolution changed to: "Works For Me"
    6. username: "dkf"
  4. Ticket change [8c3a6810d9] (rid 127714) by msofer on 2007-08-13 20:27:38:

    1. foundin changed to: "obsolete: 8.5a7"
  5. Ticket change [58b5e2dc4d] (rid 117849) by msofer on 2007-08-13 20:28:24:

    1. assignee changed to: "msofer"
  6. Ticket change [a2937a02da] (rid 109920) by mpc_janssen on 2007-08-14 01:23:07:

    1. icomment:
      Logged In: YES 
      user_id=1463011
      Originator: YES
      
      Code segfaults on 8.5a6 on Linux and Windows XP
      
      
    2. login: "mpc_janssen"
    3. mimetype: "text/plain"
    4. username: "mpc_janssen"
  7. Ticket change [a88f0efbd0] (rid 99017) by dgp on 2007-08-14 02:04:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      This bug was fixed by the
      2007-06-21 commit that moved
      Tcl_Parse structs off the C stack
      and onto the Tcl stack.
      
      Don't really know why yet...
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [44650268d4] (rid 116704) by dgp on 2007-08-14 02:12:09:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      more precisely, it appears the
      1.255 -> 1.256 commit for tclBasic.c
      fixed this.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [9c60acd64f] (rid 96140) by mpc_janssen on 2007-08-14 02:15:17:

    1. icomment:
      
      
      File Added - 241101: trace.patch
      
      Logged In: YES 
      user_id=1463011
      Originator: YES
      
      attached patch adds a testcase for this issue
      File Added: trace.patch
      
      
    2. login: "mpc_janssen"
    3. mimetype: "text/plain"
    4. username: "mpc_janssen"
  10. Add attachment "trace.patch" [6ac194d287] (rid 128207) by mpc_janssen on 2007-08-14 02:15:17.

  11. Add attachment "trace.patch.2" [295e9b99f4] (rid 88859) by mpc_janssen on 2007-08-14 02:20:54.

  12. Ticket change [3f38ba9bbc] (rid 121418) by mpc_janssen on 2007-08-14 02:20:54:

    1. icomment:
      
      
      File Added - 241102: trace.patch.2
      
      Logged In: YES 
      user_id=1463011
      Originator: YES
      
      second version  removes trace on errorInfo in testcase cleanup, otherwise further tests will fail if this testcase fails because of the still existing errorInfo trace
      File Added: trace.patch.2
      
      
    2. login: "mpc_janssen"
    3. mimetype: "text/plain"
    4. username: "mpc_janssen"
  13. Ticket change [db79567202] (rid 107970) by mpc_janssen on 2007-08-14 04:27:53:

    1. icomment:
      Logged In: YES 
      user_id=1463011
      Originator: YES
      
      The following commit seems to have introduced the bug:
      7cdf93ecbf7d5ffe46c0d56f14edb4e93f8a3076 is first bad commit
      commit 7cdf93ecbf7d5ffe46c0d56f14edb4e93f8a3076
      Author: dgp <dgp>
      Date:   Wed Jan 11 17:34:54 2006 +0000
      
                  * generic/tclBasic.c:   Moved Tcl_LogCommandInfo from tclBasic.c to
                  * generic/tclNamesp.c:  tclNamesp.c to get access to identifier with
                  * tests/error.test (error-7.0): file scope.  Added check for traces
                  on ::errorInfo, and when present fall back to contruction of the
                  stack trace in the variable so that write trace notification timings
                  are compatible with earlier Tcl releases.  This reduces, but does not
                  completely eliminate the ***POTENTIAL INCOMPATIBILITY*** created by
                  the 2004-10-15 commit.  [Bug 1397843].
      
      
      
    2. login: "mpc_janssen"
    3. mimetype: "text/plain"
    4. username: "mpc_janssen"
  14. Ticket change [d612109579] (rid 123743) by dgp on 2007-08-14 04:31:32:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      This bug was first exposed
      by the fix for 1397843.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  15. Ticket change [05551d1f72] (rid 89042) by mpc_janssen on 2007-08-14 04:42:46:

    1. icomment:
      Logged In: YES 
      user_id=1463011
      Originator: YES
      
      with the first version that segfaults mentioned earlier the stack trace is:
      % configure --enable-symbols && make gdb
      .
      .
      .
      Type "help" followed by command name for full documentation.
      Type "apropos word" to search for commands related to "word".
      Command name abbreviations are allowed if unambiguous.
      (gdb) run
      Starting program: /home/mjanssen/repos/bug/unix/tclsh
      Failed to read a valid object file image from memory.
      % proc log args {puts $args}
      trace add variable ::errorInfo write log%
      % set dne
      errorInfo {} write
      
      Program received signal SIGSEGV, Segmentation fault.
      0x4009ef65 in TclExecuteByteCode (interp=0x804c710, codePtr=0x806b938)
          at /home/mjanssen/repos/bug/unix/../generic/tclExecute.c:6379
      6379                    TclDecrRefCount(objPtr);
      (gdb) bt
      #0  0x4009ef65 in TclExecuteByteCode (interp=0x804c710, codePtr=0x806b938)
          at /home/mjanssen/repos/bug/unix/../generic/tclExecute.c:6379
      #1  0x40090deb in TclCompEvalObj (interp=0x804c710, objPtr=0x8054820)
          at /home/mjanssen/repos/bug/unix/../generic/tclExecute.c:1051
      #2  0x4004c5b2 in Tcl_EvalObjEx (interp=0x804c710, objPtr=0x8054820, flags=131072)
          at /home/mjanssen/repos/bug/unix/../generic/tclBasic.c:4033
      #3  0x400a7082 in Tcl_RecordAndEvalObj (interp=0x804c710, cmdPtr=0x8054820, flags=131072)
          at /home/mjanssen/repos/bug/unix/../generic/tclHistory.c:146
      #4  0x400c898b in Tcl_Main (argc=-1, argv=0xbfcf6998, appInitProc=0x80486ab <Tcl_AppInit>)
          at /home/mjanssen/repos/bug/unix/../generic/tclMain.c:545
      #5  0x0804869c in main (argc=0, argv=0x1) at /home/mjanssen/repos/bug/unix/../unix/tclAppInit.c:87
      (gdb)
      
      
      
    2. login: "mpc_janssen"
    3. mimetype: "text/plain"
    4. username: "mpc_janssen"
  16. Ticket change [007fd2fa6c] (rid 119331) by mpc_janssen on 2007-08-14 04:54:52:

    1. icomment:
      Logged In: YES 
      user_id=1463011
      Originator: YES
      
      Some more info:
      (gdb) info local
      objPtr = (Tcl_Obj *) 0x0
      initTosPtr = (Tcl_Obj **) 0x804cbe8
      rangePtr = (ExceptionRange *) 0xbf990a78
      valuePtr = (Tcl_Obj *) 0x4004b3a7
      bytes = 0x8065b88 "set dne"
      length = 7
      eePtr = (ExecEnv *) 0x804cbd0
      initStackTop = -1
      initCatchTop = -1
      compiledLocals = (Var *) 0x0
      namespacePtr = (Namespace *) 0x804c9b8
      catchTop = -1
      tosPtr = (Tcl_Obj **) 0x804cbe8
      pc = (unsigned char *) 0x806b9a2 "\f"
      instructionCount = 2
      expandNestList = (Tcl_Obj *) 0x0
      checkInterp = 0
      cleanup = 1
      objResultPtr = (Tcl_Obj *) 0x8054a60
      result = 1
      
      
      
    2. login: "mpc_janssen"
    3. mimetype: "text/plain"
    4. username: "mpc_janssen"
  17. Ticket change [a479844293] (rid 110213) by dgp on 2007-08-14 05:52:56:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      The Tcl_LogCommandInfo() call out
      of TEBC requires DECACHE/CACHE protection
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  18. Ticket change [3427b85815] (rid 106710) by dgp on 2007-08-14 06:07:05:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2007-08-13T23:07:05"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      protection already there on core-8-4-branch.
      
      Committing it to HEAD.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. subsystem changed to: "47. Bytecode Compiler"
    10. username: "dgp"