Skip to content
Tcl Source Code Artifact [9b5a81eafd]
Login

Artifact [9b5a81eafd]

Artifact 9b5a81eafd7758d7d282c4ad25cb3b18a6cd1a7a:

Ticket change [9b5a81eafd] - New ticket [218039ffffffffff|218039ffff] <i>Tcl on Solaris 2.6 crashes when exceptions are thrown by a .</i>. by nobody on 2000-10-26 00:52:28.
D 2000-10-26T00:52:28
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1349\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-03-02'\nLastModified:\s'1999-09-16'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sSolaris\nOSVersion:\s2.6\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-09-16'\n\n\nName:\nPhilip\sEhrens\n\nExtensions:\nBLT,\sX,\sExpect,\sTk\n\nReproducibleScript:\nload\stest.so\ntest\n\n\n\n\nObservedBehavior:\nWhen\sthe\sfollowing\scode\sfragment\sis\scompiled\sinto\sa\s.so\sand\sloaded\ninto\sTcl\son\sSolaris,\sit\scrashes\son\sa\scall\sto\s"test".\nThis\soccurs\son\sTcl\sversions\s8.0.2-8.0.4.\s\sI\shave\snot\stested\s8.0.5.\nThe\sproblem\sDOES\sNOT\soccur\swhen\sthe\sTcl\spackage\sis\scompiled\swith\ngcc-2.7.2.3\s--\sbut\sdoes\smanifest\swith\sall\sversions\sof\segcs.\n\nThe\scode\sworks\sfine\sunder\sLinux\s--\sthis\sbug\sis\sspecific\sto\sSolaris.\n\n#include\s<tcl.h>\n#include\s<math.h>\n\nextern\s"C"\n{\n\s\s\s\sint\sTest_Init(\sTcl_Interp\s*interp\s);\n\nint\sTestCmd(\n\s\s\s\sClientData\sclientData,\sTcl_Interp\s*interp,\sint\sargc,\schar*argv[]\s)\n{\n\s\s\s\stry\n\s\s\s\s{\n\s\s\s\s\s\s\s\sthrow(\s1\s);\n\s\s\s\s}\n\s\s\s\scatch(\s...\s)\n\s\s\s\s{}\n\n\s\s\s\ssprintf(\sinterp->result,\s"OK"\s);\n\s\s\s\sreturn\sTCL_OK;\n}\n\nint\sTest_Init(\sTcl_Interp\s*interp\s)\n{\n\s\s\s\sTcl_CreateCommand(\sinterp,\s"test",\sTestCmd,\s(ClientData)NULL,\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s(Tcl_CmdDeleteProc\s*)NULL\s);\n\s\s\s\s\n\s\s\s\sTcl_PkgProvide(\sinterp,\s"test",\s"1.1"\s);\n\s\s\s\sreturn\sTCL_OK;\n}\n\n}\n\n\n\n\nDesiredBehavior:\nThe\sscript\sshould\sreturn\s"OK",\sinstead\sit\saborts!\n\n\n\n\n\nThis\slooks\sto\spossibly\sbe\sa\scompiler\sbug,\ssince\sit\sbombs\son\negcs\sbut\snot\sgcc\sand\sis\sC++\srelated.\s\sHowever,\sthis\sis\snot\nthe\scleanest\scode\seither.\s\sThe\suser\sshould\snot\suse\sinterp->result\ndirectly\s-\sthey\srisk\sgetting\sstomped\sthere.\s\n--\s09/16/1999\shobbs
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Tcl\son\sSolaris\s2.6\scrashes\swhen\sexceptions\sare\sthrown\sby\sa\s.
J type Bug
K 218039ffffffffffffffffffffffffffffffffff
U nobody
Z 59a8d8eaabb39e6cbf932a73a7091497