<i>Reflected channel crash on exit</i> status still Open with 4 other changes
by
.
D 2008-12-23T02:13:16
J icomment I\sam\shaving\sa\squick\slook\snow\s...\n\nThe\srcPtr\sis\sthe\schannel\sinstance\sClientData.\nThe\sloop\swe\sare\sat\siterates\sover\sall\schannels\sin\sthe\srcmPtr\s(map\sof\schannels\sfor\sthe\sthread)\sand\sit\sseems\swe\sare\sgetting\sa\schannel\swith\sa\sbad\sclientdata.\sMaybe\salready\sclosed?\sBut\snot\sremoved\sfrom\sthe\smap\syet\s?\sWe\sare\sin\san\sper-interp\sdeletion\shandler.\sIf\ssomething\shas\schanged\sthe\sorder\sfinalization\sis\sdone\sthe\sfunction\smight\sbe\srun\sat\sthe\swrong\stime.\sThis\sis\sspeculation\sright\snow.\n\nRelated\sfunctions\s(same\sfile):\s\n\nTclChanCreateObjCmd()\s=>\sline\s727+,\sentering\schannels\sinto\sthe\smap.\n\nReflectClose()\s=>\sline\s1149+,\sRemove\schannel\sfrom\sthe\smap.\nThis\sshould\sactually\sensure\sthat\sour\sdeletion\shandlers\scannot\saccess\sa\sclosed\schannel.\n\nForwardProc()\s=>\sline\s2745+.\sA\sforwarded\sclose\soperation,\si.e.\slike\sReflectClose().\sThis\sis\sused\sif\sthe\sreflected\schannel\swas\smoved\sto\sa\sdifferent\sthread.\sThe\sclosing\shas\sto\soccur\sin\sthe\sorigin\sthread,\sas\sthat\skeeps\sall\sthe\sstate\s(tcl\shandler\setc.)\n\nDeleteThreadReflectedChannelMap()\s=>\sline\s2480ff.\sSame\sas\sDeleteReflectedChannelMap,\sdeletes\sthe\smap\sfor\sthe\swhole\sthread\s(DRCM\sdoes\sit\sonly\sfor\sa\sspecific\sinterp\sin\sthe\sthread).\n\nTclChanPostEventObjCmd()\s=>\sline\s817+.\sUses\sonly\sthe\sper-interp\smap,\snot\sthe\sper-thread\smap,\sand\sonly\sto\scheck\sthat\sthe\schannel\sis\svalid.\sNo\smodifications\sof\sthe\smap.\n\nThese\sare\sthe\splaces\swe\shave\sto\slook\sat\sto\sdebug\sthis.\n\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 2458202fffffffffffffffffffffffffffffffff
U andreas_kupries
Z 81ad7993eb14faa05c13f6c48b949f51