.
D 2002-09-26T16:29:25
J assignee dgp
J cmimetype text/plain
J comment Under\ssome\scircumstances,\swhen\sidle\sevents\sare\s\npending,\sexecution\straces\swith\s'enterstep'\s\nand\s'leavestep'\sdo\snot\strace\sthese\sevents.\n\nThe\sattached\sscript\sshows\sthe\sproblem.\s\sIt\sruns\stwo\s\ndifferent\sscenarios\sof\stracing\s'foo':\n\nproc\sfoo\s{}\s{\n\s\s\s\smsg\s"hi"\n\s\s\s\sset\sa\s1\n}\n\nfoo\n\nafter\sidle\s{puts\sidle}\s;\sfoo\n\nThe\sfirst\sof\sthese\sworks\scorrectly,\sbut\sthe\ssecond\s\none\sskips\sthree\scommands\sthat\sshould\sbe\straced\s--\n\sthese\sthree\sevents\snever\soccur:\n\n\s\s\s\s{msg\shi}\s0\s{}\sleavestep\n\s\s\s\s{set\sa\s1}\senterstep\n\s\s\s\s{set\sa\s1}\s0\s1\sleavestep\n\nThis\sis\son\sWindows,\sbut\sthe\scode\sis\sentirely\sgeneric.\n\n---\n#\sscript\sstarts\shere\n\nproc\smsg\s{txt}\s{\n\s\s\s\sset\sa\s[::msgcat::mc\s$txt]\n\s\s\s\supdate\sidletasks\n}\n\nproc\sfoo\s{}\s{\n\s\s\s\smsg\s"hi"\n\s\s\s\sset\sa\s1\n}\n\nproc\slog\s{args}\s{\n\s\s\s\sputs\s[string\srange\s$args\s0\s40]\n}\n\ntrace\sadd\sexecution\sfoo\s{enter\sleave\senterstep\s\nleavestep}\slog\n\nputs\sstderr\s"tracing\swithout\sany\sidletasks"\nputs\sstderr\s"notice\show\sthere\sis\sa\sline\s'{msg\shi}\s0\s{}\s\nleavestep'"\nupdate\nfoo\n\nputs\sstderr\s"tracing\swith\sidletask"\nafter\sidle\s{puts\sidle}\s;\sfoo\n\nputs\sstderr\s"Notice\show\sin\sthe\ssecond\srun,\sthe\s\nfollowing\slines"\nputs\sstderr\s"are\smissing\s{\n\s\s\s\s{msg\shi}\s0\s{}\sleavestep\n\s\s\s\s{set\sa\s1}\senterstep\n\s\s\s\s{set\sa\s1}\s0\s1\sleavestep\n}"\n
J foundin obsolete:\s8.4.0
J priority 5\sMedium
J resolution None
J status Open
J submitter vincentdarley
J subsystem 18.\sCommands\sM-Z
J title 'execution\strace'\sskips\ssome\scommands
J type Bug
K 615043ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 02b8b6ddd19c97b4cbff58ddcab1c64c