From: Rishikesh K Rajak <risrajak@linux.vnet.ibm.com>
To: Garrett Cooper <yanegomi@gmail.com>,
Murlin Wenzel <mwenzel@novell.com>,
ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [patch] swapon03 cleanup v2
Date: Wed, 10 Mar 2010 17:45:44 +0530 [thread overview]
Message-ID: <20100310121544.GB11404@linux.vnet.ibm.com> (raw)
In-Reply-To: <20100225062615.GB3377@linux.vnet.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1046 bytes --]
On Thu, Feb 25, 2010 at 11:56:15AM +0530, Rishikesh K Rajak wrote:
> On Wed, Feb 24, 2010 at 05:08:56PM -0800, Garrett Cooper wrote:
> > On Wed, Feb 24, 2010 at 3:49 PM, Murlin Wenzel <mwenzel@novell.com> wrote:
> > > Added clean_swap() to cleanup routine. This makes sure all leftover swap files are removed.
> > >
> > > Signed-off-By: Murlin Ray Wenzel mwenzel@novell.com
> >
> > Committed -- thanks!
> > -Garrett
>
> Thanks Garret & Murlin.
Hi Murlin,
can you please look into this failure as it still fails on my SLES11 & RHEl5.4
boxes.
[root@mx3455a bin]# ./swapon03
swapon03 1 TFAIL : Failed swapon for file swapfile29: errno=EPERM(1):
Operation not permitted
swapon03 0 TWARN : tst_rmdir(): rmobj(/tmp/swasf2sLb) failed:
unlink(/tmp/swasf2sLb/swapfile22) failed; errno=1: Operation not permitted
swapon03 1 TFAIL : Failed to setup swaps
attached is the strace log.
-Rishi
--
Thanks & Regards
Rishi
LTP Maintainer
IBM, LTC, Bangalore
Please join IRC #ltp @ irc.freenode.net
[-- Attachment #2: strace-log-swapon03 --]
[-- Type: text/plain, Size: 6554 bytes --]
[root@mx3455a bin]# ./swapon03
swapon03 1 TFAIL : Failed swapon for file swapfile29: errno=EPERM(1): Operation not permitted
swapon03 0 TWARN : tst_rmdir(): rmobj(/tmp/swasf2sLb) failed: unlink(/tmp/swasf2sLb/swapfile22) failed; errno=1: Operation not permitted
swapon03 1 TFAIL : Failed to setup swaps
[root@mx3455a bin]# strace ./swapon03
execve("./swapon03", ["./swapon03"], [/* 24 vars */]) = 0
brk(0) = 0x110d000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3295231000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=54784, ...}) = 0
mmap(NULL, 54784, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3295223000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\354\1\0\0\0\0\0@"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2435432, ...}) = 0
mmap(NULL, 3668136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3294c93000
mprotect(0x7f3294e0a000, 2093056, PROT_NONE) = 0
mmap(0x7f3295009000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x176000) = 0x7f3295009000
mmap(0x7f329500e000, 18600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f329500e000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3295222000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3295221000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3295220000
arch_prctl(ARCH_SET_FS, 0x7f3295221700) = 0
mprotect(0x7f3295009000, 16384, PROT_READ) = 0
mprotect(0x7f3295232000, 4096, PROT_READ) = 0
munmap(0x7f3295223000, 54784) = 0
brk(0) = 0x110d000
brk(0x112e000) = 0x112e000
uname({sys="Linux", node="mx3455a.in.ibm.com", ...}) = 0
rt_sigaction(SIGHUP, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGILL, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTRAP, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGABRT, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGBUS, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR1, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR2, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSTKFLT, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTSTP, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTTIN, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTTOU, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGURG, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXCPU, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXFSZ, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGVTALRM, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPROF, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGIO, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPWR, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSYS, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_16, {0x404b10, [], SA_RESTORER|SA_RESTART, 0x7f3294cc65e0}, {SIG_DFL, [], 0}, 8) = 0
geteuid() = 0
gettimeofday({1268222682, 1696}, NULL) = 0
getpid() = 7784
mkdir("/tmp/swaXQgZbx", 0700) = 0
getgid() = 0
chown("/tmp/swaXQgZbx", 4294967295, 0) = 0
chmod("/tmp/swaXQgZbx", 0777) = 0
chdir("/tmp/swaXQgZbx") = 0
statfs(".", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=12598961, f_bfree=11482616, f_bavail=10842616, f_files=3203072, f_ffree=3044055, f_fsid={695368058, -1211746724}, f_namelen=255, f_frsize=4096}) = 0
statfs(".", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=12598961, f_bfree=11482616, f_bavail=10842616, f_files=3203072, f_ffree=3044055, f_fsid={695368058, -1211746724}, f_namelen=255, f_frsize=4096}) = 0
setresuid(-1, 0, -1) = 0
open("/proc/swaps", O_RDONLY) = 3
read(3, "Filename\t\t\t\tType\t\tSize\tUsed\tPrior"..., 8192) = 1643
close(3) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f32952219d0) = 7785
wait4(7785, swapon03 1 TFAIL : Failed swapon for file swapfile02: errno=EPERM(1): Operation not permitted
[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 7785
--- SIGCHLD (Child exited) @ 0 (0) ---
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3295230000
write(1, "swapon03 1 TFAIL : Failed t"..., 47swapon03 1 TFAIL : Failed to setup swaps
) = 47
exit_group(1) = ?
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2010-03-10 12:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-24 23:49 [LTP] [patch] swapon03 cleanup v2 Murlin Wenzel
2010-02-25 1:08 ` Garrett Cooper
2010-02-25 6:26 ` Rishikesh K Rajak
2010-03-10 12:15 ` Rishikesh K Rajak [this message]
2010-03-11 15:48 ` Murlin Wenzel
2010-03-13 7:32 ` Garrett Cooper
2010-03-13 17:26 ` Murlin Wenzel
2010-03-13 21:56 ` Garrett Cooper
2010-03-31 9:22 ` Rishikesh K Rajak
2010-04-01 14:19 ` Murlin Wenzel
2010-04-21 18:07 ` Murlin Wenzel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100310121544.GB11404@linux.vnet.ibm.com \
--to=risrajak@linux.vnet.ibm.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=mwenzel@novell.com \
--cc=yanegomi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox