linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.31k stars 1.01k forks source link

rm: cannot remove ‘/tmp/ltp-ERPU3UTBBb/sandbox’: Device or resource busy #69

Open alllecs opened 8 years ago

alllecs commented 8 years ago

Start LTP on Qemu Malta RAM=2048M. Debian Linux 4.6. Сommand run: /opt/ltp/runltp It starts running tests.

Gnu C                  gcc (Debian 4.9.2-10) 4.9.2
Gnu make               4.0
util-linux             linux 2.25.2
mount                  linux 2.25.2 (libmount 2.25.0: selinux, assert, debug)
modutils               18
e2fsprogs              1.42.12
Linux C Library        > libc.2.19
Dynamic linker (ldd)   2.19
Procps                 3.3.9
Net-tools              1.60
iproute2              iproute2-ss140804
Kbd                    1.15.5
Sh-utils               8.23
Modules Loaded         

free reports:
             total       used       free     shared    buffers     cached
Mem:       2059664     259136    1800528      13440      23168      85584
-/+ buffers/cache:     150384    1909280
Swap:            0          0          0

/proc/cpuinfo
system type             : MIPS Malta
machine                 : mti,malta
processor               : 0
cpu model               : MIPS GENERIC QEMU V0.0  FPU V0.0
BogoMIPS                : 1076.42
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 1, address/irw mask: [0x0ff8]
isa                     : mips1 mips2 mips3 mips4 mips5 mips32r1 mips32r2 mips64r1 mips64r2
ASEs implemented        : mips3d
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

After wait for a few hours I get:

<<<test_start>>>
tag=input06 stime=1461670111
cmdline="input06"
contacts=""
analysis=exit
<<<test_output>>>
modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.3/modules.dep.bin'
input06     0  TINFO  :  Trying to load uinput kernel module
input06     0  TINFO  :  Failed to load the uinput module
input06     1  TCONF  :  input_helper.c:167: Unable to find and open uinput
input06     2  TCONF  :  input_helper.c:167: Remaining cases not appropriate for configuration
incrementing stop
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=32 corefile=no
cutime=16 cstime=0
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: 20160126-113-g7671740

       ###############################################################

            Done executing testcases.
            LTP Version:  20160126-113-g7671740
       ###############################################################

rm: cannot remove ‘/tmp/ltp-ERPU3UTBBb/sandbox’: Device or resource busy

I tried to run away from input06 test. This error remains.

<<<test_start>>>
tag=getaddrinfo_01 stime=1465318359
cmdline="getaddrinfo_01"
contacts=""
analysis=exit
<<<test_output>>>
getaddrinfo_01    1  TFAIL  :  getaddrinfo_01.c:118: getaddrinfo IPv4 basic lookup ("debian") returns -2 ("Name or service not known")
getaddrinfo_01    2  TFAIL  :  getaddrinfo_01.c:577: getaddrinfo IPv6 basic lookup ("debian") returns -2 ("Name or service not known")
incrementing stop
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=1 cstime=4
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: 20160126-113-g7671740

       ###############################################################

            Done executing testcases.
            LTP Version:  20160126-113-g7671740
       ###############################################################

rm: cannot remove ‘/tmp/ltp-8ZPhQ3fCOY/sandbox’: Device or resource busy

How do I avoid the error ? Thanks!

kholmanskikh commented 8 years ago

Regarding getaddrinfo_01.

Just assign a resolvable hostname to you host.

Or add the current hostname to /etc/hosts:

echo "127.0.0.1 debian" >> /etc/hosts echo "::1 debian" >> /etc/hosts

metan-ucw commented 8 years ago

The input06 messages are red herring here, all it says is that it couldn't test input subsystem because there is no uinput compiled in kernel or as a module.

Looking into the LTP source the test that creates the sandbox directory is testscripts/test_fs_bind.sh. Most likely something went wrong in the test and something stayed being mounted under the sandbox directory after the test has exited, or the test became stuck before it had chance to clean up and is still running on background.

alllecs commented 8 years ago

I suggested that the reason for inconsistent running tests on different architectures. The script test_fs_bind.sh out by mistake after 5 tests. I get tests list of testscripts/test_fs_bind.sh. Arrange running tests starting at 1. The script test_fs_bind.sh not out by mistake. But get this error again.

Run command:

find "testcases/bin/fs_bind/move/" -type f -name 'test*'

result on Mips architecture:

testcases/bin/fs_bind/move/test06
testcases/bin/fs_bind/move/test01
testcases/bin/fs_bind/move/test09
testcases/bin/fs_bind/move/test07
testcases/bin/fs_bind/move/test08
testcases/bin/fs_bind/move/test10
testcases/bin/fs_bind/move/test13
testcases/bin/fs_bind/move/test20
testcases/bin/fs_bind/move/test16
testcases/bin/fs_bind/move/test22
testcases/bin/fs_bind/move/test12
testcases/bin/fs_bind/move/test03
testcases/bin/fs_bind/move/test19
testcases/bin/fs_bind/move/test17
testcases/bin/fs_bind/move/test11
testcases/bin/fs_bind/move/test05
testcases/bin/fs_bind/move/test14
testcases/bin/fs_bind/move/test18
testcases/bin/fs_bind/move/test21
testcases/bin/fs_bind/move/test04
testcases/bin/fs_bind/move/test02
testcases/bin/fs_bind/move/test15

result on Intel:

testcases/bin/fs_bind/move/test14
testcases/bin/fs_bind/move/test13
testcases/bin/fs_bind/move/test11
testcases/bin/fs_bind/move/test09
testcases/bin/fs_bind/move/test21
testcases/bin/fs_bind/move/test03
testcases/bin/fs_bind/move/test19
testcases/bin/fs_bind/move/test17
testcases/bin/fs_bind/move/test04
testcases/bin/fs_bind/move/test05
testcases/bin/fs_bind/move/test06
testcases/bin/fs_bind/move/test22
testcases/bin/fs_bind/move/test20
testcases/bin/fs_bind/move/test18
testcases/bin/fs_bind/move/test15
testcases/bin/fs_bind/move/test10
testcases/bin/fs_bind/move/test16
testcases/bin/fs_bind/move/test08
testcases/bin/fs_bind/move/test02
testcases/bin/fs_bind/move/test07
testcases/bin/fs_bind/move/test01
testcases/bin/fs_bind/move/test12
alllecs commented 8 years ago

I add umount "${sandbox}" in test_fs_bind.sh before rm -rf "${sandbox}" and fix problem with sandbox but i don't know correct solution. I have error rm: cannot remove ‘/tmp/ltp-EyOqzruY93/hugz82UVp’: Device or resource busy still.