Skip to content
Tcl Source Code History Of Ticket 2910867fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2910867fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2910867fffffffffffffffffffffffffffffffff

  1. Ticket change [ff0040ef97] (rid 108685) by dgp on 2009-12-08 18:10:58:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Within [tclPkgUnknown] is:
      
                  # safe interps usually don't have "file exists",
                  if {([interp issafe] || [file exists $file])} {
                      set code [catch {source $file} msg opt]
                      if {$code == 1 &&
                              [lindex [dict get $opt -errorcode] 0] eq "POSIX" &&
                              [lindex [dict get $opt -errorcode] 1] eq "EACCES"} {
                          # $file was not readable; silently ignore
                          continue
                      }
                      if {$code}  {
                          tclLog "error reading package index file $file: $msg"
                      } else {
                          set procdDirs($dir) 1
                      }
                  }
      
      so in safe interps we intentionally do not verify file existence
      before attempting the [source].  This predictably fails in many
      of the searched directories, which leads to many [tclLog]
      calls to report these failures.
      
      In a safe interp, [puts] is often disabled as well, so the
      [tclLog] may be silent.   (this is why the poor logic is
      seldom nonticed).
      
      However, when Safe Base is in use, some safety-enabled
      version of [puts] is likely on, and the noisy error messages
      spew forth.
      
      Whole logic of safe interps needs some review at this
      point.
      
      The place this is most easily seen is in test math-12.1
      in the test suite of the math package in tcllib.
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "38. Init - Library - Autoload"
    11. title initialized to: "[tclPkgUnknown] and Safe Base"
    12. type initialized to: "Bug"
  2. Ticket change [c1e39a2fda] (rid 111401) by dkf on 2010-01-05 15:56:37:

    1. icomment:
      Would also be clearer written with [try ... trap {POSIX EACCES}] in 8.6
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [d66ac2245a] (rid 123800) by johannes-kuhn on 2010-01-05 20:43:49:

    1. icomment:
      We allow glob, so it might be safe to allow file exists too.
      
      
    2. login: "johannes-kuhn"
    3. mimetype: "text/plain"
    4. username: "johannes-kuhn"
  4. Ticket change [c91216d2aa] (rid 259741) by serhiy.storchaka on 2026-10-21 10:03:38:

    1. icomment:
      Fixed in 8.6.11 by [a638b9a73b]: the Safe Base <tt>source</tt> alias reports missing or unreadable files with <tt>-errorcode {POSIX EACCES}</tt>, which tclPkgUnknown ignores, so the spurious "no such file" log messages are gone. Index files that fail for other reasons are still logged, as intended.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  5. Ticket change [c36b24b2c8] (rid 260030) by serhiy.storchaka on 2026-10-22 17:19:31:

    1. closedate changed to: "2461334.9192009605"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"