<i>segmentation fault from deleting the the target of an imported alias during a trace on the target of the alias</i> status still Open with 3 other changes
by
.
D 2020-08-31T17:24:06.412
J icomment The\sissue\sthis\stime\sis\sthat\s<code>ProcBodyTestProcObjCmd()</code>\ssynthesizes\sa\r\nproc\sbody\sthat\simitates\sa\sTcl\sPro\sproc\sbody\sand\sthen\spasses\sit\sto\r\n<code>Tcl_ProcObjCmd()</code>,\swhich\srecognizes\sit\sas\sa\sTcl\sPro\scompiled\sproc\r\nbody\sand\sreuses\sthe\sexisting\sproc\srather\sthan\screating\sa\snew\sproc.\s\sThis\smeans\r\nthat\stwo\sdifferent\scommands\snow\sshare\sthe\ssame\sProc\sstructure,\swhich\sis\sodd\r\nbecause\sthe\s<code>Proc</code>\sstructure\sitself\skeeps\sa\spointer\sto\sthe\r\n<code>Command</code>\sstructure\sit\sis\sassociated\swith.\s\sWhich\scommand\sis\sit\r\nsupposed\sto\spoint\sto?\s\sIt\sseems\sthat\sin\sthe\scase\sof\sa\sTcl\sPro\scompiled\r\nprocedure,\sa\spointer\sto\sthe\smost\srecent\screated\scommand\sis\sstored,\sand\sprevious\r\ninformation\sdiscarded.\s\r\n\r\nIn\sthis\sunusual\scase,\sthe\s<code>Proc</code>\sstructure\sis\sshared\sbetween\r\nmultiple\scommands,\sbut\sthat\smeans\sthat\s<code>Tcl_ProcObjCommand</code>\s\smight\r\nreplace\sthe\sexising\s<code>procPtr->cmdPtr</code>\swith\sa\snew\sone.\s\sWhen\sit\sdoes\r\nthis\sit\sshould\sdecrement\sthe\sreference\scount\sof\sthe\sexisting\r\n<code>cmdPtr</code>.\r\n\r\nPreviously\sthis\swasn't\san\sissue\sbecause\sreference\scounting\sof\sCommand\r\nstructures\swas\slimited\sto\sits\soccurrences\sin\sByteCode\sinstruction\ssequences.\r\n\r\nFixed\sin\s[c045363cb0b77bf7].
J login pooryorick
J mimetype text/x-fossil-wiki
K 3422267ed6b79922ca6a69883d4e39901516443e
U pooryorick
Z 0fb9e90dabef6907d548b5ba57dd69a6