Artifacts Associated With Ticket 218039
Ticket change [9b5a81eafd] (rid 111105) by nobody on 2000-10-26 00:52:28:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
Tcl on Solaris 2.6 crashes when exceptions are thrown by a .
- type initialized to: "Bug"
Ticket change [add530a99a] (rid 101525) by welch on 2000-10-26 08:13:43:
- closedate changed to: "2000-10-26T01:13:43"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [c3c54a7f03] (rid 111722) by dgp on 2001-04-16 23:47:41:
- closedate changed to: "2001-04-16T16:47:41"
- closer changed to: "dgp"
- resolution changed to: "Invalid"
- subsystem changed to: "None"