Subject: bug#19072: cp does not work with davfs2 (fuse) under GNU/Linux; coreutils-8.21

From: Klaus-Jürgen Wolf <[email-masked]>
Date: Mon, 17 Nov 2014 17:48:08 +0100

execve("/bin/cp", ["cp", "--sparse=never", "/home/kj/Tc7200.bin",
"MyDrive"], [/* 96 vars */]) = 0
brk(0)                                  = 0x9eb000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f2fc02ed000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=319914, ...}) = 0
mmap(NULL, 319914, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2fc0298000
close(3)                                = 0
open("/lib64/libacl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340$\0\0\0\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=35272, ...}) = 0
mmap(NULL, 2130592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f2fbfeb8000
mprotect(0x7f2fbfec0000, 2093056, PROT_NONE) = 0
mmap(0x7f2fc00bf000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f2fc00bf000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 O\2\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1728864, ...}) = 0
mmap(NULL, 3841112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f2fbfb08000
mprotect(0x7f2fbfca9000, 2093056, PROT_NONE) = 0
mmap(0x7f2fbfea8000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a0000) = 0x7f2fbfea8000
mmap(0x7f2fbfeae000, 15448, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f2fbfeae000
close(3)                                = 0
open("/lib64/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\26\0\0\0\0\0\0"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0755, st_size=18616, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f2fc02ec000
mmap(NULL, 2113904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f2fbf900000
mprotect(0x7f2fbf904000, 2093056, PROT_NONE) = 0
mmap(0x7f2fbfb03000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f2fbfb03000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f2fc02eb000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f2fc02e7000
arch_prctl(ARCH_SET_FS, 0x7f2fc02eb700) = 0
mprotect(0x7f2fbfea8000, 16384, PROT_READ) = 0
mprotect(0x7f2fbfb03000, 4096, PROT_READ) = 0
mprotect(0x7f2fc00bf000, 4096, PROT_READ) = 0
mprotect(0x61a000, 4096, PROT_READ)     = 0
mprotect(0x7f2fc02e8000, 4096, PROT_READ) = 0
munmap(0x7f2fc0298000, 319914)          = 0
brk(0)                                  = 0x9eb000
brk(0xa0c000)                           = 0xa0c000
open("/usr/lib64/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3847568, ...}) = 0
mmap(NULL, 3847568, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2fbf550000
close(3)                                = 0
geteuid()                               = 1000
stat("MyDrive", {st_mode=S_IFDIR|0755, st_size=496, ...}) = 0
stat("/home/kj/Tc7200.bin", {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
stat("MyDrive/Tc7200.bin", 0x7fff14fec6e0) = -1 ENOENT (No such file or
directory)
open("/home/kj/Tc7200.bin", O_RDONLY)   = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
open("MyDrive/Tc7200.bin", O_WRONLY|O_CREAT|O_EXCL, 0644) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
fadvise64(3, 0, 0, POSIX_FADV_SEQUENTIAL) = 0
read(3, "<\2401\344kT*\3\347\233\316Oz[\255\3756u9E9eWF0bt9Y8Rw"..., 65536)
= 26296
write(4, "<\2401\344kT*\3\347\233\316Oz[\255\3756u9E9eWF0bt9Y8Rw"...,
26296) = -1 EIO (Input/output error)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 5
fcntl(5, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
fstat(5, {st_mode=S_IFREG|0644, st_size=2492, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f2fc02e6000
read(5, "# Locale name alias data base.\n#"..., 4096) = 2492
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x7f2fc02e6000, 4096)            = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib64/charset.alias", O_RDONLY|O_NOFOLLOW) = -1 ENOENT (No such
file or directory)
write(2, "cp: ", 4)                     = 4
write(2, "error writing \342\200\230MyDrive/Tc7200."..., 38) = 38
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
write(2, ": Input/output error", 20)    = 20
write(2, "\n", 1)                       = 1
write(2, "cp: ", 4)                     = 4
write(2, "failed to extend \342\200\230MyDrive/Tc72"..., 41) = 41
write(2, ": Input/output error", 20)    = 20
write(2, "\n", 1)                       = 1
close(4)                                = 0
close(3)                                = 0
lseek(0, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
close(0)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++