Artifacts Associated With Ticket 8e53aea5b9c09f13
Ticket change [8e82e138bc] (rid 142505) by jskarvad on 2015-07-15 17:04:11:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I am not sure whether the category is correct, but I encountered the following problem with the safe interpreter - the test safe-14.1 fails if run by the installed interpreter. It fails because the paths of safe and normal interpreter are different. The problem is that the safe interpreter recursively descends into directories which may add paths that are not in the 'tm::path'. I.e. I am getting the following: ---- Result was: /usr/lib/tcl8/site-tcl /usr/lib/tcl8/8.0 /usr/lib/tcl8/8.1 /usr/lib/tcl8/8.2 /usr/lib/tcl8/8.3 /usr/lib/tcl8/8.4 /usr/lib/tcl8/8.5 /usr/share/tcl8/site-tcl /usr/share/tcl8/8.0 /usr/share/tcl8/8.1 /usr/share/tcl8/8.2 /usr/share/tcl8/8.3 /usr/share/tcl8/8.4 /usr/share/tcl8/8.5 /usr/share/tcl8/8.4/platform ---- Result should have been (exact matching): /usr/lib/tcl8/site-tcl /usr/lib/tcl8/8.0 /usr/lib/tcl8/8.1 /usr/lib/tcl8/8.2 /usr/lib/tcl8/8.3 /usr/lib/tcl8/8.4 /usr/lib/tcl8/8.5 /usr/share/tcl8/site-tcl /usr/share/tcl8/8.0 /usr/share/tcl8/8.1 /usr/share/tcl8/8.2 /usr/share/tcl8/8.3 /usr/share/tcl8/8.4 /usr/share/tcl8/8.5 The /usr/share/tcl8/8.4/platform is extra directory added to safe interpreter by descending deeper into /usr/share/tcl8/8.4. It is added by the following snip of safe.tcl: # [Bug 2854929] # Recursively find deeper paths which may contain # modules. Required to handle modules with names like # 'platform::shell', which translate into # 'platform/shell-X.tm', i.e arbitrarily deep # subdirectories. lappend morepaths {*}[glob -nocomplain -directory $dir -type d *] Is it the correct fix? Are safe intepreter paths allowed to be different? - foundin initialized to: "tcl-8.6.4"
- is_private initialized to: "0"
- login: "jskarvad"
- priority initialized to: "5 Medium"
- private_contact initialized to: "362c7c9ba8659317170601ba50e062e2d08c07e3"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "jskarvad"
- subsystem initialized to: "20. [interp]"
- title initialized to:
Safe interpreter paths differ from non-safe (test safe-14.1 fails)
- type initialized to: "Bug"
Ticket change [590963fbad] (rid 142506) by jskarvad on 2015-07-15 17:08:43:
- icomment:
The original ticket that introduced this: http://core.tcl.tk/tcl/tktview?name=2854929fffffffff
- login: "jskarvad"
- mimetype: "text/plain"
- icomment:
Ticket change [591dcd5b78] (rid 142527) by dgp on 2015-07-17 18:05:23:
- assignee changed to: "aku"
- login: "dgp"
- mimetype: "text/plain"
Ticket change [cea5115bc2] (rid 259668) by serhiy.storchaka on 2026-10-21 08:46:00:
- icomment:
Fixed in 8.6.11 by [081a8b9b50] (safe-bugfixes-8-6): subdirectories of tm roots now go only into the access path, not into the child's tm path. With an extra tm directory that has subdirectories, the child's and the parent's tm lists are the same with 8.6.11, 8.6.18, 9.0.5 and main (they differ with 8.6.10). Closing.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [a8aac12580] (rid 259971) by serhiy.storchaka on 2026-10-22 17:19:28:
- closedate changed to: "2461334.865283831"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"