Skip to content
Tcl Source Code History Of Ticket 529661ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 529661ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 529661ffffffffffffffffffffffffffffffffff

  1. Ticket change [a8e8ae6838] (rid 99070) by nobody on 2002-03-13 23:30:32:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
    4. foundin initialized to: "obsolete: 8.4a5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "18. Commands M-Z"
    10. title initialized to: "cmdMZ-1.4, http-4.14 failure in Solaris"
    11. type initialized to: "Bug"
  2. Ticket change [6636f494c7] (rid 102664) by dkf on 2002-03-14 22:07:08:

    1. assignee changed to: "vincentdarley"
    2. closedate changed to: "2002-03-14T15:07:08"
    3. closer changed to: "dkf"
    4. 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.
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. status changed to: "Pending"
    8. subsystem changed to: "37. File System"
    9. username: "dkf"
  3. Ticket change [6294bfdb7a] (rid 92435) by nobody on 2002-03-15 00:20:23:

    1. 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)?
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  4. Ticket change [2d59f101aa] (rid 119054) by vincentdarley on 2002-03-16 19:23:19:

    1. 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.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "vincentdarley"
  5. Ticket change [edab6653b6] (rid 103928) by nobody on 2002-03-17 12:03:04:

    1. 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.
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  6. Ticket change [32a6be2a02] (rid 93648) by nobody on 2002-03-20 12:58:30:

    1. 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.  
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  7. Ticket change [9a358929b5] (rid 110914) by vincentdarley on 2002-04-05 00:53:08:

    1. assignee changed to: "nobody"
    2. 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.
      
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  8. Ticket change [74d18711d3] (rid 105280) by dgp on 2003-02-13 22:39:29:

    1. assignee changed to: "kennykb"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Kevin, did you just commit a fix for
      the http-4.14 failure?
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  9. Ticket change [5bd3e859f7] (rid 118400) by kennykb on 2003-02-13 23:09:54:

    1. assignee changed to: "dgp"
  10. Ticket change [8bd4e87b4b] (rid 127642) by kennykb on 2003-02-13 23:09:55:

    1. 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?
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  11. Ticket change [ba5c6ff103] (rid 129310) by dgp on 2003-02-13 23:19:42:

    1. assignee changed to: "dkf"
    2. 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.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  12. Ticket change [8db746870d] (rid 127986) by dkf on 2003-02-13 23:43:01:

    1. assignee changed to: "vincentdarley"
    2. 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.  :^/
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  13. Ticket change [16de6c589e] (rid 124784) by vincentdarley on 2003-02-15 18:52:46:

    1. assignee changed to: "nobody"
    2. 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.
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  14. Ticket change [477bb23b70] (rid 99716) by dgp on 2003-02-16 00:07:44:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2003-02-15T17:07:44"
    3. closer changed to: "dgp"
    4. 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.
      
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Works For Me"
    8. status changed to: "Deleted"
    9. username: "dgp"