Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. priority changed to: "7 High"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mistachkin"
  9. subsystem changed to: "20. [interp]"
  10. title changed to:
    Tcl_GetMaster can access freed interp (interp-16.1)
    
  11. type changed to: "Bug"