Skip to content
Tcl Source Code History Of Ticket 24ebbce9635d2a14
Login

History Of Ticket 24ebbce9635d2a14

Artifacts Associated With Ticket 24ebbce9635d2a14

  1. Ticket change [b13f73fead] (rid 167231) by sgolovan on 2018-11-09 07:48:33:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Appears that if tclsh starts in an inaccessible working directory,
      some [file] operations like [file delete] return EFAULT.
      The way to reproduce the problem has been reporte to Debian
      at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913189
      
      $ rm -rf d
      $ mkdir d
      $ cd d
      $ rm -rf ../d
      $ env - pwd
      pwd: couldn't find directory entry in '..' with matching i-node
      $ tclsh8.6
      % file delete spong
      error deleting "spong": bad address in system call argument
      %
      
      strace shows:
      
      getcwd(0x7ffcf224aeb0, 4097)            = -1 ENOENT (No such file or directory)
      lstat(NULL, 0x7ffcf224c100)             = -1 EFAULT (Bad address)
      
      I would expect another error (file not found) in this case.
      Or is there a reason for this behavior?
      
    5. is_private initialized to: "0"
    6. login: "sgolovan"
    7. priority initialized to: "5 Medium"
    8. private_contact initialized to: "07bcf89c4057d2d0e00473ab972eef3274af2d93"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "sgolovan"
    13. subsystem initialized to: "16. Commands A-H"
    14. title initialized to:
      [file] operations return EFAULT when [pwd] is inaccessible
      
    15. type initialized to: "Bug"
  2. Ticket change [399841134c] (rid 167232) by dgp on 2018-11-09 12:13:19:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2458432.00925272"
    3. closer changed to: "dgp"
    4. icomment:
      
      Duplicate
      
      https://core.tcl-lang.org/tcl/tktview?name=469c5ea507
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Duplicate"
    8. status changed to: "Closed"