Skip to content
Tcl Source Code History Of Ticket 2935978
Login

History Of Ticket 2935978

Artifacts Associated With Ticket 2935978

  1. Ticket change [2bad3f876a] (rid 118784) by wealthychef on 2010-01-21 00:45:16:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I tried to build Tcl on our AIX cluster and get a segfault.   
      
              xlc -g -g -qlanglvl=extended -qcpluscmt -DTCL_NO_STACK_CHECK=1 -g -qlanglvl=extended -qcpluscmt -DTCL_NO_STACK_CHECK=1    tclTestInit.o tclTest.o tclTestObj.o tclTestProcBodyObj.o  tclThreadTest.o tclUnixTest.o -L/usr/global/tools/vmd/1.8.7/aix_5_64_fed/src/tcl8.5.6/unix -ltcl8.5 -ldl  -lc -lm -lbsd   -L/usr/global/tools/vmd/1.8.7/aix_5_64_fed/src/tcl8.5.6/unix -o tcltest
              LIBPATH="`pwd`:${LIBPATH}"; export LIBPATH;  TCL_LIBRARY="/usr/global/tools/vmd/1.8.7/aix_5_64_fed/src/tcl8.5.6/library"; export TCL_LIBRARY;  ./tcltest /usr/global/tools/vmd/1.8.7/aix_5_64_fed/src/tcl8.5.6/unix/../tests/all.tcl 
      make: The signal code from the last command is 11.
      
      
      Stack Trace: 
      tack Trace
      C    TclExecuteByteCode, FP=fffffffffff45b0
      C    TclObjInterpProcCore, FP=fffffffffff7000
      C    TclObjInterpProc, FP=fffffffffff71b0
      C    TclEvalObjvInternal, FP=fffffffffff7230
      C    TclExecuteByteCode, FP=fffffffffff74a0
      C    TclObjInterpProcCore, FP=fffffffffff9ef0
      C    TclObjInterpProc, FP=fffffffffffa0a0
      C    TclEvalObjvInternal, FP=fffffffffffa120
      C    TclExecuteByteCode, FP=fffffffffffa390
      C    TclObjInterpProcCore, FP=fffffffffffcde0
      C    TclObjInterpProc, FP=fffffffffffcf90
      C    TclEvalObjvInternal, FP=fffffffffffd010
      C    TclEvalObjvInternal, FP=fffffffffffd280
      C    TclEvalEx,        FP=fffffffffffd4f0
      C    Tcl_EvalEx,       FP=fffffffffffd720
      C    PkgRequireCore,   FP=fffffffffffd790
      C    Tcl_PkgRequireProc, FP=fffffffffffd9d0
      C    Tcl_PackageObjCmd, FP=fffffffffffda50
      C    TclEvalObjvInternal, FP=fffffffffffdc80
      C    TclEvalEx,        FP=fffffffffffdef0
      C    Tcl_EvalEx,       FP=fffffffffffe120
      C    Tcl_FSEvalFileEx, FP=fffffffffffe190
      C    Tcl_Main,         FP=fffffffffffe360
      C    main,             FP=fffffffffffe700
          .__start,         FP=fffffffffffe770
      
      
      source view in TclEvalObjvInternal():  
      
      3682      cmdPtr->refCount++;
      3683      iPtr->cmdCount++;
      3684      if (code == TCL_OK && traceCode == TCL_OK
      3685              && !TclLimitExceeded(iPtr->limit)) {
      3686          if (TCL_DTRACE_CMD_ENTRY_ENABLED()) {
      3687              TCL_DTRACE_CMD_ENTRY(TclGetString(objv[0]), objc - 1,
      3688                      (Tcl_Obj **)(objv + 1));
      3689          }
       =>          code = (*cmdPtr->objProc)(cmdPtr->objClientData, interp, objc, objv);
      3691          if (TCL_DTRACE_CMD_RETURN_ENABLED()) {
      3692              TCL_DTRACE_CMD_RETURN(TclGetString(objv[0]), code);
      3693          }
      3694      }
      3695  
      
      
    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: "wealthychef"
    10. subsystem initialized to: "34. tcltest Package"
    11. title initialized to: "Segfault on AIX 5 using tcl 8.5.8"
    12. type initialized to: "Bug"
  2. Ticket change [f448fd3727] (rid 129881) by dgp on 2010-01-21 09:12:33:

    1. icomment:
      
      From a quick look, I don't know what's wrong,
      but it is certainly not a problem in the tcltest package.
      
      Passing the buck wildly...  If, as I suspect, none of
      the usual maintainers have an AIX system to work on,
      we may need you to either diagnose in more detail on
      your own, or interact with someone who can give you
      things to try on your AIX system.
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. subsystem changed to: "None"
    5. username: "dgp"
  3. Ticket change [4993b35b84] (rid 100077) by dgp on 2010-01-21 09:12:34:

    1. assignee changed to: "ferrieux"
    2. priority changed to: "7 High"
  4. Ticket change [2286be8e40] (rid 130761) by ferrieux on 2010-01-21 14:32:17:

    1. icomment:
      Ouch. No AIX here indeed.
      A few random shots in the dark:
      
      - the title mentions 8.5.8, the directories are named 8.5.6. Typo ?
      
      - the linker line above seems to have every option repeated. Is it the Makefile generated by ./configure, or is it homegrown ?
      
      - it seems to be a threaded debug build, while ISTR xlc has certain needs regarding threading (options, order of headers). Can you check these requirements are met ?
      
      - can you try gcc ?
      
      
      
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  5. Ticket change [f957eb019c] (rid 91690) by ferrieux on 2010-01-22 05:14:03:

    1. assignee changed to: "hobbs"
  6. Ticket change [1a0e4ebbbc] (rid 122910) by hobbs on 2010-01-22 05:20:49:

    1. icomment:
      Why are you using non-TEA compiler options?  Have you had any issues when working with pure core configure?  I know that works.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. resolution changed to: "Invalid"
    5. username: "hobbs"
  7. Ticket change [12663e6c89] (rid 95299) by wealthychef on 2010-01-22 07:20:51:

    1. icomment:
      @dgp:  No worries, I'm willing to work with you guys to find a solution.  
      
      @ferrieux:  Sorry, my bad, I have tried with 8.5.8 and wanted to try 8.5.6 as the maintainer of the VMD software package told me it had worked for him on AIX 6.  I'm 95% sure it's the exact same line segfaulting in 8.5.8, but I'm rebuilding right now to confirm this.  
      The repeated options are probably because I set CFLAGS, CPPFLAGS, and CXXFLAGS to be all the same.  Force of habit.  The configure script was hacked in this particular instance to add the  DTCL_NO_STACK_CHECK thing, but it segfaults with or without that hack.  The hack does not change the logic, it simply adds that flag.  
      What requirements are you talking about WRT xlc threading options?  I didn't follow that part.  Can you be more specific? 
      I'll try gcc, although that might be murky territory.  As long as it works, I don't care!  I just  
      
      @hobbs:  I don't know what TEA is.  If you're talking about DTCL_NO_STACK_CHECK, I added it to try to fix the problem, but it has no effect.  What is pure core configure?  Do you mean just configure without any options?  The options I'm using are: 
          export CC=xlc
          export CXX=xlC
          export LD=xlC
          # John Stone suggests -DTCL_NO_STACK_CHECK=1
          export CPPFLAGS="-g -qlanglvl=extended -qcpluscmt -DTCL_NO_STACK_CHECK=1"
          export CFLAGS="$CPPFLAGS"
          export CXXFLAGS="$CPPFLAGS"
          export SHLIB_SUFFIX=".a"
          export LD_FLAGS="-bmaxdata:0x80000000" # ala John Stone
      
          TCL_CONFIG_OPTIONS="--disable-shared --disable-threads"
         ./configure ${TCL_CONFIG_OPTIONS} --prefix=/usr/global/tools/vmd/1.8.7/$SYS_TYPE/
          sedfiles 's/-O/-g/' Makefile
      
      
      
    2. login: "wealthychef"
    3. mimetype: "text/plain"
    4. username: "wealthychef"
  8. Ticket change [34f9e4687c] (rid 106837) by hobbs on 2010-01-22 08:41:40:

    1. icomment:
      TEA is the Tcl Extension Architecture and in this case refers to the tcl.m4 and configure magic all built to support each arch.  I have 8.5 threaded working without any problems, and that is done only with CC=xlc_r and /usr/vac/bin on the path.
      
      With that and following the standard instructions (./configure; make test), it should work.  This means none of the other flags you are using.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  9. Ticket change [74f78cb872] (rid 105309) by ferrieux on 2010-01-22 14:38:41:

    1. icomment:
      Ah, "xlc_r", right, thanks Jeff. That's what I was half-remembering :-}
      The "_r" means "reentrant", though I have no idea why the compiler must be so different do deserve a specific executable in that case.
      
      Richard, simple advice: if you observe a bug that is unchanged by various tweaks, by all means post the bug report _without_ the tweaks ! Clearly they bring no light to the investigation, but are a direct source of red herrings ;-)
      
      So, can you clarify what in your case differs from "./configure" out of necessity ?
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  10. Ticket change [ef745183f1] (rid 108996) by wealthychef on 2010-01-23 03:50:56:

    1. icomment:
      OK, sorry, sorry, I screwed up.  It looks like one of the clever options I was passing was the problem the whole time.  I compile as follows and all is well now: 
      
          export CC=xlc
          export CXX=xlC
          export SHLIB_SUFFIX=".a"
          TCL_CONFIG_OPTIONS="--disable-shared"
            ./configure ${TCL_CONFIG_OPTIONS} --prefix=/usr/global/tools/vmd/1.8.7/$SYS_TYPE/
          sedfiles 's/-O/-g/' Makefile
          gmake || errexit "tcl build failed"
          gmake test || errexit "tcl make test failed"
          gmake install || errexit "tcl install failed"
      
      Thanks for the help.  VMD is now working for me, which it was not before. 
      The reason for the --disable-shared and SHLIB_SUFFIX thing is that xlC does not recognize the .so suffix on AIX.  
      By the way, I agree, why would anyone compile without reentrant ability anyhow?  Why even make an xlc without the _r?   
      
      
    2. login: "wealthychef"
    3. mimetype: "text/plain"
    4. username: "wealthychef"
  11. Ticket change [9d6d866aa8] (rid 96302) by hobbs on 2010-08-05 03:16:14:

    1. closedate changed to: "2010-08-04T20:16:14"
    2. closer changed to: "hobbs"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "hobbs"