cmdMZ-1.4, http-4.14 failure in Solaris
Deleted529661ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 24 years ago
Descriptionplain2002-03-13 23:30:32
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.
dkfplain2002-03-14 22:07:08
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.
nobodyplain2002-03-15 00:20:23
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)?
vincentdarleyplain2002-03-16 19:23:19
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.
nobodyplain2002-03-17 12:03:04
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.
nobodyplain2002-03-20 12:58:30
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.
vincentdarleyplain2002-04-05 00:53:08
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.
dgpplain2003-02-13 22:39:29
Logged In: YES user_id=80530 Kevin, did you just commit a fix for the http-4.14 failure?
kennykb Ticket [529661ffff]: 1 change
[History diff]2003-02-13 23:09:54
kennykbplain2003-02-13 23:09:55
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?
dgpplain2003-02-13 23:19:42
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.
dkfplain2003-02-13 23:43:01
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. :^/
vincentdarleyplain2003-02-15 18:52:46
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.
dgpplain2003-02-16 00:07:44
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.
Log in (anonymous is fine) to add a comment.