retitle 426904 coreutils: FTBFS: FAIL: no-x
reopen 426904
thanks

Hi,

BR #426904 is reproduceable for me.

I have done the tests that were previous requested.
( a "strace" and "env VERBOSE=yes" ) you find the logging attached.


More information about my setup:

* It is an i386 computer with up-to-date unstable.
* The kernel is a self-compiled 2.6.20 one
* used command is `fakeroot debian/rules binary`
* filesystem is an ext3


Cheers
Geert Stappers

execve("/usr/src/coreutils-5.97/build-tree/coreutils-5.97/tests/chgrp/../../src/chgrp",
 ["chgrp", "-R", "4", "d"], [/* 48 vars */]) = 0
brk(0)                                  = 0x8051000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x4001d000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=55766, ...}) = 0
mmap2(NULL, 55766, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001f000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0`\1\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1315328, ...}) = 0
mmap2(NULL, 1320356, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x4002d000
mmap2(0x4016a000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13d) = 0x4016a000
mmap2(0x4016d000, 9636, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4016d000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40170000
set_thread_area({entry_number:-1 -> 6, base_addr:0x401706c0, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0
mprotect(0x4016a000, 4096, PROT_READ)   = 0
munmap(0x4001f000, 55766)               = 0
brk(0)                                  = 0x8051000
brk(0x8072000)                          = 0x8072000
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT 
(No such file or directory)
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT 
(No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=513, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x4001f000
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 513
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4001f000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=55766, ...}) = 0
mmap2(NULL, 55766, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001f000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libnss_compat.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\16\0\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=30436, ...}) = 0
mmap2(NULL, 33348, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x40171000
mmap2(0x40178000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0x40178000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2200\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=79600, ...}) = 0
mmap2(NULL, 91944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x4017a000
mmap2(0x4018d000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0x4018d000
mmap2(0x4018f000, 5928, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4018f000
close(3)                                = 0
munmap(0x4001f000, 55766)               = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=55766, ...}) = 0
mmap2(NULL, 55766, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001f000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libnss_nis.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\31\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=34352, ...}) = 0
mmap2(NULL, 37436, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x40191000
mmap2(0x40199000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0x40199000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\31\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=38416, ...}) = 0
mmap2(NULL, 41624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x4019b000
mmap2(0x401a4000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0x401a4000
close(3)                                = 0
munmap(0x4001f000, 55766)               = 0
open("/etc/group", O_RDONLY)            = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
_llseek(3, 0, [0], SEEK_CUR)            = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=778, ...}) = 0
mmap2(NULL, 778, PROT_READ, MAP_SHARED, 3, 0) = 0x4001f000
_llseek(3, 778, [778], SEEK_SET)        = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=778, ...}) = 0
munmap(0x4001f000, 778)                 = 0
close(3)                                = 0
lstat64("d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK|O_NOCTTY|O_LARGEFILE|O_DIRECTORY) = 3
fchdir(3)                               = 0
open("d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fchdir(4)                               = 0
getdents64(4, /* 3 entries */, 4096)    = 72
lstat64("no-x", {st_mode=S_IFDIR|0655, st_size=4096, ...}) = 0
getdents64(4, /* 0 entries */, 4096)    = 0
close(4)                                = 0
open("no-x", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0655, st_size=4096, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
fstat64(4, {st_mode=S_IFDIR|0655, st_size=4096, ...}) = 0
fchdir(4)                               = -1 EACCES (Permission denied)
close(4)                                = 0
write(2, "chgrp: ", 7)                  = 7
write(2, "`d/no-x\'", 8)                = 8
write(2, ": Permission denied", 19)     = 19
write(2, "\n", 1)                       = 1
fchdir(3)                               = 0
lchown32("d", -1, 4)                    = 0
fchdir(3)                               = 0
close(3)                                = 0
close(1)                                = 0
exit_group(1)                           = ?
make: Entering directory 
`/usr/src/coreutils-5.97/build-tree/coreutils-5.97/tests/chgrp'
make  check-TESTS
make[1]: Entering directory 
`/usr/src/coreutils-5.97/build-tree/coreutils-5.97/tests/chgrp'
+ chgrp --version
chgrp (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie and Jim Meyering.
+ . ./../group-names
++ groups='1000 4 20 24 25 29 40 44 46 106 109 115'
++ case "$groups" in
+ set _ 1000 4 20 24 25 29 40 44 46 106 109 115
+ shift
+ g1=1000
+ g2=4
+ . ./../lang-default
++ for i in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC 
LC_TIME
++ eval 'LANG=; export LANG'
+++ LANG=
+++ export LANG
++ for i in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC 
LC_TIME
++ eval 'LANGUAGE=; export LANGUAGE'
+++ LANGUAGE=
+++ export LANGUAGE
++ for i in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC 
LC_TIME
++ eval 'LC_ALL=; export LC_ALL'
+++ LC_ALL=
+++ export LC_ALL
++ for i in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC 
LC_TIME
++ eval 'LC_COLLATE=; export LC_COLLATE'
+++ LC_COLLATE=
+++ export LC_COLLATE
++ for i in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC 
LC_TIME
++ eval 'LC_CTYPE=; export LC_CTYPE'
+++ LC_CTYPE=
+++ export LC_CTYPE
++ for i in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC 
LC_TIME
++ eval 'LC_MESSAGES=; export LC_MESSAGES'
+++ LC_MESSAGES=
+++ export LC_MESSAGES
++ for i in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC 
LC_TIME
++ eval 'LC_NUMERIC=; export LC_NUMERIC'
+++ LC_NUMERIC=
+++ export LC_NUMERIC
++ for i in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_NUMERIC 
LC_TIME
++ eval 'LC_TIME=; export LC_TIME'
+++ LC_TIME=
+++ export LC_TIME
+ PRIV_CHECK_ARG=require-non-root
+ . ./../priv-check
++ case "$PRIV_CHECK_ARG" in
++ who='by an unprivileged user'
+++ id -u
++ my_uid=1000
++ test 0 = 0
++ case $my_uid in
++ test 1000 = 0
++ give_msg=no
++ case $PRIV_CHECK_ARG:$my_uid in
++ test no = yes
++ pwd
+ pwd=/usr/src/coreutils-5.97/build-tree/coreutils-5.97/tests/chgrp
++ echo ./no-x
++ sed 's,.*/,,'
+ t0=no-x.tmp
+ tmp=no-x.tmp/28178
+ trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
+ trap '(exit $?); exit $?' 1 2 13 15
+ framework_failure=0
+ mkdir -p no-x.tmp/28178
+ cd no-x.tmp/28178
+ mkdir -p d/no-x/y
+ chmod u=rw d/no-x
+ test 0 = 1
+ fail=0
+ strace -o /tmp/chgrp-log chgrp -R 4 d
+ fail=1
+ cat
+ cmp out exp
+ test 1 = 1
+ diff out exp
+ exit 1
+ exit 1
+ status=1
+ cd /usr/src/coreutils-5.97/build-tree/coreutils-5.97/tests/chgrp
+ chmod -R u+rwx no-x.tmp
+ rm -rf no-x.tmp
+ exit 1
FAIL: no-x
======================================
1 of 1 tests failed
Please report to [EMAIL PROTECTED]
======================================
make[1]: *** [check-TESTS] Error 1
make[1]: Leaving directory 
`/usr/src/coreutils-5.97/build-tree/coreutils-5.97/tests/chgrp'
make: *** [check-am] Error 2
make: Leaving directory 
`/usr/src/coreutils-5.97/build-tree/coreutils-5.97/tests/chgrp'

Reply via email to