Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7db00ed87c4c8671d05ec16c19cd809fcf28567aa70419fc62d209b7d40c3d66
Ticket: 1f63efa53700774f0cd2d5c88c287bcc0c2c9237
Refresh non-module "package ifneeded" data when access path changes in safe interp
User & Date: kjnash on 2020-07-15 11:45:02
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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.
    
  5. foundin changed to: "core-8-6-branch"
  6. is_private changed to: "0"
  7. login: "kjnash"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a774b1f5653dc3360e29ea7d635a64e94c9f1dab"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "kjnash"
  14. subsystem changed to: "33. Safe Base"
  15. title changed to: "stale package data in safe.tcl"
  16. type changed to: "Bug"