<i>Segfault when using a reflected channel</i> status still Open with 4 other changes
by
.
D 2010-03-31T01:47:38
J icomment The\sproblem\sis\sequivalent\sto\s2921116,\sexcept\sfor\sreflected\schannel\sinstead\sof\sreflected\stransform.\n\nThe\scrashing\sscript\sdeeply\snests\sthrough\sthe\sscript\shandler\sof\sthe\schannel,\sthen\sdestroys\sthe\schannel\svery\sdeeply\sin\sthe\sstack,\sand\sduring\sthe\sunwinding\sprocess\sit\stries\sto\sinvoke\sthe\sscript\shandler\sat\sa\spoint\swhere\sthe\sstructure\sis\salready\sdestroyed,\swith\sbogus\sinterp\sand\sother\spointers.\n\nThis\scan\sbe\sseen\svery\snicely\sin\sthe\smodified\ssegfault.tcl\sscript\swhere\sI\schanged\sthe\slogging\sto\sshow\sthe\snesting\sstructure\sof\sTcl\sprocedures.\sThe\snesting\sdoes\soccur\sbecause\sof\sthe\simmediate\sposting\sof\sevents\sin\ssome\splaces,\scalling\simmediately\sback\sinto\sthe\sTcl\slayer.\sThis\sis\swhy\sdefering\sthis\saction\svia\s'after'\sis\sa\sworkaround.\sIt\sprevents\sthe\snesting\sand\sthus\seach\scallback\sinto\sthe\schannel\shandler\scan\sbe\ssure\sto\shave\sthe\sC\sstructure\swhole\sand\scomplete\sfor\sthe\slifetime\sof\sits\soperation.\n\nNow\sworking\son\sthe\sfix\s(Tcl_Preserve/Release\sthe\sC\slevel\sReflectedChannel\sstructure\sto\skeep\sit\salive\swhile\sthere\sare\sreferences\sto\sit\sin\sC\sand\sTcl\sstacks).\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 2978773fffffffffffffffffffffffffffffffff
U andreas_kupries
Z e6ce4f17f5060561de08abf814d633f6