[Pkg-tcltk-devel] Bug#913189: Bug#913189: /usr/bin/tclsh8.6: `file delete' can produce EFAULT

Sergei Golovan sgolovan at gmail.com
Fri Nov 9 07:26:53 GMT 2018


Hi Ian,
On Thu, Nov 8, 2018 at 1:03 AM Ian Jackson
<ijackson at chiark.greenend.org.uk> wrote:
>
> To reproduce:
>
> $ 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
> %

Right, the error message isn't an appropriate one.

>
> strace shows:
>
> getcwd(0x7ffcf224aeb0, 4097)            = -1 ENOENT (No such file or directory)
> lstat(NULL, 0x7ffcf224c100)             = -1 EFAULT (Bad address)
>
> Not sure why `file delete spong' needs to call cwd at all, but
> certainly it should have a proper error check.

I'll forward the bug upstream shortly. Thank you for the report.

Cheers!
-- 
Sergei Golovan



More information about the Pkg-tcltk-devel mailing list