Artifacts Associated With Ticket 2910867
Ticket change [ff0040ef97] (rid 108685) by dgp on 2009-12-08 18:10:58:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "38. Init - Library - Autoload"
- title initialized to: "[tclPkgUnknown] and Safe Base"
- type initialized to: "Bug"
Ticket change [c1e39a2fda] (rid 111401) by dkf on 2010-01-05 15:56:37:
- icomment:
Would also be clearer written with [try ... trap {POSIX EACCES}] in 8.6 - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [d66ac2245a] (rid 123800) by johannes-kuhn on 2010-01-05 20:43:49:
- icomment:
We allow glob, so it might be safe to allow file exists too.
- login: "johannes-kuhn"
- mimetype: "text/plain"
- username: "johannes-kuhn"
- icomment:
Ticket change [c91216d2aa] (rid 259741) by serhiy.storchaka on 2026-10-21 10:03:38:
- 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. - login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [c36b24b2c8] (rid 260030) by serhiy.storchaka on 2026-10-22 17:19:31:
- closedate changed to: "2461334.9192009605"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"