Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f89e91b2d04cf76626ace11ebbb10beba2ca2bdc6235163f8c85eea74c04b5f4
Ticket: 1f63efa53700774f0cd2d5c88c287bcc0c2c9237
Refresh non-module "package ifneeded" data when access path changes in safe interp
User & Date: kjnash on 2020-07-16 01:13:53
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.
    
  2. login: "kjnash"
  3. mimetype: "text/plain"