From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1S9uSW-0007KW-Eh for ltp-list@lists.sourceforge.net; Tue, 20 Mar 2012 08:30:24 +0000 Received: from mail1.windriver.com ([147.11.146.13]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1S9uSM-0003V6-43 for ltp-list@lists.sourceforge.net; Tue, 20 Mar 2012 08:30:24 +0000 Message-ID: <4F68400F.9080702@windriver.com> Date: Tue, 20 Mar 2012 16:30:07 +0800 From: Kang Kai MIME-Version: 1.0 References: In-Reply-To: Subject: Re: [LTP] Query regarding Open Posix Test Case failure (pthread_rwlock_rdlock) List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0100293330181244940==" Errors-To: ltp-list-bounces@lists.sourceforge.net To: Jubi Taneja Cc: ltp-list@lists.sourceforge.net --===============0100293330181244940== Content-Type: multipart/alternative; boundary="------------070209010605010100090909" --------------070209010605010100090909 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 2012?03?19? 16:11, Jubi Taneja wrote: > Hi > > In LTP(Jan 2012 release) Open Posix Test Suite, the test case > "pthread_rwlock_rdlock/2-1.c" > fails for Linux Kernel 3.0.18 for target ARM. > > > The exact output of the program is: > main: has priority: 3 > main: attempt read lock > main: acquired read lock > main: create wr_thread, with priority: 2 > wr_thread: attempt write lock > main: create rd_thread, with priority: 1 > rd_thread: attempt read lock > rd_thread: acquired read lock > rd_thread: unlock read lock > Test FAILED: rd_thread did not block on read lock, when a reader owns > the lock, and a higher > priority writer is waiting for the lock Hi Jubi, I am using eglibc and meet the same failure. My analysis is that This test case is to test option *Thread Execution Scheduling* of pthread rwlock. But eglibc/libc don't support this option. They provide a rwlock->__data.*__flags* option to identify perfer 'read lock' or write lock, and the default is 'read lock' first. So second reader can get the lock when a higher priority writer is waiting for the lock. Regards, Kai > > > > The path of the program si : > VDLTP_20120104/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock > > Ca anyone please explain why it fails at this point? I am unable to > catch the exact reason. > > Looking forward to your reply. > > Thanks, > Jubi > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list --------------070209010605010100090909 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On 2012年03月19日 16:11, Jubi Taneja wrote:
Hi

In LTP(Jan 2012 release) Open Posix Test Suite, the test case "pthread_rwlock_rdlock/2-1.c"
fails for Linux Kernel 3.0.18 for target ARM.


The exact output of the program is:
main: has priority: 3
main: attempt read lock
main: acquired read lock
main: create wr_thread, with priority: 2
wr_thread: attempt write lock
main: create rd_thread, with priority: 1
rd_thread: attempt read lock
rd_thread: acquired read lock
rd_thread: unlock read lock
Test FAILED: rd_thread did not block on read lock, when a reader owns the lock, and a higher
priority writer is waiting for the lock

Hi Jubi,

I am using eglibc and meet the same failure. My analysis is that
 
  This test case is to test option Thread Execution Scheduling of pthread rwlock.
  But eglibc/libc don't support this option. They provide a rwlock->__data.__flags option to identify
  perfer 'read lock' or write lock, and the default is 'read lock' first. So second reader can get the lock
  when a higher priority writer is waiting for the lock.

Regards,
Kai


 

The path of the program si :
VDLTP_20120104/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock

Ca anyone please explain why it fails at this point? I am unable to catch the exact reason.

Looking forward to your reply.

Thanks,
Jubi


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure


_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

--------------070209010605010100090909-- --===============0100293330181244940== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure --===============0100293330181244940== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list --===============0100293330181244940==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1S9uku-0002oI-E2 for ltp-list@lists.sourceforge.net; Tue, 20 Mar 2012 08:49:24 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by sog-mx-3.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1S9ukt-0003a4-2g for ltp-list@lists.sourceforge.net; Tue, 20 Mar 2012 08:49:24 +0000 Message-ID: <4F684453.2060003@cn.fujitsu.com> Date: Tue, 20 Mar 2012 16:48:19 +0800 From: Wanlong Gao MIME-Version: 1.0 References: <4F68400F.9080702@windriver.com> In-Reply-To: <4F68400F.9080702@windriver.com> Subject: Re: [LTP] Query regarding Open Posix Test Case failure (pthread_rwlock_rdlock) Reply-To: gaowanlong@cn.fujitsu.com List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ltp-list-bounces@lists.sourceforge.net To: Kang Kai , Jubi Taneja Cc: ltp-list@lists.sourceforge.net T24gMDMvMjAvMjAxMiAwNDozMCBQTSw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o+IAo+IAo+ IAo+IC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQo+IFRoaXMgU0YgZW1haWwgaXMgc3BvbnNvc3JlZCBi eToKPiBUcnkgV2luZG93cyBBenVyZSBmcmVlIGZvciA5MCBkYXlzIENsaWNrIEhlcmUgCj4gaHR0 cDovL3Auc2YubmV0L3NmdS9zZmQyZC1tc2F6dXJlCj4gCj4gCj4gCj4gX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KPiBMdHAtbGlzdCBtYWlsaW5nIGxpc3QK PiBMdHAtbGlzdEBsaXN0cy5zb3VyY2Vmb3JnZS5uZXQKPiBodHRwczovL2xpc3RzLnNvdXJjZWZv cmdlLm5ldC9saXN0cy9saXN0aW5mby9sdHAtbGlzdAoKCgotLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0K VGhpcyBTRiBlbWFpbCBpcyBzcG9uc29zcmVkIGJ5OgpUcnkgV2luZG93cyBBenVyZSBmcmVlIGZv ciA5MCBkYXlzIENsaWNrIEhlcmUgCmh0dHA6Ly9wLnNmLm5ldC9zZnUvc2ZkMmQtbXNhenVyZQpf X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpMdHAtbGlzdCBt YWlsaW5nIGxpc3QKTHRwLWxpc3RAbGlzdHMuc291cmNlZm9yZ2UubmV0Cmh0dHBzOi8vbGlzdHMu c291cmNlZm9yZ2UubmV0L2xpc3RzL2xpc3RpbmZvL2x0cC1saXN0Cg== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1S9XgY-0004aE-Eq for ltp-list@lists.sourceforge.net; Mon, 19 Mar 2012 08:11:22 +0000 Received: from mail-vx0-f175.google.com ([209.85.220.175]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1S9XgT-0002RL-30 for ltp-list@lists.sourceforge.net; Mon, 19 Mar 2012 08:11:22 +0000 Received: by vcbfl13 with SMTP id fl13so9421534vcb.34 for ; Mon, 19 Mar 2012 01:11:11 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 19 Mar 2012 13:41:11 +0530 Message-ID: From: Jubi Taneja Subject: [LTP] Query regarding Open Posix Test Case failure (pthread_rwlock_rdlock) List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3986587934481061205==" Errors-To: ltp-list-bounces@lists.sourceforge.net To: ltp-list@lists.sourceforge.net --===============3986587934481061205== Content-Type: multipart/alternative; boundary=20cf307f33d8f1fcd604bb941975 --20cf307f33d8f1fcd604bb941975 Content-Type: text/plain; charset=ISO-8859-1 Hi In LTP(Jan 2012 release) Open Posix Test Suite, the test case "pthread_rwlock_rdlock/2-1.c" fails for Linux Kernel 3.0.18 for target ARM. The exact output of the program is: main: has priority: 3 main: attempt read lock main: acquired read lock main: create wr_thread, with priority: 2 wr_thread: attempt write lock main: create rd_thread, with priority: 1 rd_thread: attempt read lock rd_thread: acquired read lock rd_thread: unlock read lock Test FAILED: rd_thread did not block on read lock, when a reader owns the lock, and a higher priority writer is waiting for the lock The path of the program si : VDLTP_20120104/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock Ca anyone please explain why it fails at this point? I am unable to catch the exact reason. Looking forward to your reply. Thanks, Jubi --20cf307f33d8f1fcd604bb941975 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi

In LTP(Jan 2012 release) Open Posix Test Suite, the test case &qu= ot;pthread_rwlock_rdlock/2-1.c"
fails for Linux Kernel 3.0.18 for = target ARM.


The exact output of the program is:
main: has pr= iority: 3
main: attempt read lock
main: acquired read lock
main: create wr_thre= ad, with priority: 2
wr_thread: attempt write lock
main: create rd_th= read, with priority: 1
rd_thread: attempt read lock
rd_thread: acquir= ed read lock
rd_thread: unlock read lock
Test FAILED: rd_thread did not block on read= lock, when a reader owns the lock, and a higher
priority writer is wai= ting for the lock

=A0

The path of the program si :
VDLTP_= 20120104/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlo= ck_rdlock

Ca anyone please explain why it fails at this point? I am unable to cat= ch the exact reason.

Looking forward to your reply.

Thanks,<= br>Jubi
--20cf307f33d8f1fcd604bb941975-- --===============3986587934481061205== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure --===============3986587934481061205== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list --===============3986587934481061205==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1SPZtW-0007BE-Fr for ltp-list@lists.sourceforge.net; Wed, 02 May 2012 13:47:02 +0000 Date: Wed, 2 May 2012 15:45:10 +0200 From: Cyril Hrubis Message-ID: <20120502134510.GE366@saboteur.suse.cz> References: <4F68400F.9080702@windriver.com> <4F684453.2060003@cn.fujitsu.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4F684453.2060003@cn.fujitsu.com> Subject: Re: [LTP] Query regarding Open Posix Test Case failure (pthread_rwlock_rdlock) List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Wanlong Gao Cc: ltp-list@lists.sourceforge.net, Kang Kai Hi! > This's a glibc's bug. http://sourceware.org/bugzilla/show_bug.cgi?id=13701 (for example) But nobody cared enough to fix it yet. -- Cyril Hrubis chrubis@suse.cz ------------------------------------------------------------------------------ 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 Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list