Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d573f58b529857d1a4f5d914ad0803b38eaf106a35dda6d1a10bdecdde94ac93
Ticket: 1f63efa53700774f0cd2d5c88c287bcc0c2c9237
Refresh non-module "package ifneeded" data when access path changes in safe interp
User & Date: kjnash on 2020-07-23 13:27:25
Changes

  1. comment changed to:
    When a script calls
    
      safe::interpConfigure $int option value ?option value...?
    
    the Safe Base tests to see if the interpreter's access path (option -accessPath) has changed.
    
    If the value changes, the mapping from directories to tokens also changes, and the Safe Base calls auto_reset in the safe interpreter so that stale data is flushed from the autoloader.
    
    The Safe Base does not do a comparable reset for package information.  The cached information from "package ifneeded" commands is stale, and therefore the safe interpreter will look for package files in the wrong directories.
    
    Fixed for non-module packages in branch safe-bugfixes-8-6 commit [823dae2469].  New tests safe-9.10, safe-9.11 check that the stale data has been overwritten.
    
    Improved fix in branch safe-bugfixes-8-6 commit [d9ca230fc6].
    
  2. login: "kjnash"
  3. mimetype: "text/plain"