Artifacts Associated With Ticket 438014ffffffffff
Ticket change [33629afbc8] (rid 106587) by dgp on 2001-07-02 19:43:46:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Ever since the 2001-06-18 commit to test/unixInit.test, I've seen failures of test unixInit-2.8 when testing from the development directory: ==== unixInit-2.8 TclpInitLibraryPath: all absolute pathtype FAILED ==== Contents of test case: file delete -force /tmp/sparkly file delete -force /tmp/library file mkdir /tmp/sparkly file copy $::tcltest::tcltest /tmp/sparkly/tcltest file mkdir /tmp/library/tcl[info tclversion] close [open /tmp/library/tcl[info tclversion]/init.tcl w] set allAbsolute 1 foreach dir [getlibpath /tmp/sparkly/tcltest] { set allAbsolute [expr {$allAbsolute && [string equal absolute [file pathtype $dir]]}] } file delete -force /tmp/sparkly file delete -force /tmp/library set allAbsolute ---- Result was: Path = /tmp/sparkly/tcltest application-specific initialization failed: Can't find a usable init.tcl in the following directories: /usr/local/lib/tcl8.4 /tmp/lib/tcl8.4 /lib/tcl8.4 /lib/tcl8.4/library /library /tcl8.4a3/library /usr/local/lib/tcl8.4 This probably means that Tcl wasn't installed properly. ---- Result should have been (exact matching): 1 ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ==== unixInit-2.8 FAILED - foundin initialized to: "obsolete: 8.4a3"
- 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: "unixInit-2.8 failure"
- type initialized to: "Bug"
Add attachment "init.patch" [1ce89eb1f9] (rid 90696) by dgp on 2001-07-03 03:54:38.
Ticket change [3928c0d977] (rid 112339) by dgp on 2001-07-03 03:54:38:
- icomment:
File Added - 8016: init.patch Logged In: YES user_id=80530 The changes to unixInit-2.8 didn't fully account for the different layout of Tcl's installed directories and Tcl's source distribution directories. That needs correcting. Beyond that, though, making this test fail was actually quite fortunate. Looking into why it failed caused me to look at the search path being generated by TclpInitLibraryPath(). It is just completely wrong, and has been for a long time. The same completely wrong code also is in win/tclWinInit.c. The pathv array of path components is being overwritten and reused several times to construct the directory names to be added to the library path. Unfortunately the pathv array is not reset between each use, but the code assumes it has been. So, instead of constructing several directory names relative to the path to the executable, the first is constructed, the second is constructed relative to the mangled path left by constructing the first, the third relative to the magled path left by the second, etc. The patch corrects all these problems.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1e82d0c0e0] (rid 90989) by dgp on 2001-07-03 03:57:40:
- closedate changed to: "2001-07-02T20:57:40"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Commited patch to fix bug.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"