Skip to content
Tcl Source Code Artifact [5f6257f15e]
Login

Artifact [5f6257f15e]

Artifact 5f6257f15efbc630d1741fe9f44b3002e568a2c6:

Ticket change [5f6257f15e] - New ticket [217945ffffffffff|217945ffff] <i>loop running &#39;exec&#39; command hangs after N iterations</i>. by nobody on 2000-10-26 00:46:25.
D 2000-10-26T00:46:25
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3903\sBug\nVersion:\s8.2.2\nSubmitDate:\s'1999-12-20'\nLastModified:\s'2000-03-30'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nRelatedBugIDs:\s2460\nOS:\sWindows\sNT\nOSVersion:\sWindows\sNT\sv4.0,\sservice\srelease\s5\nMachine:\svarious\sPC's,\sa\sCompaq\sPentium\sII,\san\sIBM\sPentium\sII,\s2\shomebuil\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-03-30'\n\n\nName:\nRuss\sDurrett\n\nExtensions:\nnone\n\nCustomShell:\nnone\n\nReproducibleScript:\n#\sA\ssimple\sTcl\sshell\sprogram\sto\srun\s'Hello\sWorld!'\sin\sa\sloop.\nfor\s{set\sindex\s1}\s{$index\s<=\s10000}\s{incr\sindex}\s{\n\s\sset\shelloOut\s[exec\shello.exe]\n\s\sputs\s"$helloOut\s\sindex\s=\s$index"\n}\n\nObservedBehavior:\nI\swas\susing\sa\sTcl\sscript\sto\stest\sa\sC\sprogram\sby\srunning\sit\srepeatedly.\s\sI\sfound\sthat\sthe\sTcl\sscript\swould\srun\sthe\sC\sprogram\sa\scertain\nnumber\sof\stimes\sand\sthen\shang\sup.\s\sI\scan\sreduce\sthe\sproblem\sto\sa\sbare\sminimum\sby\susing\sthe\sabove\sscript\sto\srun\sthe\sfollowing\nC\sprogram\sin\sa\sloop:\n\n\s\s\s\s/*\sHello\sWorld!\sprogram\s*/\n\s\s\s\s#include\s<stdio.h>\n\s\s\s\sint\smain\s(void)\n\s\s\s\s{\n\s\s\s\s\s\sprintf\s("Hello\sWorld!\\n");\n\s\s\s\s\s\sreturn\s0;\n\s\s\s\s}\s/*\send\smain\s*/\n\nWhen\sI\srun\sthis\sunder\sWindows\sNT\s(v4,\sSR5),\sit\swill\shang\safter\sabout\s895\siteration\swith\sTcl\sv8.1\sor\sv8.22\sand\safter\sabout\s2022\niterations\swith\sTcl\sv8.2.\s\sI\shave\srun\sthis\son\s4\sdifferent\sPC's\s(a\sCompaq,\san\sIBM,\sand\s2\shomebuilts)\swith\svery\srepeatable\sresults.\nI\salso\stried\sthis\sunder\sWindows\s95\sand\sSolaris\sand\sthe\sscript\sworked\sfine,\sgoing\sal\sthe\sway\sto\s10,000\siterations.\n\nDesiredBehavior:\nTcl\sscript\sdoesn't\sstop\sin\sthe\smiddle\sof\sthe\sloop.\n\n\n\n
J foundin obsolete:\s8.2.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 60.\sNRE\sand\scoroutines
J title loop\srunning\s'exec'\scommand\shangs\safter\sN\siterations
J type Bug
K 217945ffffffffffffffffffffffffffffffffff
U nobody
Z e11ae07c8062bfaae0b6e61ebbe913d4