Skip to contentSkip to conversation

dead loop of closing/removing tmp file when TMPDIR is on nfsv4

LTP Simon Xu 1 participant 1 message Sep 19, 2012

lore
Share & tools
lore

Simon Xu

author
#0 lore raw

Hi,

If nfsv4 filesystem is used for TMPDIR, some testcases will have dead loop when closing/removing tmp dir or file, and LTP output file will quickly reach several gigabytes in less than 10 seconds.

For example:

access02:

<<<test_output>>>
access02 1 TBROK : chown(/mnt/nfsv4/ltp-7QMNLSoD0z/accsjrpxj, -1,
0) failed: errno=EPERM(1): Operation not permitted

access02    2  TBROK  :  Remaining cases broken
access02    0  TWARN  :  tst_brk: Invalid Type: 4. Using TBROK
access02    3  TBROK  :  tmpdir_cleanup: no user cleanup function called 
before exiting
access02    4  TBROK  :  unexpected signal 11 received (pid = 6283).
access02    5  TFAIL  :  close(test_file2) failed: errno=EBADF(9): Bad 

file descriptor
access02 6 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
access02 7 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
access02 8 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
access02 9 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
access02 10 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
access02 11 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
access02 12 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
access02 13 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
access02 14 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
access02 15 TFAIL : close(temp_file) failed: errno=EBADF(9): Bad
file descriptor
.....
.....

access01:

access01 0 TWARN : tst_rmdir:
rmobj(/mnt/nfsv4/ltp-pGpmqg8e6y/acc8wRrm5) failed:
lstat(/mnt/nfsv4/ltp-pGpmqg8e6y/acc8wRrm5) failed; errno=2: No such file or directory

access01    0  TWARN  :  tst_brk: Invalid Type: 4. Using TBROK
access01 6621  TBROK  :  tmpdir_cleanup: no user cleanup function called 

before exiting
access01 0 TWARN : tst_rmdir:
rmobj(/mnt/nfsv4/ltp-pGpmqg8e6y/acc8wRrm5) failed:
lstat(/mnt/nfsv4/ltp-pGpmqg8e6y/acc8wRrm5) failed; errno=2: No such file or directory

access01    0  TWARN  :  tst_brk: Invalid Type: 4. Using TBROK
access01 6622  TBROK  :  tmpdir_cleanup: no user cleanup function called 

before exiting
access01 0 TWARN : tst_rmdir:
rmobj(/mnt/nfsv4/ltp-pGpmqg8e6y/acc8wRrm5) failed:
lstat(/mnt/nfsv4/ltp-pGpmqg8e6y/acc8wRrm5) failed; errno=2: No such file or directory

access01    0  TWARN  :  tst_brk: Invalid Type: 4. Using TBROK
access01 6623  TBROK  :  tmpdir_cleanup: no user cleanup function called 

before exiting
......
......

nfs mount option: (rw,vers=4,addr=192.168.1.15,clientaddr=192.168.1.137) My first guess is that this has something to do with nfs silly renaming. Any idea?

Thanks
Simon

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list