Skip to content
Tcl Source Code History Of Ticket 218847ffffffffff
Login

History Of Ticket 218847ffffffffff

Artifacts Associated With Ticket 218847ffffffffff

  1. Ticket change [fcfcd5fa1b] (rid 108331) by nobody on 2000-10-26 01:06:34:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2376 Bug
      Version: 8.2b1
      SubmitDate: '1999-07-16'
      LastModified: '1999-07-16'
      Severity: CRIT
      Status: Released
      Submitter: techsupp
      ChangedBy: redman
      OS: Other
      OSVersion: Linux (RedHat 5.1) on Alpha XL-300
      Machine: NA
      FixedDate: '1999-07-16'
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Don Porter
      
      
      
      Comments:
      
      When 'configure' finds -lieee and causes tclsh to be linked with it,
      
          it also needs to compile with the -mieee option to gcc on DEC Alpha
      
          platforms.  Otherwise FPEs are fatal.
      
          
      
          Apply the patch to aclocal.m4 and rerun autoconf to generate a
      
          'configure' which sets up the required -mieee option in the
      
          Makefile.
      
          
      
          It's not clear to me what role the file unix/tcl.m4 plays, so I
      
          left it alone.
      
          
      
          This may not be the best fix.  gcc documentation says -mieee will
      
          slow down floating point operations.  But it stops the crash
      
          diagnosed above.
      
          
      
          This problem only appeared with the 8.2b1 release of Tcl because
      
          it coincides with an upgrade at Scriptics from autoconf-2.9 to
      
          autoconf-2.13 to generate the 'configure' files distributed with
      
          Tcl.  autoconf-2.9 was buggy, so it never found -lieee and this
      
          problem didn't occur.  tclsh runs fine if the -lieee library is
      
          omitted.  That would probably be a better fix, but somewhat trickier
      
          to develop as a patch without implications for other platforms
      
          that I can't test.
      
      
      
      ObservedBehavior:
      
      $ ./configure --enable-symbols --disable-shared
      
          ...
      
          checking for main in -lieee... yes
      
          ...
      
          $ make
      
          $ gdb ./tclsh
      
          ...
      
          (gdb) run
      
          ...
      
          % expr acos(-2.0)
      
          
      
          Program received signal SIGFPE, Arithmetic exception.
      
          0x12006b60c in ExprUnaryFunc (interp=0x1201e4060, eePtr=0x1201e44e0, 
      
              clientData=0x15555784260) at ./../generic/tclExecute.c:3451
      
          3451        if ((errno != 0) || IS_NAN(dResult) || IS_INF(dResult)) {
      
          (gdb) info stack
      
          #0  0x12006b60c in ExprUnaryFunc (interp=0x1201e4060, eePtr=0x1201e44e0,
      
          
      
              clientData=0x15555784260) at ./../generic/tclExecute.c:3451
      
          #1  0x1200697d0 in TclExecuteByteCode (interp=0x1201e4060,
      
          codePtr=0x12020a670)
      
              at ./../generic/tclExecute.c:2439
      
          #2  0x12002e294 in Tcl_EvalObjEx (interp=0x1201e4060,
      
          objPtr=0x1201f2b70, 
      
              flags=0) at ./../generic/tclBasic.c:2698
      
          #3  0x120075a10 in Tcl_RecordAndEvalObj (interp=0x1201e4060, 
      
              cmdPtr=0x1201f2b70, flags=0) at ./../generic/tclHistory.c:142
      
          #4  0x12000d648 in Tcl_Main (argc=1, argv=0x11ffff850, 
      
              appInitProc=0x12000ce80 <Tcl_AppInit>) at
      
          ./../generic/tclMain.c:236
      
          #5  0x12000ce58 in main (argc=1, argv=0x11ffff850) at
      
          ./../unix/tclAppInit.c:83
      
      
      
      DesiredBehavior:
      
      No crashes evaluating Tcl scripts.
      
      
      
      Patch:
      
      Index: aclocal.m4
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/unix/aclocal.m4,v
      
      retrieving revision 1.6
      
      diff -c -r1.6 aclocal.m4
      
      *** aclocal.m4  1999/06/19 00:18:42     1.6
      
      --- aclocal.m4  1999/07/15 23:26:06
      
      ***************
      
      *** 713,718 ****
      
      --- 713,721 ----
      
                          LDFLAGS=""
      
                          LD_SEARCH_FLAGS=""])
      
                  fi
      
      +           if test "`uname -m`" = "alpha" ; then
      
      +               EXTRA_CFLAGS="-mieee"
      
      +           fi
      
                  ;;
      
              MP-RAS-02*)
      
                  SHLIB_CFLAGS="-K PIC"
      
      
      
      PatchFiles:
      
      unix/aclocal.m4
      
      
      
      
      
      Fixed in 8.2b2 
      -- 07/16/1999 redman
      
    4. foundin initialized to: "obsolete: 8.2b1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Fatal floating point exception"
    11. type initialized to: "Bug"
  2. Ticket change [cdf2a508ee] (rid 95973) by welch on 2000-10-26 08:30:13:

    1. closedate changed to: "2000-10-26T01:30:13"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [86f3fadce4] (rid 131606) by dgp on 2001-04-18 21:39:53:

    1. closedate changed to: "2001-04-18T14:39:53"
    2. closer changed to: "dgp"
    3. subsystem changed to: "53. Configuration and Build Tools"