Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 85cfa0f4d76bd144437710fc4ac1b15d3fafd17b
Ticket: 1571056fffffffffffffffffffffffffffffffff
TclInvalidateNsPath needed in TclTeardownNamespace?
User & Date: msofer on 2006-10-05 01:21:08
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    (from code inspection, without claiming to have really
    understood everything)
    
    I think that TclTeardownNamespace fails to update the
    epoch in namespaces that have the dying ns in their
    path. This could be achieved by a call to
    TclInvalidateNsPath, or directly by adding at line 1112
    
     if (nsPtr->commandPathSourceList != NULL) { 
         NamespacePathEntry *nsPathPtr =
    nsPtr->commandPathSourceList;
         do {
    +        if (nsPathPtr->nsPtr != NULL) {
    +            nsPathPtr->creatorNsPtr->cmdRefEpoch++;
    +        }
             nsPathPtr->nsPtr = NULL;
             nsPathPtr = nsPathPtr->nextPtr;
         } while (nsPathPtr != NULL);
     }
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "msofer"
  10. subsystem changed to: "21. [namespace]"
  11. title changed to:
    TclInvalidateNsPath needed in TclTeardownNamespace?
    
  12. type changed to: "Bug"