.
D 2024-05-16T19:19:10.611
J icomment OK,\sit\slooks\slike\sa\s`name`\sof\sreflected\schannel\sitself\s(the\sobject\sis\s`rcPtr->name`,\sand\safter\sref-decrement\sin\s`FreeReflectedChannel`\sits\s`refCount`\sis\sstill\s2,\sso\shas\sbeen\snot\sremoved\sand\shold\sthe\sstatePtr\sof\schannel\swithin).\r\n\r\n\r\nThe\sissue\sis\stherefore\snot\srelated\sto\sthis\sticket\sand/or\sfix...<br/>\r\nIt\sis\ssimply\sa\sweird\sconstellation:\sobject\scontaining\sthe\schannel\sname\s(rc0)\sis\sreferenced\sin\sreflected\schannel\sitself,\sand\sif\sthe\schannel\sgets\sclosed\sas\slong\sas\sits\sstate\sis\spreserved\sseveral\stimes\s(so\sFreeReflectedChannel\sdoesn't\sremove\sit),\sa\stypical\scyclic\sreference\sgets\screated:\r\n\r\n-\s`rcPtr->name`\s(Tcl_Obj\sof\schannel\stype)\sholds\sthe\sref\sto\s`statePtr`,\r\n-\s`statePtr`\sholds\sthe\sref\sto\schannel,\r\n-\s`chanPtr`\sholds\sthe\sref\sto\sreflected\s(`rcPtr`\svia\s`chanPtr->instanceData`),\r\n-\s`rcPtr`\sholds\sthe\sref\sto\s`rcPtr->name`\s(and\scycle\sgot\sclosed).\r\n\r\nI'll\stry\sto\ssolve\sthat\ssomehow\sas\spart\sof\sthis\sfix.
J login sebres
J mimetype text/x-markdown
K 79474c58800cdf94559a2c01230b4536aa416016
U sebres
Z 17774d1465d4edb9db0f1a5dc39d12c7