<i>segfault in test error-9.5 (try)</i> status still Open with 4 other changes
by
.
D 2009-03-16T16:04:54
J icomment Thanks\sJoe\sfor\sthis\sdetailed\soutput,\sit\smakes\sthe\sbug\sobvious\s!\nWhat\shappens\sis\sthe\sfollowing:\n(1)\shandlersObj\scontains\sa\slist\sof\ssublists,\stried\seach\sin\sturn\s(handlers[i]).\n(2)\swhen\sthe\smatching\sone\sis\sfound,\sits\selements\spointer\sis\sextracted\sinto\s"info".\n(3)\sthat\sinfo\scontains\sthe\shandlerObj\sas\sinfo[0],\swhose\srefcount\sis\sincr'ed\n(4)\sthen\swe\sdecr\sthe\srefcount\sof\sthe\shandlersObj\slist,\sand\shandlerObj\ssurvives,\sbut\snot\sthe\sintermediary\slevel\shandlers[i]\n(5)\sthen\sinfo[]\sis\sstale\sat\sthe\spoint\swhere\swe\suse\sinfo[4]\n\nThe\sattached\strivial\spatch\sjust\scopies\sinfo[4]\sin\sa\slocal\suntil\sits\suse.\nFrom\smy\stests\sit\sseems\sthat\sthe\sassociated\sTcl_Obj\shas\sa\srefcount\shigh\senough\sso\sthat\sit\ssurvives\sthe\sdecrrefcount\sof\sthe\swhole\stree,\sbut\sI'm\snot\ssure.\nA\sbetter\ssolution\swould\sbe\sto\sIncrRefCount(handlers[i]),\sbut\sI\sdaren't\sdo\sthat\sbecause\sI\sdon't\sknow\sthe\sbest\spoint\sto\sDecrRefCount\sit\safterwards.\n\nPlease\sDonal\sand\sJoe,\sreview\s;-)\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2688063fffffffffffffffffffffffffffffffff
U ferrieux
Z fed7c3070d3cbcc2c620aa67d75b22bf