Manifest of check-in
[e3e2980503]
-
* generic/tclResult.c (ReleaseKeys): Workaround for [Bug
1904907]. Reset the return option keys to NULL to allow full
re-initialization by GetKeys(). This introduces a memory leak
for the key objects, but gets us around a crash in the
finalization of reflected channels when handling returns, either
at compile- or runtime. In both cases we access the keys after
they have been released by their thread exit handler. A proper
fix is entangled with the untangling of the finalization
ordering and attendant issues. For now we choose the lesser
evil.
by
andreas_kupries on
2008-03-07 22:42:48.
B c3acd88cd65e1a96d88cb4c2b991ef5d6d197c5a
C \n\t*\sgeneric/tclResult.c\s(ReleaseKeys):\sWorkaround\sfor\s[Bug\n\t\s\s1904907].\sReset\sthe\sreturn\soption\skeys\sto\sNULL\sto\sallow\sfull\n\t\s\sre-initialization\sby\sGetKeys().\sThis\sintroduces\sa\smemory\sleak\n\t\s\sfor\sthe\skey\sobjects,\sbut\sgets\sus\saround\sa\scrash\sin\sthe\n\t\s\sfinalization\sof\sreflected\schannels\swhen\shandling\sreturns,\seither\n\t\s\sat\scompile-\sor\sruntime.\sIn\sboth\scases\swe\saccess\sthe\skeys\safter\n\t\s\sthey\shave\sbeen\sreleased\sby\stheir\sthread\sexit\shandler.\sA\sproper\n\t\s\sfix\sis\sentangled\swith\sthe\suntangling\sof\sthe\sfinalization\n\t\s\sordering\sand\sattendant\sissues.\sFor\snow\swe\schoose\sthe\slesser\n\t\s\sevil.\n
D 2008-03-07T22:42:48
F ChangeLog 1b754cfe53a5e407afb0256885cfe75a3f669ea1
F generic/tclCmdAH.c eece287eea0d813a4cd9bb1b6df4f6a7ccab10dc
F generic/tclExecute.c 60f55fd61aeb4b7d80b81d35925b1e4c7817df58
F generic/tclResult.c 6e27d4c03dba7111c0c2c54a2d09c061666a668b
F tests/execute.test e6ea4ce9c045670590b89101292f6a87331afd5a
F unix/dltest/Makefile.in cc8a27c9f29ef26476e6c78b9c52541f79252049
F win/configure bfa1fc19a379e3c69b8eab96016384bd67291c00 x
P 2a77ff2ce0d23ae04a25890fffadf487bc48e8ad
U andreas_kupries
Z e9b4b022e200435306900a8f2f94c87d