Skip to content
Tcl Source Code History Of Ticket af08e897775f807b
Login

History Of Ticket af08e897775f807b

Artifacts Associated With Ticket af08e897775f807b

  1. Ticket change [0ede1f2870] (rid 140951) by dgp on 2014-12-16 16:11:43:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Test encoding-24.2 fails due to segfault in a
      child process:
      
      ==== encoding-24.2 EscapeFreeProc on open channels FAILED
      ==== Contents of test case:
      
          # Bug #524674 output
          viewable [runInSubprocess {
              encoding system cp1252; # Bug #2891556 crash revelator
              fconfigure stdout -encoding iso2022-jp
              puts ab\u4e4e\u68d9g
              set env(TCL_FINALIZE_ON_EXIT) 1
              exit
          }]
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- errorInfo: abB8C(DD%g
      child killed: segmentation violation
          while executing
      "exec [interpreter] $theFile"
          (procedure "runInSubprocess" line 4)
          invoked from within
      "runInSubprocess {
              encoding system cp1252; # Bug #2891556 crash revelator
              fconfigure stdout -encoding iso2022-jp
              puts ab\u4e4e\u68d9g
              set env(TCL_F..."
          ("uplevel" body line 3)
          invoked from within
      "uplevel 1 $script"
      ---- errorCode: CHILDKILLED 16076 SIGSEGV {segmentation violation}
      ==== encoding-24.2 FAILED
      
      Bisection says this failure was introduced in checkin
      
      http://core.tcl.tk/tcl/info/c16bc1a7db
      
    5. foundin initialized to: "c16bc1a7db (8.6.3)"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Critical"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "10. Objects"
    14. title initialized to: "encoding-24.2 segfault"
    15. type initialized to: "Bug"
  2. Ticket change [05a24b2418] (rid 140952) by dgp on 2014-12-16 16:47:13:

    1. icomment:
      Program received signal SIGSEGV, Segmentation fault.
      0x00000000004da7e5 in TableToUtfProc (clientData=0x67cde0, 
          src=0x7fffffffe648 "p3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", 
          srcLen=123, flags=2, statePtr=0x7fffffffcae0, dst=0x6a16ac "", 
          dstLen=1602, srcReadPtr=0x7fffffffcadc, dstWrotePtr=0x7fffffffcad8, 
          dstCharsPtr=0x7fffffffcad4)
          at /home/dgp/fossil/tcl-only/generic/tclEncoding.c:2594
      2594                ch = pageZero[byte];
      Missing separate debuginfos, use: debuginfo-install glibc-2.17-55.el7_0.1.x86_64 libgcc-4.8.2-16.2.el7_0.x86_64 zlib-1.2.7-13.el7.x86_64
      (gdb) bt
      #0  0x00000000004da7e5 in TableToUtfProc (clientData=0x67cde0, 
          src=0x7fffffffe648 "p3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", 
          srcLen=123, flags=2, statePtr=0x7fffffffcae0, dst=0x6a16ac "", 
          dstLen=1602, srcReadPtr=0x7fffffffcadc, dstWrotePtr=0x7fffffffcad8, 
          dstCharsPtr=0x7fffffffcad4)
          at /home/dgp/fossil/tcl-only/generic/tclEncoding.c:2594
      #1  0x00000000004d87dc in Tcl_ExternalToUtfDString (encoding=0x6744c0, 
          src=0x7fffffffe648 "p3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", 
          srcLen=123, dstPtr=0x7fffffffcb30)
          at /home/dgp/fossil/tcl-only/generic/tclEncoding.c:1136
      #2  0x000000000058d45b in TclpFindVariable (
          name=0x5d258d "TCL_FINALIZE_ON_EXIT", lengthPtr=0x7fffffffcd20)
          at /home/dgp/fossil/tcl-only/unix/tclUnixInit.c:1013
      #3  0x00000000004e3cdd in TclGetEnv (name=0x5d258d "TCL_FINALIZE_ON_EXIT", 
          valuePtr=0x7fffffffcd60) at /home/dgp/fossil/tcl-only/generic/tclEnv.c:528
      #4  0x0000000000534a37 in TclFullFinalizationRequested ()
          at /home/dgp/fossil/tcl-only/generic/tclMain.c:733
      #5  0x0000000000563aaf in TclFinalizeThreadData ()
          at /home/dgp/fossil/tcl-only/generic/tclThread.c:360
      #6  0x00000000004e59e1 in Tcl_Finalize ()
          at /home/dgp/fossil/tcl-only/generic/tclEvent.c:1186
      #7  0x00000000004e585e in Tcl_Exit (status=0)
          at /home/dgp/fossil/tcl-only/generic/tclEvent.c:963
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [e736733009] (rid 140961) by dgp on 2014-12-17 18:32:32:

    1. icomment:
      
      The essential problem here is that the helper
      routine TclFullFinalizationRequested() makes use
      of the encoding subsystem as part of reading an
      environment variable, but the finalization sequence
      is calling that routine after the encoding subsystem
      has been finalized.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [62015b2ee5] (rid 140965) by dgp on 2014-12-17 20:00:04:

    1. icomment:
      
      Branch bug-af08e89777 created to work on this.
      
      Step 1: Improve encoding finalization so that it more completely
      restores to the pre-initialized state.  This makes finalization
      errors happen repeatably and reliably across platforms rather
      than being a consequence of platform-specific happenstance about
      how freed memory is reused.
      
      With this revision both tests exit-1.2 and encoding-24.2 should
      reliably fail.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  5. Ticket change [d71fd4daa6] (rid 140969) by dgp on 2014-12-17 20:47:58:

    1. icomment:
      
      Step 2: Rework the (transitive) callers of TclFinalizeThreadData()
      so that we control whether or not TclFinalizeThreadAllocThread()
      is called in the desired way for supporting default quick exit.
      Tests now pass.  Revised signatures are all in the fully internal
      routines only.  Nothing even in the private stubs table is changed.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  6. Ticket change [837f3ebb07] (rid 140970) by dgp on 2014-12-17 20:48:44:

    1. assignee changed to: "ferrieux"
    2. icomment:
      
      Step 3:  Ask ferrieux to take an independent look, and
      then merge to trunk if he approves.  Thanks!
      
    3. login: "dgp"
    4. mimetype: "text/plain"
  7. Ticket change [8e7bac20cd] (rid 140973) by dgp on 2014-12-18 14:37:44:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2457010.10954112"
    3. closer changed to: "dgp"
    4. icomment:
      
      Received provisional approval, so merging to trunk
      for all the industrial strength testing.  Thanks!
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"