Artifacts Associated With Ticket 529661ffffffffff
Ticket change [a8e8ae6838] (rid 99070) by nobody on 2002-03-13 23:30:32:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Note: This appears to be a repeat of "[454276] Test case errors". After a 'cvs update', building for a single platform and with a clean directory, 'make test' reports two failures: ==== cmdMZ-1.4 Tcl_PwdObjCmd: failure FAILED ==== Contents of test case: # We don't want this test to run on Linux because they do a # permissions caching trick which causes this to fail. The # caching is incorrect, but we have no control over that. file delete -force foo file mkdir foo set cwd [pwd] cd foo file attr . -permissions 000 set result [list [catch {pwd} msg] $msg] cd $cwd file delete -force foo set result ---- Result was: 0 /src/tclcvs/unix/sun5-compile/foo ---- Result should have been (exact matching): 1 {error getting working directory name: permission denied} ==== cmdMZ-1.4 FAILED ==== http-4.14 http::Event FAILED ==== Contents of test case: set code [catch { set token [http::geturl $badurl/?timeout=10 -timeout 10000 -command {#}] if {[string length $token] == 0} { error "bogus return from http::geturl" } http::wait $token http::status $token } err] # error code varies among platforms. list $code [regexp {(connect failed|couldn't open socket)} $err] ---- Result was: 0 0 ---- Result should have been (exact matching): 1 1 ==== http-4.14 FAILED System details: configure: ../configure --enable-shared \ --enable-threads make : GNU Make version 3.79.1 gcc : 3.0.4 uname -a : SunOS arrakis 5.7 Generic_106541-04 sun4u \ sparc SUNW,Ultra-2 Some experimentation with the cmdMZ-1.4 test... It appears the path used to get to the directory where the test is run affects the results. If I use a path which reflects a mount of a local filesystem the test passes. If I use a path that is a mount of a mount of a local filesystem the test fails. For example: /export/home/arrakis2/user: success /top/home/user : failure where df returns something like: Filesystem ... Mounted on /dev/dsk/c0t1d0s3 /export/home/arrakis2 /export/home/arrakis2/user /top/home/user The problem with http-4.14 seems to be the local firewall. If I change the badurl to a machine I can actually reach the test produces the expected results. - foundin initialized to: "obsolete: 8.4a5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "cmdMZ-1.4, http-4.14 failure in Solaris"
- type initialized to: "Bug"
Ticket change [6636f494c7] (rid 102664) by dkf on 2002-03-14 22:07:08:
- assignee changed to: "vincentdarley"
- closedate changed to: "2002-03-14T15:07:08"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 cmdMZ-1.4 is known to fail if run as root or on some UNIX versions (IIRC, Linux falls into this category.) If neither of these are the case, please supply more detail.
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Pending"
- subsystem changed to: "37. File System"
- username: "dkf"
Ticket change [6294bfdb7a] (rid 92435) by nobody on 2002-03-15 00:20:23:
- icomment:
Logged In: NO I was not running as root for these tests. The OS used was Solaris (SunOS 5.7) not Linux. It appears the failure is caused by how the directory (where the test is being run) gets mounted. From the original report: > It appears the path used to get to the directory where > the test is run affects the results. If I use a path > which reflects a mount of a local filesystem the test > passes. If I use a path that is a mount of a mount of a > local filesystem the test fails. > For example: > /export/home/arrakis2/user: success > /top/home/user : failure > where df returns something like: > Filesystem ... Mounted on > /dev/dsk/c0t1d0s3 /export/home/arrakis2 > /export/home/arrakis2/user /top/home/user Any other details you think are needed (besides the above and the version numbers in the original report)?
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [2d59f101aa] (rid 119054) by vincentdarley on 2002-03-16 19:23:19:
- icomment:
Logged In: YES user_id=32170 I have two questions: Does the same test fail when running Tcl 8.3.x? If so, then it is simply an OS problem with 'pwd' on these 'mounts of mounts'. If not, I'm very confused, because I can't see what can have changed to cause the problem. Vince.
- login: "vincentdarley"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "vincentdarley"
- icomment:
Ticket change [edab6653b6] (rid 103928) by nobody on 2002-03-17 12:03:04:
- icomment:
Logged In: NO The test does not fail with 8.3.1 nor with 8.0.5. The pwd (/bin/pwd) returns "pwd: cannot determine current directory!" when I run it. Did you forget to ask the second question? I tried building with symbols and running gdb (5.1.1) but it got lost in the threads. If you can provide debugging directions maybe I can try to narrow it down some more.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [32a6be2a02] (rid 93648) by nobody on 2002-03-20 12:58:30:
- icomment:
Logged In: NO Some more info... Using printf statements I tracked the problem down to the getcwd call in tclUnixFile.c. For one directory path getcwd returns NULL, as it should. For the other (mount of mount) path getcwd returns the directory name. Attempts to duplicate this behavior using a standalone program failed, getcwd always worked. Configuring with --disable-shared produces an executable that passes the test. This makes me think I may be grabbing a bad getcwd in my build. Thinking that gcc 3.0 was somehow responsible I then tried: 1. build 8.3.1 using gcc 3.0 - tclsh works fine 2. build 8.4 using gcc 2.95 - tclsh still fails It seems that the build/linking is what is causing the bug as opposed to the code itself. Very strange. Maybe I'll try the 8.3.1 Makefile with the 8.4 code and see what happens.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [9a358929b5] (rid 110914) by vincentdarley on 2002-04-05 00:53:08:
- assignee changed to: "nobody"
- icomment:
Logged In: YES user_id=32170 Assigning this bug away from me, since I don't have the expertise to fix it. It seems somehow highly platform/configuration specific, somehow.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [74d18711d3] (rid 105280) by dgp on 2003-02-13 22:39:29:
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=80530 Kevin, did you just commit a fix for the http-4.14 failure?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [5bd3e859f7] (rid 118400) by kennykb on 2003-02-13 23:09:54:
- assignee changed to: "dgp"
Ticket change [8bd4e87b4b] (rid 127642) by kennykb on 2003-02-13 23:09:55:
- icomment:
Logged In: YES user_id=99768 Yes, I did commit a fix to http-4.14. What about cmdMZ-1.4, close it as a known bug?
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [ba5c6ff103] (rid 129310) by dgp on 2003-02-13 23:19:42:
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=80530 Some comments below say that cmdMZ-1.4 is failing on Solaris 5.7 machines. I don't think we've solved that. Might be worth closing and re-opening a fresh report on that issue alone.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [8db746870d] (rid 127986) by dkf on 2003-02-13 23:43:01:
- assignee changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=79902 The [cwd] command is really a FS matter, and this sounds like Solaris now behaves like Linux in this matter. :^/
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [16de6c589e] (rid 124784) by vincentdarley on 2003-02-15 18:52:46:
- assignee changed to: "nobody"
- icomment:
Logged In: YES user_id=32170 Indeed it sounds like dkf is correct, but this is completely outside my area of expertise (platform- specific-unix-differences are not anything I know about or even have access to), so, I'm sorry, but I can't help at all. From the 'nobody' message below, it looks as if this is an OS bug/feature of some kind.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [477bb23b70] (rid 99716) by dgp on 2003-02-16 00:07:44:
- assignee changed to: "dgp"
- closedate changed to: "2003-02-15T17:07:44"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Since no one will take this on, I'm closing it. If the test still fails in the upcoming 8.4.2 release, a new report can be opened.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- status changed to: "Deleted"
- username: "dgp"