Artifacts Associated With Ticket 2571597fffffffffffffffffffffffffffffffff
Ticket change [74a2791a89] (rid 105240) by apnadkarni on 2009-02-06 07:34:37:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
On 8.6b1 using file pathtype after calling file normalize for the same argument is broken. See below : (woof) 1 % file pathtype /a volumerelative (woof) 2 % file normalize /a C:/a (woof) 3 % file pathtype /a relative /Ashok
- foundin initialized to: "obsolete: 8.6b1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "36. Pathname Management"
- title initialized to: "file normalize breaks file pathtype"
- type initialized to: "Bug"
Ticket change [3179151334] (rid 93433) by dgp on 2009-02-06 22:50:49:
- assignee changed to: "dgp"
- priority changed to: "8"
Ticket change [fb98f47d27] (rid 92092) by andreas_kupries on 2009-02-06 23:18:15:
- icomment:
As a note. This was exposed by Tcllib's fileutil::jail command, see the Tcllib bug https://sourceforge.net/tracker/?func=detail&atid=112883&aid=2499603&group_id=12883
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [a76e1a47df] (rid 98795) by dgp on 2009-02-06 23:21:37:
- icomment:
The problems is reported for release 8.6b1. Can someone check and report whether the same issue is present in release 8.5.6 ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e17384422c] (rid 87451) by andreas_kupries on 2009-02-06 23:39:17:
- icomment:
A moment ... Found that I had a win32 8.5.6 still around, no need to build one for this ... andreask@ACTIVETCL-BU:~/dbn/lba/night-856/builds/win32-ix86/tcl/win/win32-ix86> ./tclsh85.exe puts [info patchlevel] 8.5.6 puts [file pathtype /a] volumerelative puts [file normalize /a] C:/a puts [file pathtype /a] relative exit Indeed 8.5.6 already has the problem.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [3f6a816659] (rid 121458) by dgp on 2009-02-06 23:50:37:
- icomment:
Thanks for testing that. Is it easy to check whether the same issue was present in release 8.5.0 and whether it is present in 8.4.19 ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [0548133ef0] (rid 89031) by andreas_kupries on 2009-02-07 00:05:31:
- icomment:
In the original bug report (see my reference) the problem was not present in 8.5.3. Regarding 8.4.19 I will have to build something first (I did, for linux, which did not show the trouble, I am guessing because normalize had nothing to do).
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [14ae680925] (rid 124435) by dgp on 2009-02-07 00:14:57:
- icomment:
based only on the timing then, I suspect the fault lies in this commit: 2008-12-04 Don Porter <[email protected]> * generic/tclPathObj.c (Tcl_FSGetNormalizedPath): Added another flag value TCLPATH_NEEDNORM to mark those intreps which need more complete normalization attention for correct results. [Bug 2385549] A test that the problem is not present in release 8.5.5 would produce more evidence of that.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b76b5fb14d] (rid 125591) by dgp on 2009-02-07 00:16:20:
- icomment:
If that supposition is correct, the problem is likely also present on the tip of core-8-4-branch, and will introduce the bug into 8.4.20 if not fixed first.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [a57aa22863] (rid 110387) by dgp on 2009-02-07 00:16:28:
- foundin changed to: "obsolete: 8.5.6"
- priority changed to: "9 Immediate"
Ticket change [59e5135dd4] (rid 118043) by andreas_kupries on 2009-02-07 00:38:54:
- icomment:
Instead of having something built I am now using the ActiveTcl win32 releases on a virtual win32 test box ... % source k:/trans/x/pt.tcl patchlevel=8.6b1.1 release...=8.6.0.0.289036/(Wed Jan 28 14:41:35 PST 2009) pathtype..=volumerelative normalized=C:/a pathtype..=relative % % source k:/trans/x/pt.tcl patchlevel=8.5.6 release...=8.5.6.0.289017/(Tue Jan 27 14:06:08 PST 2009) pathtype..=volumerelative normalized=C:/a pathtype..=volumerelative % % source k:/trans/x/pt.tcl patchlevel=8.5.5 release...=8.5.5.0.287690/(Wed Oct 15 20:38:44 PDT 2008) pathtype..=volumerelative normalized=C:/a pathtype..=volumerelative % Contents of pt.tcl puts patchlevel=[info patchlevel] puts release...=[package provide ActiveTcl]/($activestate::ActiveTcl(buildtime,fmt)) puts pathtype..=[file pathtype /a] puts normalized=[file normalize /a] puts pathtype..=[file pathtype /a] The interesting thing here is that the 8.5.6 here is ok, contradicting the other 8.5.6 I mentioned in a previous comment. ... Redoing the experiment with that tclsh it is now ok too. ... Differences: I called this one in a dos box, the previous experiment used msys bash. This experiment used a script file (pt.tcl), the previous was interactive ... C:\night-856\builds\win32-ix86\tcl\win\win32-ix86>tclsh85.exe % info patchlevel 8.5.6 % parray activestate::ActiveTcl can't access "activestate::ActiveTcl": parent namespace doesn't exist % source k:/trans/x/pt.tcl patchlevel=8.5.6 can't read "activestate::ActiveTcl(buildtime,fmt)": no such variable % source k:/trans/x/pt.tcl patchlevel=8.5.6 release...= pathtype..=volumerelative normalized=C:/a pathtype..=volumerelative % clock format [file mtime [info nameofex]] Tue Jan 27 20:03:43 -0800 2009 %
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [3e42d0498f] (rid 121231) by dgp on 2009-02-20 12:43:06:
- icomment:
To better analyze this, separate the literal sharing issue from the proper functioning of [file pathtype] issue. Test the following script for proper functioning: set p /a file pathtype $p file normalize $p file pathtype $p Are there any Tcl releases where that produces the correct answers? :)
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6e6015cf9d] (rid 100138) by nobody on 2009-02-20 15:14:25:
- icomment:
I tried 8.4.19, 8.5.2 and 8.6b1. (woof) 49 % set p /a /a (woof) 50 % file pathtype $p volumerelative (woof) 51 % file normalize $p C:/a (woof) 52 % file pathtype $p relative (woof) 53 % set tcl_version 8.4 The code breaks on all of them so it does look like it's been a bug that's been there for a while and now is more obviously exposed because of more aggressive sharing/caching of literals in 8.6b1 /Ashok
- login: "[email protected]"
- mimetype: "text/plain"
- username: "[email protected]"
- icomment:
Ticket change [ea3fe0c685] (rid 103337) by dgp on 2009-02-21 00:21:18:
- icomment:
The fix for Bug 767834 introduced this problem. Apparently the combination of the rare use of volumerelative paths and the rarity of actual re-use of cached intreps of "path" values (!) has allowed it to be undiscovered all that time. Bug introduced in releases 8.4.5 and 8.5a1, or more precisely in Revisions 1.77.2.9 of tclIOUtil.c and 1.7 of tclPathObj.c
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f280e87179] (rid 109553) by dgp on 2009-02-21 01:26:41:
- closedate changed to: "2009-02-20T18:26:41"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 fix committed to all branches.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"