Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a76e35953aedc82e681c4efce01199a48f4e95a07ac7d88d0512866d6f5f1e32
Ticket: 56ebd82953a58ca72c37bde1f86048da52f2b8ab
::tcl::tm::UnknownHandler allows stale module data to persist in safe interp
User & Date: kjnash on 2020-07-16 01:15:41
Changes

  1. comment changed to:
    When ::tcl::tm::UnknownHandler searches for a module, it keeps the information it obtains about other modules, unless it already has information for the same module name and version.  It states:
    
        # There's already a provide script registered for
        # this version of this package.  Since all units of
        # code claiming to be the same version of the same
        # package ought to be identical, just stick with
        # the one we already have.
    
    However, this does not apply to Safe Base interpreters because the token-to-directory mapping may have changed.
    
    Fixed in branch safe-bugfixes-8-6 commit [8927bbee05].  New test safe-9.23 checks that the module path is updated.
    
  2. login: "kjnash"
  3. mimetype: "text/plain"