Overview
| Artifact ID: | b13f73fead6bf08cd946cfa2af09d7ce9003c1fc4ec4a51f55682875439724f9 |
|---|---|
| Ticket: | 24ebbce9635d2a149e59df37af1dae971220bfd3
[file] operations return EFAULT when [pwd] is inaccessible |
| User & Date: | sgolovan on 2018-11-09 07:48:33 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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?
- is_private changed to: "0"
- login: "sgolovan"
- priority changed to: "5 Medium"
- private_contact changed to: "07bcf89c4057d2d0e00473ab972eef3274af2d93"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "sgolovan"
- subsystem changed to: "16. Commands A-H"
- title changed to:
[file] operations return EFAULT when [pwd] is inaccessible
- type changed to: "Bug"