Skip to content
Tcl Source Code History Of Ticket 748960ffffffffff
Login

History Of Ticket 748960ffffffffff

Artifacts Associated With Ticket 748960ffffffffff

  1. Ticket change [cc183b4d05] (rid 95634) by mmokrejs on 2003-06-04 16:05:12:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi,
      I have compiled tcl8.4.3 on Tru64Unix (formerly OSF1)
      and make test fails in many cases. Would someone
      inspect the output? Thanks!
      
      I used cc/cxx from vendor, latest version, C*FLAGS"-O2
      -arch ev56" if that matters.
      
      
      The original bugreport is at
      https://sourceforge.net/tracker/?func=detail&atid=110894&aid=748804&group_id=10894
      
      NOTE, THAT THIS TEST FAILED ONLY WHEN TEST WAS
      PERFORMED ON AFS FILESYSTEM. WHEN TESTED ON NFS
      FILESYSTEM IT PASSED(IR IT'S NOT REPRODUCIBLE?).
      
      
      ==== cmdAH-20.5 Tcl_FileObjCmd: atime touch FAILED
      ==== Contents of test case:
      
          if {[string equal $tcl_platform(platform) "windows"]} {
              set old [pwd]
              cd $::tcltest::temporaryDirectory
              if {![string equal "NTFS" [testvolumetype]]} {
                  # Windows FAT doesn't understand atime, but
      NTFS does
                  # May also fail for Windows on NFS mounted
      disks
                  cd $old
                  return 1
              }
              cd $old
          }
          set atime [file atime $file]
          after 1100; # pause a sec to notice change in atime
          set newatime [clock seconds]
          set modatime [file atime $file $newatime]
          expr {$newatime == $modatime ? 1 : "$newatime !=
      $modatime"}
      
      ---- Result was:
      1054725988 != 1054725987
      ---- Result should have been (exact matching):
      1
      ==== cmdAH-20.5 FAILED
      
      
      
    4. foundin initialized to: "obsolete: 8.4.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mmokrejs"
    9. subsystem initialized to: "34. tcltest Package"
    10. title initialized to: "cmdAH.test failed"
    11. type initialized to: "Bug"
  2. Ticket change [e6e78e6ba1] (rid 104369) by dgp on 2003-06-04 23:11:48:

    1. assignee changed to: "dkf"
    2. subsystem changed to: "16. Commands A-H"
  3. Ticket change [d9f2bdb8ca] (rid 107697) by dkf on 2003-06-05 05:51:41:

    1. assignee changed to: "vincentdarley"
  4. Ticket change [5f02318612] (rid 115737) by vincentdarley on 2003-06-05 14:58:53:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      Sorry, just not my area of knowledge
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  5. Ticket change [07692888b9] (rid 89394) by dkf on 2003-06-06 17:08:23:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Sounds like an unsynchronized clock; both NFS and AFS are
      very sensitive to that, and it's really a "misconfigured
      system" issue.  Try using a local directory for your testing
      source tree (like /tmp, which ought not be in AFS!) to stop
      that factor from coming up.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [39152cd83d] (rid 112326) by mmokrejs on 2003-06-06 17:27:48:

    1. icomment:
      Logged In: YES 
      user_id=696559
      
      All servers are synchronized using xntpd. I tried on NFS,
      tests pass as well as on local disk. On AFS filesystem tests
      cmdAH-20.5 and cmdAH-25.2 fail.
      
      ==== cmdAH-20.5 Tcl_FileObjCmd: atime touch FAILED
      ==== Contents of test case:
      
          if {[string equal $tcl_platform(platform) "windows"]} {
              set old [pwd]
              cd $::tcltest::temporaryDirectory
              if {![string equal "NTFS" [testvolumetype]]} {
                  # Windows FAT doesn't understand atime, but NTFS
      does
                  # May also fail for Windows on NFS mounted disks
                  cd $old
                  return 1
              }
              cd $old
          }
          set atime [file atime $file]
          after 1100; # pause a sec to notice change in atime
          set newatime [clock seconds]
          set modatime [file atime $file $newatime]
          expr {$newatime == $modatime ? 1 : "$newatime != $modatime"}
      
      ---- Result was:
      1054894829 != 1054894828
      ---- Result should have been (exact matching):
      1
      ==== cmdAH-20.5 FAILED
      
      
      ==== cmdAH-25.2 Tcl_FileObjCmd: owned FAILED
      ==== Contents of test case:
      
          file owned $gorpfile
      
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== cmdAH-25.2 FAILED
      
      
      I believe, the first fails because of the caching mechanism
      which delays the action a bit.
      
      The second test fails because on AFS filesystem the
      username/group does not have to match at all. Often I create
      files which have different owner/group.
      
      I believe both tests should have at least comments within
      the code that they might fail on AFS filesystem. It could be
      tested if the tesfile was created on AFS filesystem by
      executing fs command from normal shell(sh/bash etc):
      
      $ fs la tclUnixInit.c
      Access list for tclUnixInit.c is
      Normal rights:
        system:administrators rlidwka
        system:authuser rl
        system:anyuser rl
      $
      
      The output may be longer or shorter, but the first line
      should stay.
      
      
    2. login: "mmokrejs"
    3. mimetype: "text/plain"
    4. username: "mmokrejs"
  7. Ticket change [e142800381] (rid 87416) by dkf on 2003-06-06 17:40:35:

    1. assignee changed to: "vincentdarley"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Ah, but is your client machine synched with the servers? to
      within 100ms?
      
      My recommendation (from experience with using AFS) is not to
      run the tests in AFS-mounted filesystems at all.  AFS isn't
      very good at conforming to standard Unix FS semantics.  (It
      isn't just Tcl that has trouble with this BTW.)
      
      If only the dratted thing was resilient across unexpected
      server reboots it wouldn't be so bad...  :^(
      
      Vince, could you arrange for these tests to always be
      performed on a file in a temporary directory (i.e. below
      /tmp on unix)?  That'd test what we're interested in but
      avoid the nastiness of networked FS semantic trouble.
      
      Moving the bug because the underlying problem is File System
      related.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. subsystem changed to: "37. File System"
    6. username: "dkf"
  8. Ticket change [8b51f1e212] (rid 127543) by mmokrejs on 2003-06-06 18:07:11:

    1. icomment:
      Logged In: YES 
      user_id=696559
      
      ntpdc> peers
           remote           local      st poll reach  delay  
      offset    disp
      =======================================================================
      =babirusa.gsf.de 146.107.217.72   3  128  377 0.00194 
      0.110239 0.00342
      *warthog.gsf.de  146.107.217.72   3  128  377 0.00096 
      0.099535 0.00308
      
      
      But I aggree /tmp is much better.
      
      
    2. login: "mmokrejs"
    3. mimetype: "text/plain"
    4. username: "mmokrejs"
  9. Ticket change [4700138686] (rid 99612) by mmokrejs on 2003-07-18 18:59:06:

    1. icomment:
      Logged In: YES 
      user_id=696559
      
      I believe after the test uses /tmp and not current
      directory/tmp or whatever uses now, this report can be
      closed. When user is sure the current directory where the
      tree resides is located on local filesystem, the test passes.
      
      
    2. login: "mmokrejs"
    3. mimetype: "text/plain"
    4. username: "mmokrejs"
  10. Ticket change [c949814c14] (rid 122257) by vincentdarley on 2003-07-18 20:50:58:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      I don't have a relevant system to test on, but how about if 
      you replace:
      
      set file [makeFile "data" touch.me]
      
      with:
      
      if {$::tcl_platform(platform) == "unix" && [file exists /tmp]} {
          set file [makeFile "data" touch.me /tmp]
      } else {
          set file [makeFile "data" touch.me]
      }
      
      and then you might also need to change 'removeFile' 30 lines 
      later on to ensure the file is deleted.
      
      If you can test something like this, and provide a patch, we 
      can fix the problem in both Tcl 8.4.4 and 8.5a0.
      
      Assigning to dgp, since I'm away the next 2 days and won't 
      be able to check anything in in time for 8.4.4.
      
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  11. Ticket change [ea1cb6ef7d] (rid 103315) by dgp on 2003-07-18 21:56:31:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I suspect this was meant for dkf.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  12. Ticket change [ab66c0b288] (rid 101102) by mmokrejs on 2003-07-21 17:12:25:

    1. icomment:
      Logged In: YES 
      user_id=696559
      
      Hi,
        the patch you proposed works:
      
      --- tests/cmdAH.test    4 Jul 2003 13:04:12 -0000       1.34
      +++ tests/cmdAH.test    21 Jul 2003 10:04:15 -0000
      @@ -1186,7 +1186,12 @@
       
       # atime
       
      +# avoid problems with non-local filesystems
      +if {$::tcl_platform(platform) == "unix" && [file exists
      /tmp]} {
      +    set file [makeFile "data" touch.me /tmp]
      +} else {
       set file [makeFile "data" touch.me]
      +}
       
       test cmdAH-20.1 {Tcl_FileObjCmd: atime} {
           list [catch {file atime a b c} msg] $msg
      
      
      Unfortunately, I don't know much about tcl, so I did not
      touch anythouf the removeFile as you suggested, but I cannot
      find the temporary file either.
      
      With the patch above I get an error further:
      
      ==== cmdAH-25.2 Tcl_FileObjCmd: owned FAILED
      ==== Contents of test case:
      
          file owned $gorpfile
      
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== cmdAH-25.2 FAILED
      
      
      I run the test in-non-local filesystem (AFS, as root and AFS
      user). So this part of the test should also be executed
      locally, I believe.
      
      
    2. login: "mmokrejs"
    3. mimetype: "text/plain"
    4. username: "mmokrejs"
  13. Ticket change [6944420e64] (rid 103222) by vincentdarley on 2003-07-21 17:24:08:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      I don't know anything about AFS, but it strikes me as a bug in 
      AFS, not in Tcl's test suite that now 'file owned' returns the 
      wrong value.  I'm a bit concerned by the idea of hard-coding 
      all sorts of hacks into the test suite to force this or that test 
      into /tmp. If this is a general problem, perhaps 
      [tcltest::temporaryDirectory] should check if we're on AFS 
      and use /tmp itself.
      
      I've committed the other fix.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  14. Ticket change [5734e70a19] (rid 94444) by mmokrejs on 2003-07-21 17:42:52:

    1. icomment:
      Logged In: YES 
      user_id=696559
      
      Well, on AFS there's no more valid the owner:group privilege
      system anymore. Therefore, it's is expected the test fails
      in many cases. The ls shell command for example shows owner
      root, group system. BUt I can be logged as another user,
      doesn't matter. What does matter is that I'm logged into AFS
      system in my session as AFS user xy. You cacn check if teh
      test directory is on AFS filesystem by the following shell
      command:
      
      fs la filename
      
      For example:
      
      # fs la tclsh
      Access list for tclsh is
      Normal rights:
        system:administrators rlidwka
        system:authuser rl
        system:anyuser rl
      #
      
      The output is just example output, but the return code of
      such command should be fine. You could alternatively test
      for /afs mountpoint, but it tells us only we are on AFS
      client machine.
      
      Can you tell me how to print the value of $gorpfile variable
      in the cmdAH.test file in the test 20.5? The files on AFS
      disk are currently owned by "me"(logged as root, really), so
      I'm curious why this does fail even in this case.
      
      
    2. login: "mmokrejs"
    3. mimetype: "text/plain"
    4. username: "mmokrejs"
  15. Ticket change [8e936857aa] (rid 120133) by dkf on 2003-07-23 21:44:22:

    1. assignee changed to: "vincentdarley"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Real AFS support in Tcl would be very cool - we use it
      heavily here too - but is a major project.
      
      Making the test put its test files in a known-local
      filesystem is a good workaround, especially as it allows for
      testing of what the test is actually about (that the
      appropriate POSIX syscall - or its evil Windows twin - is
      made) instead of getting hung up on the bizarreness of a
      particular filesystem.  It'll probably need a few changes,
      since the standard location for the temporary directory is
      system specific...
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  16. Ticket change [c82f4f513c] (rid 122061) by vincentdarley on 2003-07-24 17:25:46:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      This just isn't my area of expertise at all, so I'm afraid I'm 
      dropping out of dealing with this particular issue.
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  17. Ticket change [5e5368c2b2] (rid 115616) by dkf on 2003-07-24 20:15:19:

    1. assignee changed to: "vincentdarley"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Just patch the dratted test to run in /tmp on Unix (and
      somewhere likely on Windows/Mac where I've no expertise.) 
      Add constraints if necessary.  A wider fix (adding real AFS
      support) can wait for someone with time/effort/inclination
      but that person certainly isn't me at this stage!
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  18. Ticket change [482de3467e] (rid 99838) by vincentdarley on 2003-09-16 23:05:52:

    1. closedate changed to: "2003-09-16T16:05:52"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      Ok, fixed the test suite.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "vincentdarley"