Overview
| Artifact ID: | 9b996ce80e945dbd646c13eca8d0d304cb633950c5ac3e42b77580c304df3ebc |
|---|---|
| Ticket: | 319e438f7f71d4713b9af62a83612d75562c643e
Refresh module "package ifneeded" data when access path changes in safe interp |
| User & Date: | kjnash on 2020-07-15 12:33:50 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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. Bug #1f63efa53700774f0cd2d5c88c287bcc0c2c9237 has the report and fix for non-module packages. Fixed for modules in branch safe-bugfixes-8-6 commit 68ed8dcb41. New test safe-9.24 checks that the stale data has been overwritten.
- foundin changed to: "core-8-6-branch"
- is_private changed to: "0"
- login: "kjnash"
- priority changed to: "5 Medium"
- private_contact changed to: "a774b1f5653dc3360e29ea7d635a64e94c9f1dab"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "kjnash"
- subsystem changed to: "33. Safe Base"
- title changed to: "stale module data in safe.tcl"
- type changed to: "Bug"