| Ticket UUID: | 56ebd82953a58ca72c37bde1f86048da52f2b8ab | ||
| Title: | ::tcl::tm::UnknownHandler allows stale module data to persist in safe interp | ||
| Type: | Bug | Created on: | 2020-07-15 12:30:30 |
| Submitter: | kjnash | Assigned to: | nobody |
| Subsystem: | 39. Package Manager | Severity: | Important |
| Priority: | 5 Medium | Last modified: | 2026-10-22 17:19:31 |
| Status: | Closed | Closed by: | serhiy.storchaka |
| Resolution: | Fixed | Closed on: | 2026-10-21 10:03:38 |
| Version: | core-8-6-branch | ||
| Description: | ||||
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.
| ||||
| User Comments: | ||||
serhiy.storchaka added on 2026-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. | ||||
