[#4691] [ltp] some fadvise64 cases fails on blackfin unexpectedly
Submitted By: Mingquan Pan
Open Date
2008-12-02 05:15:54 Close Date
2009-03-03 03:20:38
Priority:
Medium Assignee:
Sonic Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
Nov 11
App binary format:
N/A
Summary: [ltp] some fadvise64 cases fails on blackfin unexpectedly
Details:
[ltp] some fadvise64 cases (in up-to-date ltp) fails on blackfin unexpectedly.
On host,the same test case can pass:
test@my-local-machine:~/checkouts/testsuites.1007/ltp/ltp-full-20071031/testcases/kernel/syscalls/fadvise> make
cc -I../../../../include -I../../include -Wall -DTST_USE_NEWER64_SYSCALL=1 -D_FILE_OFFSET_BITS=64 -c -o posix_fadvise01_64.o posix_fadvise01.c
cc posix_fadvise01_64.o -L../../../../lib -lltp -o posix_fadvise01_64
cc -I../../../../include -I../../include -Wall -DTST_USE_NEWER64_SYSCALL=1 -D_FILE_OFFSET_BITS=64 -c -o posix_fadvise02_64.o posix_fadvise02.c
cc posix_fadvise02_64.o -L../../../../lib -lltp -o posix_fadvise02_64
cc -I../../../../include -I../../include -Wall -DTST_USE_NEWER64_SYSCALL=1 -D_FILE_OFFSET_BITS=64 -c -o posix_fadvise03_64.o posix_fadvise03.c
cc posix_fadvise03_64.o -L../../../../lib -lltp -o posix_fadvise03_64
cc -I../../../../include -I../../include -Wall -DTST_USE_NEWER64_SYSCALL=1 -D_FILE_OFFSET_BITS=64 -c -o posix_fadvise04_64.o posix_fadvise04.c
cc posix_fadvise04_64.o -L../../../../lib -lltp -o posix_fadvise04_64
test@my-local-machine:~/checkouts/testsuites.1007/ltp/ltp-full-20071031/testcases/kernel/syscalls/fadvise> ./posix_fadvise01_64
posix_fadvise01_64 1 PASS : call succeeded expectedly
posix_fadvise01_64 2 PASS : call succeeded expectedly
posix_fadvise01_64 3 PASS : call succeeded expectedly
posix_fadvise01_64 4 PASS : call succeeded expectedly
posix_fadvise01_64 5 PASS : call succeeded expectedly
posix_fadvise01_64 6 PASS : call succeeded expectedly
test@my-local-machine:~/checkouts/testsuites.1007/ltp/ltp-full-20071031/testcases/kernel/syscalls/fadvise> ./posix_fadvise02_64
posix_fadvise02_64 1 PASS : expected failure - returned value = 9 : Bad file descriptor
posix_fadvise02_64 2 PASS : expected failure - returned value = 9 : Bad file descriptor
posix_fadvise02_64 3 PASS : expected failure - returned value = 9 : Bad file descriptor
posix_fadvise02_64 4 PASS : expected failure - returned value = 9 : Bad file descriptor
posix_fadvise02_64 5 PASS : expected failure - returned value = 9 : Bad file descriptor
posix_fadvise02_64 6 PASS : expected failure - returned value = 9 : Bad file descriptor
test@my-local-machine:~/checkouts/testsuites.1007/ltp/ltp-full-20071031/testcases/kernel/syscalls/fadvise> ./posix_fadvise03_64
posix_fadvise03_64 1 PASS : expected failure - returned value = 22, advise = 6 : Invalid argument
posix_fadvise03_64 2 PASS : expected failure - returned value = 22, advise = 7 : Invalid argument
posix_fadvise03_64 3 PASS : expected failure - returned value = 22, advise = 8 : Invalid argument
posix_fadvise03_64 4 PASS : expected failure - returned value = 22, advise = 9 : Invalid argument
posix_fadvise03_64 5 PASS : expected failure - returned value = 22, advise = 10 : Invalid argument
posix_fadvise03_64 6 PASS : expected failure - returned value = 22, advise = 11 : Invalid argument
posix_fadvise03_64 7 PASS : expected failure - returned value = 22, advise = 12 : Invalid argument
posix_fadvise03_64 8 PASS : expected failure - returned value = 22, advise = 13 : Invalid argument
posix_fadvise03_64 9 PASS : expected failure - returned value = 22, advise = 14 : Invalid argument
posix_fadvise03_64 10 PASS : expected failure - returned value = 22, advise = 15 : Invalid argument
posix_fadvise03_64 11 PASS : expected failure - returned value = 22, advise = 16 : Invalid argument
posix_fadvise03_64 12 PASS : expected failure - returned value = 22, advise = 17 : Invalid argument
posix_fadvise03_64 13 PASS : expected failure - returned value = 22, advise = 18 : Invalid argument
posix_fadvise03_64 14 PASS : expected failure - returned value = 22, advise = 19 : Invalid argument
posix_fadvise03_64 15 PASS : expected failure - returned value = 22, advise = 20 : Invalid argument
posix_fadvise03_64 16 PASS : expected failure - returned value = 22, advise = 21 : Invalid argument
posix_fadvise03_64 17 PASS : expected failure - returned value = 22, advise = 22 : Invalid argument
posix_fadvise03_64 18 PASS : expected failure - returned value = 22, advise = 23 : Invalid argument
posix_fadvise03_64 19 PASS : expected failure - returned value = 22, advise = 24 : Invalid argument
posix_fadvise03_64 20 PASS : expected failure - returned value = 22, advise = 25 : Invalid argument
posix_fadvise03_64 21 PASS : expected failure - returned value = 22, advise = 26 : Invalid argument
posix_fadvise03_64 22 PASS : expected failure - returned value = 22, advise = 27 : Invalid argument
posix_fadvise03_64 23 PASS : expected failure - returned value = 22, advise = 28 : Invalid argument
posix_fadvise03_64 24 PASS : expected failure - returned value = 22, advise = 29 : Invalid argument
posix_fadvise03_64 25 PASS : expected failure - returned value = 22, advise = 30 : Invalid argument
posix_fadvise03_64 26 PASS : expected failure - returned value = 22, advise = 31 : Invalid argument
test@my-local-machine:~/checkouts/testsuites.1007/ltp/ltp-full-20071031/testcases/kernel/syscalls/fadvise> ./posix_fadvise04_64
posix_fadvise04_64 0 WARN : This test can only run on kernels that are
posix_fadvise04_64 0 WARN : 2.6.16 and higher
Building for target bfin:
test@my-local-machine:~/checkouts/testsuites.1007/ltp/ltp-full-20071031/testcases/kernel/syscalls/fadvise> CC=bfin-uclinux-gcc make
bfin-uclinux-gcc -I../../../../include -I../../include -Wall -D__uClinux__ -Dlinux -mstack-check-l1 -DUCLINUX --save-temps -g3 -DTST_USE_NEWER64_SYSCALL=1 -D_FILE_OFFSET_BITS=64 -c -o posix_fadvise01_64.o posix_fadvise01.c
bfin-uclinux-gcc posix_fadvise01_64.o -L../../../../lib -lltp -Wl,-elf2flt="-s 32768" -static -o posix_fadvise01_64
bfin-uclinux-gcc -I../../../../include -I../../include -Wall -D__uClinux__ -Dlinux -mstack-check-l1 -DUCLINUX --save-temps -g3 -DTST_USE_NEWER64_SYSCALL=1 -D_FILE_OFFSET_BITS=64 -c -o posix_fadvise02_64.o posix_fadvise02.c
bfin-uclinux-gcc posix_fadvise02_64.o -L../../../../lib -lltp -Wl,-elf2flt="-s 32768" -static -o posix_fadvise02_64
bfin-uclinux-gcc -I../../../../include -I../../include -Wall -D__uClinux__ -Dlinux -mstack-check-l1 -DUCLINUX --save-temps -g3 -DTST_USE_NEWER64_SYSCALL=1 -D_FILE_OFFSET_BITS=64 -c -o posix_fadvise03_64.o posix_fadvise03.c
bfin-uclinux-gcc posix_fadvise03_64.o -L../../../../lib -lltp -Wl,-elf2flt="-s 32768" -static -o posix_fadvise03_64
bfin-uclinux-gcc -I../../../../include -I../../include -Wall -D__uClinux__ -Dlinux -mstack-check-l1 -DUCLINUX --save-temps -g3 -DTST_USE_NEWER64_SYSCALL=1 -D_FILE_OFFSET_BITS=64 -c -o posix_fadvise04_64.o posix_fadvise04.c
bfin-uclinux-gcc posix_fadvise04_64.o -L../../../../lib -lltp -Wl,-elf2flt="-s 32768" -static -o posix_fadvise04_64
On target blackfin, I get:
root:/> ./posix_fadvise01_init: /bin/watchdogd respawning too fast
64
posix_fadvise01_64 1 PASS : call succeeded expectedly
posix_fadvise01_64 2 PASS : call succeeded expectedly
posix_fadvise01_64 3 PASS : call succeeded expectedly
posix_fadvise01_64 4 PASS : call succeeded expectedly
posix_fadvise01_64 5 PASS : call succeeded expectedly
posix_fadvise01_64 6 PASS : call succeeded expectedly
root:/> ./posix_fadvise02_64
posix_fadvise02_64 1 FAIL : unexpected returnd value - -1 : Unknown error -1 - expected 9
posix_fadvise02_64 2 FAIL : unexpected returnd value - -1 : Unknown error -1 - expected 9
posix_fadvise02_64 3 FAIL : unexpected returnd value - -1 : Unknown error -1 - expected 9
posix_fadvise02_64 4 FAIL : unexpected returnd value - -1 : Unknown error -1 - expected 9
posix_fadvise02_64 5 FAIL : unexpected returnd value - -1 : Unknown error -1 - expected 9
posix_fadvise02_64 6 FAIL : unexpected returnd value - -1 : Unknown error -1 - expected 9
root:/> ./posix_fadvise03_64
posix_fadvise03_64 1 FAIL : unexpected return value - -1 : Unknown error -1, advise 6 - expected 22
posix_fadvise03_64 2 FAIL : unexpected return value - -1 : Unknown error -1, advise 7 - expected 22
posix_fadvise03_64 3 FAIL : unexpected return value - -1 : Unknown error -1, advise 8 - expected 22
posix_fadvise03_64 4 FAIL : unexpected return value - -1 : Unknown error -1, advise 9 - expected 22
posix_fadvise03_64 5 FAIL : unexpected return value - -1 : Unknown error -1, advise 10 - expected 22
posix_fadvise03_64 6 FAIL : unexpected return value - -1 : Unknown error -1, advise 11 - expected 22
posix_fadvise03_64 7 FAIL : unexpected return value - -1 : Unknown error -1, advise 12 - expected 22
posix_fadvise03_64 8 FAIL : unexpected return value - -1 : Unknown error -1, advise 13 - expected 22
posix_fadvise03_64 9 FAIL : unexpected return value - -1 : Unknown error -1, advise 14 - expected 22
posix_fadvise03_64 10 FAIL : unexpected return value - -1 : Unknown error -1, advise 15 - expected 22
posix_fadvise03_64 11 FAIL : unexpected return value - -1 : Unknown error -1, advise 16 - expected 22
posix_fadvise03_64 12 FAIL : unexpected return value - -1 : Unknown error -1, advise 17 - expected 22
posix_fadvise03_64 13 FAIL : unexpected return value - -1 : Unknown error -1, advise 18 - expected 22
posix_fadvise03_64 14 FAIL : unexpected return value - -1 : Unknown error -1, advise 19 - expected 22
posix_fadvise03_64 15 FAIL : unexpected return value - -1 : Unknown error -1, advise 20 - expected 22
posix_fadvise03_64 16 FAIL : unexpected return value - -1 : Unknown error -1, advise 21 - expected 22
posix_fadvise03_64 17 FAIL : unexpected return value - -1 : Unknown error -1, advise 22 - expected 22
posix_fadvise03_64 18 FAIL : unexpected return value - -1 : Unknown error -1, advise 23 - expected 22
posix_fadvise03_64 19 FAIL : unexpected return value - -1 : Unknown error -1, advise 24 - expected 22
posix_fadvise03_64 20 FAIL : unexpected return value - -1 : Unknown error -1, advise 25 - expected 22
posix_fadvise03_64 21 FAIL : unexpected return value - -1 : Unknown error -1, advise 26 - expected 22
posix_fadvise03_64 22 FAIL : unexpected return value - -1 : Unknown error -1, advise 27 - expected 22
posix_fadvise03_64 23 FAIL : unexpected return value - -1 : Unknown error -1, advise 28 - expected 22
posix_fadvise03_64 24 FAIL : unexpected return value - -1 : Unknown error -1, advise 29 - expected 22
posix_fadvise03_64 25 FAIL : unexpected return value - -1 : Unknown error -1, advise 30 - expected 22
posix_fadvise03_64 26 FAIL : unexpected return value - -1 : Unknown error -1, advise 31 - expected 22
root:/> ./posix_fadvise04_64
posix_fadvise04_64 1 FAIL : unexpected return value - -1 : Unknown error -1 - expected 29
posix_fadvise04_64 2 FAIL : unexpected return value - -1 : Unknown error -1 - expected 29
posix_fadvise04_64 3 FAIL : unexpected return value - -1 : Unknown error -1 - expected 29
posix_fadvise04_64 4 FAIL : unexpected return value - -1 : Unknown error -1 - expected 29
posix_fadvise04_64 5 FAIL : unexpected return value - -1 : Unknown error -1 - expected 29
posix_fadvise04_64 6 FAIL : unexpected return value - -1 : Unknown error -1 - expected 29
root:/> init: /bin/watchdogd respawning too fast
root:/> uname -a
Linux blackfin 2.6.28-rc2-ADI-2009R1-pre-svn5724 #59 Tue Dec 2 18:04:28 CST 2008 blackfin unknown
root:/>
Follow-ups
--- Sonic Zhang 2009-01-08 10:04:21
Grace will check this bug again after she apply the patch into latest LTP
source.
--- Mingquan Pan 2009-01-20 03:49:56
These three posix_fadvise cases still fail on the trunk after apply the patch.
--- Sonic Zhang 2009-02-09 23:10:47
Fixed
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
Makefile application/octet-stream 1330 Mingquan Pan
posix_fadvise02.c text/x-csrc 4648 Mingquan Pan
posix_fadvise01.c text/x-csrc 4225 Mingquan Pan
newer_64.mk application/octet-stream 1439 Mingquan Pan
posix_fadvise03.c text/x-csrc 4978 Mingquan Pan