<i>command found in deleted namespace</i> status still Open with 4 other changes
by
.
D 2007-09-10T07:22:14
J icomment Logged\sIn:\sYES\s\nuser_id=148712\nOriginator:\sNO\n\nYour\sexpectations\scollide\swith\swhat\sis\scoded,\sapparently\sby\sdesign.\sThe\snamespace\s::x\sdoes\snot\sdie\swhen\s[namespace\sdelete\s::x]\sreturns,\sbut\srather\swhen\sthe\slast\sCallFrame\susing\s::x\sis\spopped;\sthe\scomments\sat\stclNamesp.c\sline\s588\sdescribe\sthat:\n\n/*\n\s*\sIf\sthe\snamespace\sis\son\sthe\scall\sframe\sstack,\sit\sis\smarked\sas\s"dying"\n\s*\s(NS_DYING\sis\sOR'd\sinto\sits\sflags):\sthe\snamespace\scan't\sbe\slooked\sup\n\s*\sby\sname\sbut\sits\scommands\sand\svariables\sare\sstill\susable\sby\sthose\n\s*\sactive\scall\sframes.\sWhen\sall\sactive\scall\sframes\sreferring\sto\sthe\n\s*\snamespace\shave\sbeen\spopped\sfrom\sthe\sTcl\sstack,\sTcl_PopCallFrame\swill\n\s*\scall\sthis\sprocedure\sagain\sto\sdelete\severything\sin\sthe\snamespace.\n\s*\sIf\sno\snsName\sobjects\srefer\sto\sthe\snamespace\s(i.e.,\sif\sits\srefCount\s\n\s*\sis\szero),\sits\scommands\sand\svariables\sare\sdeleted\sand\sthe\sstorage\sfor\n\s*\sits\snamespace\sstructure\sis\sfreed.\sOtherwise,\sif\sits\srefCount\sis\n\s*\snonzero,\sthe\snamespace's\scommands\sand\svariables\sare\sdeleted\sbut\sthe\n\s*\sstructure\sisn't\sfreed.\sInstead,\sNS_DEAD\sis\sOR'd\sinto\sthe\sstructure's\n\s*\sflags\sto\sallow\sthe\snamespace\sresolution\scode\sto\srecognize\sthat\sthe\n\s*\snamespace\sis\s"deleted".\sThe\sstructure's\sstorage\sis\sfreed\sby\n\s*\sFreeNsNameInternalRep\swhen\sits\srefCount\sreaches\s0.\n\s*/\n\n\nNote\sthat\sthis\smight\sjust\sbe\sa\sbug\sin\s[namespace\swhich],\sit\sseems\sto\sbe\sotherwise\srespected:\n\n%\snamespace\seval\sx\s{die;\s::x::test}\ninvalid\scommand\sname\s"::x::test"\n\nThis\sbeing\ssaid:\sthe\sprecise\sgoing-ons\son\snamespace\sdeletion,\sespecially\swrt\sto\sthe\sinterplay\swith\sactive\scall\sframes\sand\sdeletion\straces,\sis\snot\sspecified\sanywhere\sbut\sin\scode\scomments.\sHard\sto\ssay\show\smuch\sis\sreally\sby\sactual\sdesign,\sas\sopposed\sto\sa\sleast-bad\sjudgment\sat\sthe\stime\sit\swas\scoded.\n
J login msofer
J mimetype text/plain
J username msofer
K 1655294fffffffffffffffffffffffffffffffff
U msofer
Z dd5fa5165043df3fa7599da316be5bbf