Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [56ebd82953] ::tcl::tm::UnknownHandler allows stale module data to persis... artifact: 0019822bf1 user: serhiy.storchaka
2026-10-21
10:03 • Closed ticket [56ebd82953]. artifact: cb1a1c95ae user: serhiy.storchaka
2020-07-16
02:03 • Ticket [56ebd82953]: 3 changes artifact: cedf21ebf1 user: kjnash
01:15 • Ticket [56ebd82953]: 3 changes artifact: a76e35953a user: kjnash
2020-07-15
12:30 • New ticket [56ebd82953]. artifact: 45cad3a72e user: kjnash

::tcl::tm::UnknownHandler allows stale module data to persist in safe interp

Closed / Fixed56ebd82953a58ca72c37bde1f86048da52f2b8abCreated 6 years agoUpdated 41 days ago
Descriptionplain2020-07-15 12:30:30
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.
kjnash Ticket [56ebd82953]: 3 changes [History diff]2020-07-16 01:15:41
kjnash Ticket [56ebd82953]: 3 changes [History diff]2020-07-16 02:03:53
serhiy.storchakawiki2026-10-21 10:03:38

Fixed in 8.6.11 by [8927bbee05], merged with [a638b9a73b], and present in 9.0; test safe-9.23 covers it.

serhiy.storchaka Ticket [56ebd82953]: 3 changes [History diff]2026-10-22 17:19:31
Log in (anonymous is fine) to add a comment.