clone/clone08.c: Add new flags
PATCH v3 2/2 clone/clone08.c: Add new flags
From 0b159a7cf724a698e9ce087932249a6d9f1b701e Mon Sep 17 00:00:00 2001
From: Zeng Linggang <[email protected]>
Date: Mon, 9 Dec 2013 19:37:38 +0800
Subject: [PATCH] clone/clone08.c: Add new flags
Add new case for clone(2)CLONE_PARENTCLONE_CHILD_SETTIDCLONE_PARENT_SETTIDCLONE_STOPPEDCLONE_THREAD
--- runtest/ltplite | 1 + runtest/stress.part3 | 1 + runtest/syscalls | 1 + testcases/kernel/syscalls/.gitignore | 1 + testcases/kernel/syscalls/clone/clone08.c | 301 ++++++++++++++++++++++++++++++ 5 files changed, 305 insertions(+) create mode 100644 testcases/kernel/syscalls/clone/clone08.c
runtest/ltplite +1 -0
@@ -127,6 +127,7 @@ clone04 clone04 clone05 clone05 clone06 clone06 clone07 clone07 +clone08 clone08 close01 close01 close02 close02
runtest/stress.part3 +1 -0
@@ -68,6 +68,7 @@ clone04 clone04 clone05 clone05 clone06 clone06 clone07 clone07 +clone08 clone08 close01 close01 close02 close02
runtest/syscalls +1 -0
@@ -85,6 +85,7 @@ clone04 clone04 clone05 clone05 clone06 clone06 clone07 clone07 +clone08 clone08 close01 close01 close02 close02
testcases/kernel/syscalls/.gitignore +1 -0
@@ -65,6 +65,7 @@ /clone/clone05 /clone/clone06 /clone/clone07 +/clone/clone08 /close/close01 /close/close02 /close/close08
testcases/kernel/syscalls/clone/clone08.c new file +301 -0
301 lines not on this page · raw message
Signature · 14 lines
1.8.2.1 ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
A message that is not in the archive (sent off-list or not yet received): [email protected]
----- Original Message -----
Quoted 27 lines
From: "Jan Stancek" <[email protected]>
To: "zenglg.jy" <[email protected]>
Cc: "ltp-list" <[email protected]>
Sent: Monday, 9 December, 2013 5:15:32 PM
Subject: Re: [LTP] [PATCH v3 2/2]clone/clone08.c: Add new flagsI was running v3 with only "
CLONE_THREAD" testcase enabled:(quoted diff) +0
-5- {"CLONE_PARENT", CLONE_PARENT | CLONE_VM | SIGCHLD, NULL, - child_clone_parent}, - {"CLONE_CHILD_SETTID", CLONE_CHILD_SETTID | CLONE_VM | SIGCHLD, NULL, - child_clone_child_settid}, - {"CLONE_PARENT_SETTID", CLONE_PARENT_SETTID | CLONE_VM | SIGCHLD,NULL,
(quoted diff) +0
-5- child_clone_parent_settid}, -#ifdef CLONE_STOPPED - {"CLONE_STOPPED", CLONE_STOPPED | CLONE_VM | SIGCHLD, - test_clone_stopped, child_clone_stopped}, -#endifand I see it failing/crashing sometimes. I usually see one of these failures:
1. clone08 4 TBROK : Failed to read from pipe at clone08.c:168:
errno=EAGAIN(11): Resource temporarily unavailable
2. clone08 1 TBROK : The other end of the pipe was closed unexpectedly
at clone08.c:168
Quoted 7 lines
3. clone08 4 TPASS : test CLONE_THREAD success clone08 1 TBROK : unexpected signal 11 received (pid = 8234). clone08 2 TBROK : Remaining cases broken clone08 1 TFAIL : son process exits error4. no error, but test doesn't execute as many times as specified on command line
5. clone08 1 TBROK : unexpected signal 4 received (pid = 28936).
Some of above are caused by multiple threads reusing same stack area. Trouble is that with single master child you can't be sure when CLONE_THREAD child finished using its stack.
The idea I mentioned in v2 was basically what you did, but the loop for testcases would be outside master child - which means spawning master_child for each testcase.
I'm travelling these days, but I can have a look at idea above later this week and see how viable it is.
Regards,
Jan
Quoted 4 lines
Regards,
Jan
Quoted 10 lines
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base. Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base. Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 43 lines · Jan Stancek
----- Original Message -----
Quoted 27 lines
From: "Jan Stancek" <[email protected]>
To: "zenglg.jy" <[email protected]>
Cc: "ltp-list" <[email protected]>
Sent: Monday, 9 December, 2013 5:15:32 PM
Subject: Re: [LTP] [PATCH v3 2/2]clone/clone08.c: Add new flagsI was running v3 with only "
CLONE_THREAD" testcase enabled:(quoted diff) +0
-5- {"CLONE_PARENT", CLONE_PARENT | CLONE_VM | SIGCHLD, NULL, - child_clone_parent}, - {"CLONE_CHILD_SETTID", CLONE_CHILD_SETTID | CLONE_VM | SIGCHLD, NULL, - child_clone_child_settid}, - {"CLONE_PARENT_SETTID", CLONE_PARENT_SETTID | CLONE_VM | SIGCHLD,NULL,
(quoted diff) +0
-5- child_clone_parent_settid}, -#ifdef CLONE_STOPPED - {"CLONE_STOPPED", CLONE_STOPPED | CLONE_VM | SIGCHLD, - test_clone_stopped, child_clone_stopped}, -#endifand I see it failing/crashing sometimes. I usually see one of these failures:
1. clone08 4 TBROK : Failed to read from pipe at clone08.c:168:
errno=EAGAIN(11): Resource temporarily unavailable
2. clone08 1 TBROK : The other end of the pipe was closed unexpectedly
at clone08.c:168Quoted 7 lines
3. clone08 4 TPASS : test CLONE_THREAD success clone08 1 TBROK : unexpected signal 11 received (pid = 8234). clone08 2 TBROK : Remaining cases broken clone08 1 TFAIL : son process exits error4. no error, but test doesn't execute as many times as specified on command line
5. clone08 1 TBROK : unexpected signal 4 received (pid = 28936).Some of above are caused by multiple threads reusing same stack area. Trouble is that with single master child you can't be sure when
CLONE_THREADchild finished using its stack.
Quoted 6 lines
The idea I mentioned in v2 was basically what you did, but the loop for testcases would be outside master child - which means spawning
master_childfor each testcase.I'm travelling these days, but I can have a look at idea above later this week and see how viable it is.
OK, thanks. I am working on it.
Best regards,
Zeng
Quoted 17 lines
Regards,
JanQuoted 14 lines
Regards,
Jan------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base. Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base. Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list