D 2012-02-26T01:18:12 J assignee vasiljevic J cmimetype text/plain J comment \n%\sputs\s$tcl_patchLevel\n8.5.10\n%\sparray\stcl_platform\ntcl_platform(byteOrder)\s\s\s=\slittleEndian\ntcl_platform(machine)\s\s\s\s\s=\sx86_64\ntcl_platform(os)\s\s\s\s\s\s\s\s\s\s=\sLinux\ntcl_platform(osVersion)\s\s\s=\s3.0.0-16-generic\ntcl_platform(platform)\s\s\s\s=\sunix\ntcl_platform(pointerSize)\s=\s8\ntcl_platform(threaded)\s\s\s\s=\s1\ntcl_platform(user)\s\s\s\s\s\s\s\s=\srtreleaven\ntcl_platform(wordSize)\s\s\s\s=\s8\n%\s\n\nProblem\sBehavior\nThe\sscript\sbelow\sproduces\sthis\soutput\s>90%\sbut\s\s<100%\sof\sthe\stime.\n\n$\stclsh\sgetHelp.tcl\nDoes\sthread\sexist?\sno\nDoes\sthread\sexist?\sno\nDoes\sthread\sexist?\sno\nDoes\sthread\sexist?\sno\nDoes\sthread\sexist?\sno\nDoes\sthread\sexist?\sno\ncalled\sTcl_FindHashEntry\son\sdeleted\stable\n$\secho\s$?\n0\n\nExpected\sBehaviour\nThe\smessage\s"called\sTcl_FindHashEntry\son\sdeleted\stable"\sshould\snot\sbe\sgenerated\n\nConcise\sCode\sSample\n\nset\struth(1)\syes\nset\struth(0)\sno\npackage\srequire\sThread\nset\sid\s[\sthread::id\s]\nfor\s{\sset\si\s0\s}\s{\s$i\s<\s6\s}\s{\sincr\si\s}\s{\nthread::create\s-preserved\s{\nwhile\s1\s{\nfor\s{\sset\si\s0\s}\s{\s$i\s<\s9999999\s}\s{\sincr\si\s}\s{}\nupdate\n}\n}\n}\nafter\s1000\nforeach\sid\s[\sthread::names\s]\s{\nif\s{\s$id\seq\s[\sthread::id\s]\s}\s{\scontinue\s}\nthread::release\s-wait\s$id\nputs\s"Does\sthread\sexist?\s$truth([\sthread::exists\s$id])"\n}\n J foundin obsolete:\s8.5.10 J is_private 0 J priority 5\sMedium J resolution None J status Open J submitter rtreleaven J subsystem 80.\sThread\sPackage J title called\sTcl_FindHashEntry\son\sdeleted\stable J type Bug K 3494470fffffffffffffffffffffffffffffffff U rtreleaven Z 6a76f23cb7c30c26c87fb2e76a36f516