Skip to content
Tcl Source Code History Of Ticket c837eb353e
Login

History Of Ticket c837eb353e

Artifacts Associated With Ticket c837eb353e

  1. Ticket change [2e31ee16bd] (rid 192591) by Ayappan on 2021-03-17 13:55:04:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      I built tcl 8.6.10 in 64bit mode in AIX 7.1 with the below configuration.
      
      export CC="cc_r -q64"
      export CFLAGS="-g"
      export LDFLAGS="-Wl,-blibpath:/usr/opt/tcl_64/lib:/usr/lib:/lib"
      export OBJECT_MODE=64
      
      ./configure --prefix=/usr/opt/tcl_64 --enable-shared --enable-threads --enable-64bit
      gmake -j4
      
      While executing the built tclsh , it coredumps.
      
      # ./tclsh
      % ls
      Segmentation fault (core dumped)
      
      # dbx ./tclsh core
      Type 'help' for help.
      [using memory image in core]
      reading symbolic information ...
      
      Segmentation fault in unnamed block in TEBCresume at line 2372 in file "/final_tcl_tk_expect/tcl_64bit/tcl8.6.10/generic/tclExecute.c" ($t1)
       2372       inst = *pc;
      (dbx) where
      unnamed block in TEBCresume(data = 0x00000001100a8e98, interp = 0x000000011002c200, result = 0), line 2372 in "tclExecute.c"
      unnamed block in TEBCresume(data = 0x00000001100a8e98, interp = 0x000000011002c200, result = 0), line 2372 in "tclExecute.c"
      unnamed block in TEBCresume(data = 0x00000001100a8e98, interp = 0x000000011002c200, result = 0), line 2372 in "tclExecute.c"
      unnamed block in TEBCresume(data = 0x00000001100a8e98, interp = 0x000000011002c200, result = 0), line 2372 in "tclExecute.c"
      TEBCresume(data = 0x00000001100a8e98, interp = 0x000000011002c200, result = 0), line 2372 in "tclExecute.c"
      unnamed block in TclNRRunCallbacks(interp = 0x0ffffffffffff690, result = 0, rootPtr = 0x09001000a116f6f8), line 4492 in "tclBasic.c"
      TclNRRunCallbacks(interp = 0x0ffffffffffff690, result = 0, rootPtr = 0x09001000a116f6f8), line 4492 in "tclBasic.c"
      Tcl_EvalObjv(interp = 0x09001000a116f6f8, objc = 0, objv = 0x0000000000000001, flags = 0), line 4215 in "tclBasic.c"
      ReleaseData(dataPtr = (nil), ??, ??), line 172 in "tclOptimize.c"
      Tcl_MainEx(argc = 150994943, argv = (nil), appInitProc = (nil), interp = (nil)), line 520 in "tclMain.c"
      main(argc = 0, argv = (nil)), line 84 in "tclAppInit.c"
      (dbx)
      
      The "gmake test" also coredumps with the same stack.
      
    5. foundin initialized to: "8.6.10"
    6. is_private initialized to: "0"
    7. login: "Ayappan"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "04cbc137e7ca0524b5c2205dc84b3f5a1750114c"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "Ayappan"
    14. subsystem initialized to: "47. Bytecode Compiler"
    15. title initialized to: "64 bit build of TCL coredumps in AIX"
    16. type initialized to: "Bug"
  2. Ticket change [b59c3ccd67] (rid 192736) by Ayappan on 2021-03-22 13:12:31:

    1. icomment:
      Seems like the peephole optimisation code has some issue when we compile with xlc in 64bit mode in AIX.
      
      I disabled that part of the code , then things started working fine.
      
      --- tclExecute.c_orig   2021-03-22 08:09:52.549422690 -0500
      +++ tclExecute.c        2021-03-22 06:39:19.945731992 -0500
      @@ -310,7 +310,7 @@
              }                                                       \
           } while (0)
       
      -#ifndef TCL_COMPILE_DEBUG
      +#if !defined(TCL_COMPILE_DEBUG) && !defined(_AIX)
       #define JUMP_PEEPHOLE_F(condition, pcAdjustment, cleanup) \
           do {                                                               \
              pc += (pcAdjustment);                                           \
      
    2. login: "Ayappan"
    3. mimetype: "text/plain"