Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b1f497d7a4de8eca6985662d2546402ec0fdb9f2
Ticket: 1999119fffffffffffffffffffffffffffffffff
Safe base does not handle the new TM module mechanism
User & Date: nicolascastagne on 2008-06-20 20:32:00
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl Modules (TM, see TIP 189, http://tip.tcl.tk/189)  cannot be required from a safe interp.
    
    EG:
         % package require math::bigfloat
         2.0.1
         % ::safe::interpCreate
         interp0
         % interp eval interp0 "package require math::bigfloat"
         can't find package math::bigfloat
         % interp eval interp0 "package require math::linearalgebra"
         can't find package math::linearalgebra
    
    Since is a problem, since many of the important tcllib package are now provided through the TM mechanism.
    
    The old versions of those packages are correctly loaded in the safe interp... but they are old versions !
    
    According to Andreas Kupries, on the active tcl mail list:
    "The code for the 'safe base' was likely not updated to handle searching for TMs... It may also be that the package unknown handler doing the search for TMs is not installed in safe interpreters. I would have to
    check the init.tcl file doing that part of the setup."
    
    Also :
    "Remember, a big part of the 'package' command, the search for packages, is implemented in Tcl and plugged into the main command via 'package unkown'.
    The relevant pieces of the core are in 'init.tcl', which sets up the plugging, 'package.tcl' handling the general package mechanism, and 'tm.tcl' for the Tcl Modules."
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nicolascastagne"
  10. subsystem changed to: "33. Safe Base"
  11. title changed to:
    Save base does not handle the new TM module mechanism
    
  12. type changed to: "Bug"