Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fdb2ca08aa12f980386b5e690c011c4fdc3a448ef4def628169dcf36c0dd6dec
Ticket: f06e38c9e7850bdc4bae4d1ba7674beceab45295
Set new value of [tcl::tm::list] when access path changes in safe interp
User & Date: kjnash on 2020-07-15 12:21:27
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Whenever a script sets the access path for a safe interpreter, it includes the directories for a module path [tcl::tm::list] based on the value in the master interpreter.
    
    When a safe interpreter is initialized, its value of [tcl::tm::list] is set.
    
    However, whenever a script calls
    
      safe::interpConfigure $int option value ?option value...?
    
    to change the access path of an interpreter (option -accessPath), the revised value for [tcl::tm::list] is stored in element tm_path_slave of the state array defined in the master for the slave interpreter, but the value of [tcl::tm::list] in the slave itself is not refreshed.
    
    Fixed in branch safe-bugfixes-8-6 commit b336bc2615.  New tests safe-9.21, safe-9.22 check that the module path is updated.
    
  5. foundin changed to: "core-8-6-branch"
  6. is_private changed to: "0"
  7. login: "kjnash"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a774b1f5653dc3360e29ea7d635a64e94c9f1dab"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "kjnash"
  14. subsystem changed to: "33. Safe Base"
  15. title changed to: "Use revised [tcl::tm::list] in Safe Base"
  16. type changed to: "Bug"