<i>calling an imported alias in a deletion trace on the alias causes Tcl to cycle on routine resolution</i> status still Open with 3 other changes
by
.
D 2020-08-10T19:17:53.084
J icomment @Nathan:\sIs\sthe\sfix\s[7eed2baf73]\sreally\sfulfilled?\sLooks\sa\sbit\sstrange.\r\n\r\nBecause\sa\snew\sflag\s<code>CMD_DEAD</code>\schecking\sin\stclBasic\s(EvalObjvCore)\snow\swill\sbe\snowhere\sset\s:)\r\nEither\syou\swanted\sset\sit\sin\s3271\s(instead\sof\s<code>CMD_IS_DELETED</code>)...\sOr\sit\sis\seven\senough,\sand\sa\snew\sflag\s(as\swell\sas\sa\scheck\sfor\sdeleted)\sis\sunneeded\sat\sall.\r\n\r\nIn\sthis\scase\salternative\sdiff\s(doing\sthe\ssame\sas\syour\scode\swithout\snew\sflag\sCMD_DEAD)\srelative\sprevious\sversion\swould\sbe\ssomething\slike\sthat:\r\n<pre><code>\r\n<b\sstyle="color:blue">@@\s-4331,13\s+4331,9\s@@\sEvalObjvCore(</b>\r\n\s\s\s\s\s\s\s\s\s\s*\sCaller\sgave\sit\sto\sus.\r\n\s\s\s\s\s\s\s\s\s\s*/\r\n\s\r\n<b\sstyle="color:red">-\tif\s(!(preCmdPtr->flags\s&\sCMD_IS_DELETED))\s{\r\n-\t\s\s\s\s/*\r\n-\s\s\s\s\s\s\s\s\s\s\s\s\s*\sSo\slong\sas\sit\sexists,\suse\sit.\r\n-\s\s\s\s\s\s\s\s\s\s\s\s\s*/\r\n-\r\n-\t\s\s\s\scmdPtr\s=\spreCmdPtr;\r\n-\t}\selse\sif\s(flags\s&\sTCL_EVAL_NORESOLVE)\s{</b>\r\n<b\sstyle="color:green">+\tif\s(\s(flags\s&\sTCL_EVAL_NORESOLVE)\r\n+\t\s\s&&\s(preCmdPtr->flags\s&\sCMD_IS_DELETED)\r\n+\t)\s{</b>\r\n\s\t\s\s\s\s/*\r\n\s\t\s\s\s\s\s*\sWhen\sit's\sbeen\sdeleted,\sand\swe're\stold\snot\sto\sattempt\sresolving\r\n\s\t\s\s\s\s\s*\sit\sourselves,\sall\swe\scan\sdo\sis\sraise\san\serror.\r\n<b\sstyle="color:blue">@@\s-4348,6\s+4344,7\s@@\sEvalObjvCore(</b>\r\n\s\t\s\s\s\sTcl_SetErrorCode(interp,\s"TCL",\s"EVAL",\s"DELETEDCOMMAND",\sNULL);\r\n\s\t\s\s\s\sreturn\sTCL_ERROR;\r\n\s\t}\r\n<b\sstyle="color:green">+\tcmdPtr\s=\spreCmdPtr;</b>\r\n\s\s\s\s\s}\r\n\s\s\s\s\sif\s(cmdPtr\s==\sNULL)\s{\r\n\s\tcmdPtr\s=\sTEOV_LookupCmdFromObj(interp,\sobjv[0],\slookupNsPtr);\r\n</code></pre>\r\n\r\nJust...<br/>\r\n@all:\sit\slooks\slike\s[./artifact?name=4cd056636cb5020b&ln=4340-4350|this\scode]\sis\snot\scovered\sat\sall\s(or\sI\scan\ssimply\snot\sfind\sthe\stest\scase\scovering\sthat).
J login sebres
J mimetype text/x-fossil-wiki
K 29e8848eb9766b81413989ad8125b0c22d1d2c7e
U sebres
Z 0116af899453fdb5598ad96932e0cad0