Overview
| Artifact ID: | 6a3d55c64c20ac5d79b85aa0cbd4840dd0ba1913 |
|---|---|
| Ticket: | 1502071fffffffffffffffffffffffffffffffff
Tcl_GetMaster can access freed interp (interp-16.1) |
| User & Date: | mistachkin on 2006-06-07 07:31:19 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.5a4"
- priority changed to: "7 High"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "mistachkin"
- subsystem changed to: "20. [interp]"
- title changed to:
Tcl_GetMaster can access freed interp (interp-16.1)
- type changed to: "Bug"