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

History Of Ticket 573758ffffffffff

Artifacts Associated With Ticket 573758ffffffffff

  1. Ticket change [eda69047cf] (rid 103925) by lvirden on 2002-06-25 18:28:35:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Problem seen today from tcl 8.4b1 built from the
      activestate ftp snapshot of the cvs head - June 25, 2002.
      
      Platform: SPARC Solaris 2.6
      Sun C compiler
      configured --prefix=/usr/tcl84 --enable-symbols
      --enable-shared
      
      
      $ tclsh8.3 ~/bin/b64encode /etc/motd
      couldn't open "": no such file or directory
          while executing
      "open [lindex $argv 1] "r""
          invoked from within
      "if { $argc > 0 } {
              set fin [open [lindex $argv 1] "r"]
       } else {
              set fin stdin
       }"
          (file "/home/lwv26/bin/b64encode" line 7)
      lvirden
       $ tclsh8.4 ~/bin/b64encode /etc/motd
          while executing
      "open [lindex $argv 1] "r""
          invoked from within
      "if { $argc > 0 } {
              set fin [open [lindex $argv 1] "r"]
       } else {
              set fin stdin
       }"
          (file "/home/lwv26/bin/b64encode" line 7)
      l
      Notice the missing "couldn't open" message in 8.4b1?
      
      From the wiki chat, this occured:
      aku
      Oh, the creation of the error stack is off somehow
      dgp
      proabably an error in the new VFS code.  File it.
      aku
      Didn't we have changes in that area ?
      dgp
      is this new since 8.4a4 ?
      lvirden
      I don't know - I dont have 8.4a4 around.
      lvirden
      what category would this error be in?
      dgp
      seems to be no error message when the path does not
      belong to any file system ?
      dgp
      35. File System
      dgp
      aku, see end of Tcl_FSOpenFileChannel().
      lvirden
      there doesn't appear to be an 8.4b1 group to which I
      can assign this - so I will use 8.4a5 ...
      
      
    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: "lvirden"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "error stack report failure"
    11. type initialized to: "Bug"
  2. Ticket change [a3a3aad8d1] (rid 110076) by lvirden on 2002-06-26 01:34:29:

    1. priority changed to: "8"
  3. Ticket change [0d730c64de] (rid 114362) by dgp on 2002-06-26 03:20:42:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      more from the chat:
      
      dgp
      so possibly 2 bugs in Tcl then.
      dgp
      1) Why isn't an empty path referred to the native filesystem.
      dgp
      2) When no filesystem claims a path, report an error to that
      effect.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [00d1ff15b7] (rid 119377) by vincentdarley on 2002-06-26 22:10:10:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      (1) is not a bug.  "" is not a valid path in the native 
      filesystem under any circumstances that I am aware of, 
      and for technical reasons it is best that the native 
      filesystem never claim it.
      
      (2) of course is a bug.  The relevant code which needs to 
      go at the end of Tcl_FSOpenFileChannel is:
      
          /* File doesn't belong to any filesystem that can open 
      it */
          errno = ERROR_FILE_NOT_FOUND;
          if (interp != NULL) {
      Tcl_AppendResult(interp, "couldn't open \"", 
       Tcl_GetString
      (pathPtr), "\": ",
       Tcl_PosixError(interp), 
      (char *) NULL);
          }
      
      feel free to test and apply...
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. resolution changed to: "Accepted"
    7. username: "vincentdarley"
  5. Ticket change [0e71d8052a] (rid 94621) by dkf on 2002-06-26 22:16:51:

    1. assignee changed to: "vincentdarley"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      It seems there are a number of paths through the FS code
      that can end up bailing out without generating the correct
      error code; the problem comes because of missing
         Tcl_SetErrno(ENOENT);
      from Tcl_FSOpenFileChannel(), Tcl_FSUtime(),
      Tcl_FSFileAttrStrings(), Tcl_FSFileAttrsGet(),
      Tcl_FSFileAttrsSet(), Tcl_FSDeleteFile(),
      Tcl_FSCreateDirectory(), Tcl_FSRemoveDirectory(), *probably*
      Tcl_FSLoadFile() and Tcl_FSLink(), and *possibly*
      Tcl_FSMatchInDirectory() and Tcl_FSGetCwd() (though the
      logic for them is a bit more complex than I can hack through
      in a few minutes without deep prior knowledge.)
      
      Tcl_FSOpenFileChannel() is the definite culprit when it
      comes to this bug; please add a test as well.  (Bumped the
      priority, as this is such an unhelpful error message!)
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  6. Ticket change [bcc216bca2] (rid 101808) by vincentdarley on 2002-06-26 22:56:59:

    1. closedate changed to: "2002-06-26T15:56:59"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      Applying fix to cvs head. -- Thanks.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "vincentdarley"