Skip to content
Tcl Source Code Artifact [6a3d55c64c]
Login

Artifact [6a3d55c64c]

Artifact 6a3d55c64c20ac5d79b85aa0cbd4840dd0ba1913:

Ticket change [6a3d55c64c] - New ticket [1502071fffffffff|1502071fff] <i>Tcl_GetMaster can access freed interp (interp-16.1)</i>. by mistachkin on 2006-06-07 07:31:19.
D 2006-06-07T07:31:19
J assignee hobbs
J cmimetype text/plain
J comment \nIn\sthe\sinterp-16.1\stest,\sthe\smaster\sinterpreter\s{xxx}\nis\sdeleted\sprior\sto\sthe\sslave\sinterpreter\s{xxx\syyy}.\s\nDeletion\sof\sthe\smaster\sinterpreter\sleaves\shanging\nreferences\sto\sit\sin\sthe\sinterpInfo.slave.masterInterp\nfield\sfor\seach\sof\sit's\sslave\sinterpreters.\n\nIf\sTcl_GetMaster(slaveInterp)\sis\scalled\safter\sthe\nmaster\sinterpreter\shas\sbeen\sfreed,\sthe\sresult\spoints\sto\nundefined\smemory.\n\nCurrently,\sthe\sonly\sway\sI\sknow\sof\sto\ssee\sthis\sproblem\nis\sto\sapply\smy\sTcl_CancelEval\spatch\sand\srun\sthe\stest\ssuite.\n\nAfter\scareful\sstudy,\sI\shave\scome\sup\swith\sa\spotential\nfix\sfor\sthis\sissue.\n\nBasically,\swhen\sany\sslave\sinterpreter\sis\sdeleted\swe\nreset\sthe\smaster\sfor\seach\sof\sit's\sslave\sinterpreters\sto\nbe\sit's\smaster's\smaster\s(which\smay\sbe\sNULL).\s\sI'm\snot\nsure\sif\sthis\sis\sthe\sbest\ssolution;\showever,\sit\sappears\nto\swork.\n\nThis\sbug\salso\saffects\s8.4.\n
J foundin obsolete:\s8.5a4
J priority 7\sHigh
J resolution None
J status Open
J submitter mistachkin
J subsystem 20.\s[interp]
J title Tcl_GetMaster\scan\saccess\sfreed\sinterp\s(interp-16.1)
J type Bug
K 1502071fffffffffffffffffffffffffffffffff
U mistachkin
Z 93a5a0ec380de0c9a8e4505e920dc0a0