Artifacts Associated With Ticket 1502071
Ticket change [6a3d55c64c] (rid 128112) by mistachkin on 2006-06-07 07:31:19:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In the interp-16.1 test, the master interpreter {xxx} is deleted prior to the slave interpreter {xxx yyy}. Deletion of the master interpreter leaves hanging references to it in the interpInfo.slave.masterInterp field for each of it's slave interpreters. If Tcl_GetMaster(slaveInterp) is called after the master interpreter has been freed, the result points to undefined memory. Currently, the only way I know of to see this problem is to apply my Tcl_CancelEval patch and run the test suite. After careful study, I have come up with a potential fix for this issue. Basically, when any slave interpreter is deleted we reset the master for each of it's slave interpreters to be it's master's master (which may be NULL). I'm not sure if this is the best solution; however, it appears to work. This bug also affects 8.4. - foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "7 High"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mistachkin"
- subsystem initialized to: "20. [interp]"
- title initialized to:
Tcl_GetMaster can access freed interp (interp-16.1)
- type initialized to: "Bug"
Ticket change [4a0c0cafa7] (rid 126465) by nobody on 2006-06-11 05:21:23:
- icomment:
Logged In: NO After more research, I don't think my original way to fix this issue was right. I avoided this issue in my Tcl_CancelEval patch by working around it; however, the issue itself still merits further study.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [a986b854d1] (rid 99162) by hobbs on 2007-09-11 07:02:04:
- priority changed to: "6"
Ticket change [ca448c635c] (rid 122435) by msofer on 2007-09-11 22:32:01:
- icomment:
Logged In: YES user_id=148712 Originator: NO When an interp is deleted, all its slaves are deleted too: when the slave command in the master goes, its deleteProc deletes the slave interp. Ie: this does not seem to be a bug that can be triggered by any script. It seems like one of "pilot error", "insufficient docs for the C api" or "incomplete C api for interps". Or else I misunderstood completely.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [d7ae3a58ea] (rid 124037) by mistachkin on 2009-03-17 14:54:19:
- icomment:
This bug may be related to 1502071.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [5b77645ae1] (rid 118331) by mistachkin on 2009-03-17 15:04:02:
- icomment:
What I meant was: This bug may be related to 2577420.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment: