Skip to content
Tcl Source Code History Of Ticket 1035775fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1035775fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1035775fffffffffffffffffffffffffffffffff

  1. Ticket change [ca3f75c402] (rid 122430) by kennykb on 2004-09-27 22:12:46:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      On Red Hat Enterprise 3, runnning with the HEAD as of
      2004-09-27 2300 UTC, I get the following two test
      failures:
      
      ==== filesystem-7.6 cross-filesystem dir copy with
      -force FAILED
      ==== Contents of test case:
       
          set dir [pwd]
          cd [tcltest::temporaryDirectory]
          file delete -force simpledir
          file mkdir simpledir
          file mkdir dir2
          set fout [open [file join simpledir simplefile] w]
          puts -nonewline $fout "1234567890"
          close $fout
          testsimplefilesystem 1
          # First copy should succeed
          set res [catch {file copy simplefs:/simpledir dir2}
      err]
          lappend res $err
          # Second copy should fail (no -force)
          lappend res [catch {file copy simplefs:/simpledir
      dir2} err]
          lappend res $err
          # Third copy should succeed (-force)
          lappend res [catch {file copy -force
      simplefs:/simpledir dir2} err]
          lappend res $err
          lappend res [file exists [file join dir2
      simpledir]]  [file exists [file join dir2 simpledir
      simplefile]]
          testsimplefilesystem 0
          file delete -force simpledir
          file delete -force dir2
          cd $dir
          set res
       
      ---- Result was:
      1 {error copying "simplefs:/simpledir": no such file or
      directory} 1 {error copying "simplefs:/simpledir": no
      such file or directory} 1 {error copying
      "simplefs:/simpledir": no such file or directory} 0 0
      ---- Result should have been (exact matching):
      0 {} 1 {error copying "simplefs:/simpledir" to
      "dir2/simpledir": file already exists} 0 {} 1 1
      ==== filesystem-7.6 FAILED
       
       
      ==== filesystem-7.7 cross-filesystem dir copy with
      -force FAILED
      ==== Contents of test case:
       
          set dir [pwd]
          cd [tcltest::temporaryDirectory]
          file delete -force simpledir
          file mkdir simpledir
          file mkdir dir2
          set fout [open [file join simpledir simplefile] w]
          puts -nonewline $fout "1234567890"
          close $fout
          testsimplefilesystem 1
          # First copy should succeed
          set res [catch {file copy simplefs:/simpledir dir2}
      err]
          lappend res $err
          # Second copy should fail (no -force)
          lappend res [catch {file copy simplefs:/simpledir
      dir2} err]
          lappend res $err
          # Third copy should succeed (-force)
          # I've noticed on some Unices that this only succeeds
          # intermittently (some runs work, some fail).  This
      needs
          # examining further.
          lappend res [catch {file copy -force
      simplefs:/simpledir dir2} err]
          lappend res $err
          lappend res [file exists [file join dir2
      simpledir]]  [file exists [file join dir2 simpledir
      simplefile]]
          testsimplefilesystem 0
          file delete -force simpledir
          file delete -force dir2
          cd $dir
          set res
       
      ---- Result was:
      1 {error copying "simplefs:/simpledir": no such file or
      directory} 1 {error copying "simplefs:/simpledir": no
      such file or directory} 1 {error copying
      "simplefs:/simpledir": no such file or directory} 0 0
      ---- Result should have been (exact matching):
      0 {} 1 {error copying "simplefs:/simpledir" to
      "dir2/simpledir": file already exists} 0 {} 1 1
      ==== filesystem-7.7 FAILED
       
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "kennykb"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "filesystem-7.6 and 7.7 fail"
    11. type initialized to: "Bug"
  2. Ticket change [75b68af9f0] (rid 105433) by vincentdarley on 2004-09-28 15:47:05:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Did these break as a result of my check-in yesterday, or
      have they been broken for a long time?
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  3. Ticket change [442323bd86] (rid 116669) by dgp on 2004-09-30 11:08:13:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      these tests just recently started
      failing on the HEAD on 
      thread-enabled macosx builds.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [77cbc1e20b] (rid 89833) by dgp on 2004-10-05 22:34:44:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      these tests fail on thread-enabled
      Solaris builds also.  there must
      be some real thread related bug.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [1c77de6eae] (rid 90610) by andreas_kupries on 2004-10-07 04:08:28:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      I can confirm this for a linux and a windows build.
      Windows is Win 2K.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [683f1938d4] (rid 103032) by dgp on 2004-10-27 23:53:25:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      this needs fixing before an 8.5a2 release.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dgp"
  7. Ticket change [475a5a7c3c] (rid 99688) by das on 2004-11-11 08:05:32:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      also ran into this the other day and fiddled around a bit, it turns out that 
      these tests only fail when executed as part of filesystem.test and not 
      when run as independent snippets.
      the problem seems to be with reuse of directory names (some PathObj 
      issue?), as when the 'dir2' in these tests is changed to 'dir3', they pass.
      I also managed to workaround the failure with the change below, which 
      again only changes a 'dir2' pathname earlier on in the testfile to './dir2'...
      haven't tried to investigate any further, HTH a bit...
      
      Index: tests/fileSystem.test
      ===============================================
      ====================
      RCS file: /cvsroot/tcl/tcl/tests/fileSystem.test,v
      retrieving revision 1.49
      diff -u -p -r1.49 fileSystem.test
      --- tests/fileSystem.test31 Oct 2004 17:36:41 -00001.49
      +++ tests/fileSystem.test10 Nov 2004 17:02:39 -0000
      @@ -261,7 +261,7 @@ test filesystem-1.29.1 {link normalisati
       file delete -force dir2.file
       file delete -force dir2.link
       file delete -force link.file dir.link
      -file delete -force dir2
      +file delete -force ./dir2
       file delete -force [file join dir.dir dirinside.link]
       removeFile [file join dir.dir inside.file]
       removeDirectory [file join dir.dir dirinside.dir]
       
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  8. Ticket change [b7fd2de092] (rid 128891) by dgp on 2004-11-16 06:06:46:

    1. assignee changed to: "dgp"
  9. Ticket change [2873529094] (rid 88699) by dgp on 2004-11-17 02:27:56:

    1. assignee changed to: "vincentdarley"
  10. Ticket change [0e8bbec15d] (rid 94636) by dgp on 2004-11-17 02:27:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      I confirm that works around the failures,
      but the fact remains these failures
      happen only under a --enable-threads
      configuration, while nothing in
      fileSystem.test appears to be contingent
      on thread-enabling.
      
      To me, this says there's a bug to be
      found in the thread-enabled configuration.
      We ought to find and fix it rather than hide it.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [073e485f8c] (rid 89358) by dgp on 2004-11-17 02:56:25:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      confirmed that the following change
      started the failures:
      
      2004-09-27  Vince Darley  <[email protected]>
      
              * generic/tclFileName.c:
              * generic/tclFileSystem.h:
              * generic/tclIOUtil.c:
              * generic/tclPathObj.c:
              * tests/cmdAH.test:
              * tests/fileSystem.test:
              * tests/winFCmd.test: fix to bad error message with
      'cd' on
              windows, when permissions are inadequate [Bug
      1035462] and
              to treatment of a volume-relative pwd on Windows
      [Bug 1018980].
      
              * doc/FileSystem.3: added missing Tcl_GlobTypeData
      documentation
              [Bug 935853]
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [f3c1a23a77] (rid 129774) by dgp on 2004-11-17 03:02:25:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      the portion of that change set that is
      most obviously influenced by
      --enable-threads is the
      TclFSEpochOk() routine.
      Suspect that's the best place to
      look for root causes.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Ticket change [6e51e3e576] (rid 100130) by dgp on 2004-11-17 03:32:34:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      It appears the problem is that the
      relative path "dir2" gets an internal
      rep before a [cd], then uses it
      after the [cd], even though it is
      then out of date.  something about
      the cwd up to date check is failing
      when threads are enabled.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Ticket change [41fe2abf01] (rid 116289) by vincentdarley on 2004-11-17 05:22:57:

    1. assignee changed to: "vasiljevic"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      Zoran, Any ideas from a threading perspectve?
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  15. Ticket change [9f71475399] (rid 96644) by dgp on 2004-11-17 05:49:24:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      still tracking this down.
      Now appears that intervening
      [testsimplefilesystem] may matter
      more than the intervening [cd].
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  16. Ticket change [2dc8e18213] (rid 119119) by dgp on 2004-11-17 06:35:27:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      In filesystem-7.6, during the 
      [file copy simplefs:/simpledir dir2]
      command, a call to
      Tcl_FSGetFileSystemForPath()
      is returning "native" instead of
      the correct "simple" for the path
      simple:/simpledir
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Ticket change [f4e57659ab] (rid 130007) by dgp on 2004-11-17 06:52:58:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      I think I found it.
      
      The resetting of tsdPtr->filesystemEpoch
      gets done within TclFSEpochOK
      while the intrep of the "dir2" path is
      getting rechecked.
      
      Later when FsGetFirstFilesystem()
      is called, the epochs match, so the
      call to FsRecacheFilesystemList()
      is skipped, even though it is needed
      in order to be able to find the "simple"
      Tcl_Filesystem.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  18. Add attachment "1035775.patch" [e5019e7dcc] (rid 88052) by dgp on 2004-11-17 07:14:08.

  19. Ticket change [d6bcead0e7] (rid 123855) by dgp on 2004-11-17 07:14:08:

    1. icomment:
      
      
      File Added - 109039: 1035775.patch
      
      Logged In: YES 
      user_id=80530
      
      here's a patch supplying
      a simpleminded fix that I
      am committing.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  20. Ticket change [a316459010] (rid 109999) by dgp on 2004-11-17 07:31:56:

    1. status changed to: "Closed"
  21. Ticket change [9a2478e912] (rid 110905) by dgp on 2004-11-17 07:31:57:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2004-11-17T00:31:57"
    3. closer changed to: "dgp"
    4. resolution changed to: "Fixed"