Skip to content
Tcl Source Code History Of Ticket 218039
Login

History Of Ticket 218039

Artifacts Associated With Ticket 218039

  1. Ticket change [9b5a81eafd] (rid 111105) by nobody on 2000-10-26 00:52:28:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1349 Bug
      Version: 8.0.4
      SubmitDate: '1999-03-02'
      LastModified: '1999-09-16'
      Severity: CRIT
      Status: Closed
      Submitter: pat
      ChangedBy: hobbs
      OS: Solaris
      OSVersion: 2.6
      Machine: Other
      FixedDate: '2000-10-25'
      ClosedDate: '1999-09-16'
      
      
      Name:
      Philip Ehrens
      
      Extensions:
      BLT, X, Expect, Tk
      
      ReproducibleScript:
      load test.so
      test
      
      
      
      
      ObservedBehavior:
      When the following code fragment is compiled into a .so and loaded
      into Tcl on Solaris, it crashes on a call to "test".
      This occurs on Tcl versions 8.0.2-8.0.4.  I have not tested 8.0.5.
      The problem DOES NOT occur when the Tcl package is compiled with
      gcc-2.7.2.3 -- but does manifest with all versions of egcs.
      
      The code works fine under Linux -- this bug is specific to Solaris.
      
      #include <tcl.h>
      #include <math.h>
      
      extern "C"
      {
          int Test_Init( Tcl_Interp *interp );
      
      int TestCmd(
          ClientData clientData, Tcl_Interp *interp, int argc, char*argv[] )
      {
          try
          {
              throw( 1 );
          }
          catch( ... )
          {}
      
          sprintf( interp->result, "OK" );
          return TCL_OK;
      }
      
      int Test_Init( Tcl_Interp *interp )
      {
          Tcl_CreateCommand( interp, "test", TestCmd, (ClientData)NULL,
                             (Tcl_CmdDeleteProc *)NULL );
          
          Tcl_PkgProvide( interp, "test", "1.1" );
          return TCL_OK;
      }
      
      }
      
      
      
      
      DesiredBehavior:
      The script should return "OK", instead it aborts!
      
      
      
      
      
      This looks to possibly be a compiler bug, since it bombs on
      egcs but not gcc and is C++ related.  However, this is not
      the cleanest code either.  The user should not use interp->result
      directly - they risk getting stomped there. 
      -- 09/16/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.0.4"
    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:
      Tcl on Solaris 2.6 crashes when exceptions are thrown by a .
      
    11. type initialized to: "Bug"
  2. Ticket change [add530a99a] (rid 101525) by welch on 2000-10-26 08:13:43:

    1. closedate changed to: "2000-10-26T01:13:43"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [c3c54a7f03] (rid 111722) by dgp on 2001-04-16 23:47:41:

    1. closedate changed to: "2001-04-16T16:47:41"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "None"