bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils fails on check for "mv": FAIL: no-target-dir


From: Jared Martin
Subject: Re: coreutils fails on check for "mv": FAIL: no-target-dir
Date: Wed, 16 Aug 2006 15:52:42 -0500

Thanks for the response Paul, I've done as you've requested.

I probably should mention what the log files make obvious: I'm not root and
I'm installing coreutils in a private directory. Now it occurs to me that
perhaps my binutils is not hitting on all eight cylinders, but that is
extraneous to your immediate testing needs. If the fault is one of my other
commands, then your tests are doing exactly the right thing, I think. I
would appreciate it if you could deduce which one: I am not a unix systems
programmer, just a user who is trying to keep his basic tools up-to-date
because his company won't.

Attached is the log file created by

$ echo ${PWD#/*/*/*/*/*/*/}; VERBOSE=yes make TESTS=no-target-dir check
check_no-target-dir_verbose.log 2>&1
coreutils-5.97/LinuxRHEL64_30WS/tests/mv

and below are the commands and results you requested I perform and report:

$ rm -fr d empty; mkdir -p d/sub empty; strace -o tr ../../src/mv -fT d
empty; cat tr
../../src/mv: cannot move `d' to `empty': Device or resource busy
execve("../../src/mv", ["../../src/mv", "-fT", "d", "empty"], [/* 78 vars
*/]) = 0
uname({sys="Linux", node="houbtc-n-d99966", ...}) = 0
brk(0)                                  = 0x511000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2a9566c000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=118892, ...}) = 0
mmap(NULL, 118892, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9566d000
close(3)                                = 0
open("/lib64/tls/libc.so.6", O_RDONLY)  = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>address@hidden"..., 640) =
640
fstat(3, {st_mode=S_IFREG|0755, st_size=1669064, ...}) = 0
mmap(NULL, 2375528, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a9568b000
mprotect(0x2a957c6000, 1085288, PROT_NONE) = 0
mmap(0x2a958c6000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x13b000) = 0x2a958c6000
mmap(0x2a958cb000, 16232, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a958cb000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2a958cf000
arch_prctl(ARCH_SET_FS, 0x2a958cf4c0)   = 0
munmap(0x2a9566d000, 118892)            = 0
brk(0)                                  = 0x511000
brk(0x532000)                           = 0x532000
brk(0)                                  = 0x532000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32148976, ...}) = 0
mmap(NULL, 32148976, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a958d0000
close(3)                                = 0
geteuid()                               = 70207
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
umask(0)                                = 022
lstat("d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("empty", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
rename("d", "empty")                    = -1 EBUSY (Device or resource busy)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2a9566d000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2601
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2a9566d000, 4096)              = 0
open("/glb/data/eptr_ai/apps/LinuxRHEL64_30WS/share/locale/en_US.UTF-8/LC_MESSAGES/coreutils.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/glb/data/eptr_ai/apps/LinuxRHEL64_30WS/share/locale/en_US.utf8/LC_MESSAGES/coreutils.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/glb/data/eptr_ai/apps/LinuxRHEL64_30WS/share/locale/en_US/LC_MESSAGES/coreutils.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/glb/data/eptr_ai/apps/LinuxRHEL64_30WS/share/locale/en.UTF-8/LC_MESSAGES/coreutils.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/glb/data/eptr_ai/apps/LinuxRHEL64_30WS/share/locale/en.utf8/LC_MESSAGES/coreutils.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/glb/data/eptr_ai/apps/LinuxRHEL64_30WS/share/locale/en/LC_MESSAGES/coreutils.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "../../src/mv: ", 14)          = 14
write(2, "cannot move `d\' to `empty\'", 26) = 26
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, ": Device or resource busy", 25) = 25
write(2, "\n", 1)                       = 1
close(1)                                = 0
exit_group(1)                           = ?

Cheers,
--Jared

On 8/16/06, Paul Eggert <address@hidden> wrote:

Thanks for the bug report.  What is the output of the following Bourne
shell commands?  This will give us a bit more information about the
failure.

   cd tests/mv
   VERBOSE=yes make TESTS=no-target-dir check

Also, what is the output of the following?

   cd tests/mv
   rm -fr d empty
   mkdir -p d/sub empty
   strace -o tr ../../src/mv -fT d empty
   cat tr

On my Debian stable x86 box, the "cat tr" ends in output that looks like
this:

   lstat64("d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
   lstat64("empty", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
   rename("d", "empty")                    = 0
   close(1)                                = 0
   exit_group(0)                           = ?

I'm guessing that the 'rename' system call isn't working correctly on
your host, and that we need to work around the bug, but it's just a
guess.




--
Haven't gotten annoying e-mails from me about trivial subjects? Miss them?
Then check out my blog:
http://streanderingmeams.blogspot.com/

Attachment: check_no-target-dir_verbose.log.bz2
Description: BZip2 compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]