Call auto_reset when access path changes in safe interp
Closed / Fixed4b7311c839f053e164d49d7a06f3debcbe44b767Created 6 years agoUpdated 6 years ago
Descriptionplain2020-07-15 11:36:05
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 is supposed to call auto_reset in the safe interpreter so that stale data is flushed from the autoloader. Without this feature, the autoloader in the safe interpreter would believe that files are in the wrong directories. The test in safe.tcl is the wrong way around: auto_reset is called if the value of access path has *not* changed. Fixed in branch safe-bugfixes-8-6 commit [ecc0872a76]. New test safe-9.9 checks that auto_reset is called when it should be.
kjnash Ticket [4b7311c839]: 3 changes
[History diff]2020-07-15 11:37:37
kjnash Ticket [4b7311c839]: 3 changes
[History diff]2020-07-16 01:12:55
kjnash Ticket [4b7311c839]: 3 changes
[History diff]2020-07-16 01:59:53
kjnash Closed ticket [4b7311c839].
[History diff]2020-12-31 16:06:03
Log in (anonymous is fine) to add a comment.