<i>Segmentation fault when removing the transformation</i> status still Open with 5 other changes
by
.
D 2010-01-20T02:32:21
J assignee dgp
J icomment Now\sattached\sis\sa\spatch\swhich\sseems\sto\sfix\sthe\sproblem.\n\nIt\suses\sTcl_Preserve/Release/EventuallyFree\sto\skeep\sthe\sstructure\saround\swhile\sthe\schannel\sdriver\sfunctions\sare\srunning.\sThis\sis\sdone\sonly\swhere\swe\shave\scallbacks\swhich\scould\sdestroy\sit.\n\nThe\sReflectClose\sfunction\sis\san\sexception,\sbecause\swhen\sit\sis\srun\swe\sare\sin\sthe\sdestruction\salready.\sDoing\sanother\sdestruction\sin\sits\scallbacks\s(drain.\sflush,\sfinalize)\swill\svery\slikely\sstill\scrash\sus.\sBut\sthe\spreserve/release\slooks\sto\sbe\svery\scomplex,\sso\sI\spunted\son\sit\sin\sthis\spatch.\n\nPart\sof\sthe\sproblem,\sand\salso\swhy\sI\sam\sstill\suneasy\sabout\sthe\spatch\sin\sgeneral\sis\sthe\sbehaviour\sin\sa\sthreaded\senvironment.\sMore\sspecifically,\swhen\sthe\schannel\swith\sthe\stransform\sis\smoved\sinto\sdifferent\sthread,\sand\sthen\swe\shave\spreserve/release\son\sthe\ssame\sstructure\sfrom\sdifferent\sthreads,\sand\sthe\seventuallyfree\smay\srun\sin\sthe\swrong\sthread\s?!\n\nI\smight\sbe\sfretting\sover\snothing\shere,\sbecause:\n\n(1)\ssuch\sa\sself-closing\stransform\sas\sshown\sin\sthe\sexample\swill\snot\swork\sat\sall\swhen\sthe\schannel\sit\sis\spart\sof\sis\smoved\sto\sa\sdifferent\sthread,\sas\sthe\shandler\scode\swill\slose\saccess\sto\sthe\schannel\s(handle),\sand\sthis\swill\sstop\ssuch\san\sattempt\sin\sits\stracks\sbefore\sit\seven\sreaches\sthe\sreflection\sinternals\sat\sall.\n\n(2)\sMoving\sa\stransform\swhich\sdoes\snot\smodify/close\sitself\sseems\sto\swork.\sAt\sleast\sthe\siortrans.tf\sset\sof\stests\sdoes\spass,\sno\sfailures,\snor\scrashes.\n\nReassigning\sto\sdgp\sfor\sreview\sof\smy\scode\sand\sreasoning.\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 2921116fffffffffffffffffffffffffffffffff
U andreas_kupries
Z d8359584986d135b4794febbf7ff1e9b