All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: "zenglg.jy" <zenglg.jy@cn.fujitsu.com>
Cc: ltp-list <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH v3 2/2] clone/clone08.c: Add new flags
Date: Tue, 10 Dec 2013 02:54:05 -0500 (EST)	[thread overview]
Message-ID: <1984791658.2366560.1386662045610.JavaMail.root@redhat.com> (raw)
In-Reply-To: <121189672.2070796.1386605732731.JavaMail.root@redhat.com>





----- Original Message -----
> From: "Jan Stancek" <jstancek@redhat.com>
> To: "zenglg.jy" <zenglg.jy@cn.fujitsu.com>
> Cc: "ltp-list" <ltp-list@lists.sourceforge.net>
> Sent: Monday, 9 December, 2013 5:15:32 PM
> Subject: Re: [LTP] [PATCH v3 2/2] clone/clone08.c: Add new flags
> 
> 
> 
> I was running v3 with only "CLONE_THREAD" testcase enabled:
> -       {"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,
> -        child_clone_parent_settid},
> -#ifdef CLONE_STOPPED
> -       {"CLONE_STOPPED", CLONE_STOPPED | CLONE_VM | SIGCHLD,
> -        test_clone_stopped, child_clone_stopped},
> -#endif
> 
> and 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
> 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 error
> 4. 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

> 
> 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
> Ltp-list@lists.sourceforge.net
> 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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  parent reply	other threads:[~2013-12-10  7:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-09 12:06 [LTP] [PATCH v3 2/2] clone/clone08.c: Add new flags zenglg.jy
     [not found] ` <121189672.2070796.1386605732731.JavaMail.root@redhat.com>
2013-12-10  7:54   ` Jan Stancek [this message]
2013-12-10  8:05     ` zenglg.jy

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=1984791658.2366560.1386662045610.JavaMail.root@redhat.com \
    --to=jstancek@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=zenglg.jy@cn.fujitsu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.