.
D 2000-10-26T01:09:51
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4112\sBug\nVersion:\s8.2.3\nSubmitDate:\s'2000-02-01'\nLastModified:\s'2000-02-07'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sSolaris\nOSVersion:\sSolaris\s2.7\nMachine:\sSun\sUltra\s30\nFixedDate:\s'2000-02-07'\nFixedInVersion:\s8.3b1\nClosedDate:\s'2000-10-25'\n\n\nName:\nStephan\sVoges\n\nCustomShell:\nWe\sredefine\sthe\s"puts"\scommand.\n\nObservedBehavior:\nWe\suse\sTcl\s8.2.3\sin\sa\smultithreaded\sapplication.\s\sThis\sapplication\sinstalls\sits\sown\shandler\sfor\sSIGINT.\s\sWe\sobserve\sthat\sif\sthe\sscript\scontains\san\s"exec"\scommand,\sany\sCtrl-C\safter\sthe\s"exec"\swill\scause\sa\score\sdump.\s\sSearching\sfor\sthe\sstring\s"SIGINT"\sthrough\sthe\sTcl\ssource,\swe\sfound\sthat\sin\sthe\sfile\stclUnixPipe.c,\sthere\sis\sa\sfunction\sRestoreSignals\sthat\ssets\sthe\shandler\sfor\sSIGINT\sback\sto\sdefault.\s\sIf\swe\smodify\sthis\scode\sto\sset\sit\sto\sour\shandler,\sthe\sproblem\sgoes\saway.\s\sWe\salso\snoticed\sthat\sRestoreSignals\sis\scalled\sin\sa\sprocess\sspawned\sby\svfork,\swhich\saccording\sto\sthe\sman\spages\sis\snot\sMT-safe.\n\nDesiredBehavior:\nTcl\sshouldn't\schange\sour\ssignal\shandlers.\s\sIf\sit\sneeds\sto\stemporarily,\sor\sif\ssomething\selse\smight,\sit\sshould\ssave\sstate\sand\srestore\sstate\safterwards.\n\nPatch:\nDiff\soutput:\snote\sthat\sthis\swas\sjust\sa\shack,\swe\sdeclared\sour\shandler\s\n30a31\n>\s\sextern\svoid\smy_handler\s(int\ssig);\n493c494\n<\s\s\s\s\ssignal(SIGINT,\sSIG_DFL);\n---\n>\s\s\s\s\ssignal(SIGINT,\smy_handler);\n\nPatchFiles:\ntclUnixPipe.c\n\n\n\nThis\sshould\sbe\ssolved\sin\s8.3,\swhere\swe\sno\slonger\sattempt\sto\suse\nvfork\sat\sall\sdue\sto\sreasons\slike\sthe\sabove.\s\sPlease\stell\sus\sif\nthat\sdoesn't\sfix\sthis\sparticular\scase\s(it\sdid\ssolve\sother\ssignal\nrelated\sissues\swith\svfork).\s\n--\s02/05/2000\shobbs\nUser\sverified\sthat\s8.3b2\sworks\sas\sexpected.\s\n--\s02/07/2000\shobbs
J foundin final:\s8.2.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title Core\sdumps\son\sSIGINT\sin\smultithreaded\sapplication\safter\sretu
J type Bug
K 219045ffffffffffffffffffffffffffffffffff
U nobody
Z 7ca777cbc79c4b67e0b5446c67b079ef