public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: "Liang, RenXiu" <RenXiu.Liang@windriver.com>,
	Garrett Cooper <yanegomi@gmail.com>
Cc: ltp-list@lists.sf.net
Subject: Re: [LTP] [Patch] Fix mtest06 failure: caught unexpected signal -	11	--- exiting
Date: Mon, 06 Sep 2010 21:47:10 +0530	[thread overview]
Message-ID: <1283789832.4947.27.camel@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <52CF90264091A14888078A031D780F4305936FA5@ism-mail03.corp.ad.wrs.com>

I think we missed this as well.

Regards--
Subrata

On Tue, 2010-08-17 at 07:57 +0200, Liang, RenXiu wrote:
> In mtest06/mmap1.c, when handling the signal 11 in sig_handler, it
> doesn't cover another two race conditions:
> one is si_code equals "SEGV_MAPERR" but si_address does not equal to
> map_address;
> and one is si_code equals to "SEGV_ACCERR"; see below error log:
> 
> <<<test_start>>>
> tag=mtest06 stime=1270902396
> cmdline="  mmap1 -x 0.05"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> mmap1       0  INFO  :  pid[5456]: map, change contents, unmap files
> 1000 times
> mmap1       0  INFO  :  created thread[1216369840]
> mmap1       0  INFO  :  pid[5456] - read contents of memory 0x48002000
> 1000 times
> mmap1       0  INFO  :  page fault occurred at 0x48002000
> mmap1       0  INFO  :  page fault occurred at 0x48002000
> mmap1       0  INFO  :  page fault occurred at 0x48002000
> mmap1       0  INFO  :  page fault occurred at 0x48002000
> ......
> mmap1       0  INFO  :  page fault occurred at 0x48002000
> mmap1       0  INFO  :  page fault occurred at 0x48002000
> caught unexpected signal - 11 --- exiting
> <<<execution_status>>>
> duration=1 termination_type=exited termination_id=255 corefile=no
> cutime=0 cstime=4
> <<<test_end>>>
> 
> After cover all the three race conditions in one case in
> sig_handler(), run mtest06 repeatedly, test will not fail by catching
> signal 11.
> 
> See attached patch.
> 
> Thanks,
> Renxiu
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2010-09-06 16:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <52CF90264091A14888078A031D780F4305936FA4@ism-mail03.corp.ad.wrs.com>
2010-08-17  5:57 ` [LTP] [Patch] Fix mtest06 failure: caught unexpected signal - 11 --- exiting Liang, RenXiu
2010-09-06 16:17   ` Subrata Modak [this message]
2010-08-18  7:33 renxiu liang
2010-08-18  8:35 ` Garrett Cooper
2010-08-26  3:36 ` Garrett Cooper
2010-08-31  1:51   ` renxiu liang
2010-09-01  7:26     ` Garrett Cooper
2010-09-01  7:27       ` Garrett Cooper
     [not found]         ` <1284874992.12271.5.camel@PEK-RLIANG-D1>
     [not found]           ` <4C95AF8A.8000803@in.ibm.com>
     [not found]             ` <1284878205.12271.9.camel@PEK-RLIANG-D1>
     [not found]               ` <4C95B7D9.5060801@in.ibm.com>
2010-09-19  7:17                 ` Suzuki Poulose
2010-09-25  3:43                   ` renxiu liang
  -- strict thread matches above, loose matches on Subject: below --
2010-09-06 16:16 Subrata Modak

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=1283789832.4947.27.camel@subratamodak.linux.ibm.com \
    --to=subrata@linux.vnet.ibm.com \
    --cc=RenXiu.Liang@windriver.com \
    --cc=ltp-list@lists.sf.net \
    --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