From owner-freebsd-threads@FreeBSD.ORG Mon Jan 12 11:03:15 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D260216A4CE for ; Mon, 12 Jan 2004 11:03:15 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3F0C43D81 for ; Mon, 12 Jan 2004 11:01:39 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) i0CJ1cFR025403 for ; Mon, 12 Jan 2004 11:01:38 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0CJ1bqS025388 for freebsd-threads@freebsd.org; Mon, 12 Jan 2004 11:01:37 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 12 Jan 2004 11:01:37 -0800 (PST) Message-Id: <200401121901.i0CJ1bqS025388@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 19:03:16 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/06/13] kern/19247 threads uthread_sigaction.c does not do anything o [2002/01/16] kern/33951 threads pthread_cancel is ignored 2 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/07/18] kern/20016 threads pthreads: Cannot set scheduling timer/Can o [2000/08/26] misc/20861 threads libc_r does not honor socket timeouts o [2001/01/19] bin/24472 threads libc_r does not honor SO_SNDTIMEO/SO_RCVT o [2001/01/25] bin/24632 threads libc_r delicate deviation from libc in ha o [2001/01/25] misc/24641 threads pthread_rwlock_rdlock can deadlock o [2001/04/02] bin/26307 threads libc_r aborts when using the KDE media pl o [2001/10/31] bin/31661 threads pthread_kill signal handler doesn't get s o [2001/11/26] bin/32295 threads pthread dont dequeue signals o [2002/02/01] i386/34536 threads accept() blocks other threads o [2002/03/07] bin/35622 threads sigaltstack is missing in libc_r o [2002/05/25] kern/38549 threads the procces compiled whith pthread stoppe o [2002/06/27] bin/39922 threads [PATCH?] Threaded applications executed w o [2002/08/04] misc/41331 threads Pthread library open sets O_NONBLOCK flag o [2002/10/10] kern/43887 threads abnormal CPU useage when use pthread_mute o [2003/03/02] bin/48856 threads Setting SIGCHLD to SIG_IGN still leaves z o [2003/03/10] bin/49087 threads Signals lost in programs linked with libc a [2003/04/08] bin/50733 threads buildworld won't build, because of linkin o [2003/05/07] bin/51949 threads thread in accept cannot be cancelled o [2003/05/30] kern/52817 threads top(1) shows garbage for threaded process 19 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/05/25] misc/18824 threads gethostbyname is not thread safe o [2000/10/21] misc/22190 threads A threaded read(2) from a socketpair(2) f o [2001/09/09] bin/30464 threads pthread mutex attributes -- pshared o [2002/05/02] bin/37676 threads libc_r: msgsnd(), msgrcv(), pread(), pwri o [2002/07/16] misc/40671 threads pthread_cancel doesn't remove thread from 5 problems total. From owner-freebsd-threads@FreeBSD.ORG Mon Jan 12 22:00:11 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E812416A4D1 for ; Mon, 12 Jan 2004 22:00:10 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DD4A43D3F for ; Mon, 12 Jan 2004 22:00:08 -0800 (PST) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.31.45.197]) by comcast.net (sccrmhc13) with ESMTP id <2004011306000601600nj29ve>; Tue, 13 Jan 2004 06:00:06 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost.crodrigues.org [127.0.0.1])i0D608Kp023150 for ; Tue, 13 Jan 2004 01:00:08 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)i0D607kU023149 for freebsd-threads@freebsd.org; Tue, 13 Jan 2004 01:00:07 -0500 (EST) (envelope-from rodrigc) Date: Tue, 13 Jan 2004 01:00:07 -0500 From: Craig Rodrigues To: freebsd-threads@freebsd.org Message-ID: <20040113060007.GA23063@crodrigues.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: NPTL test failures with KSE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 06:00:11 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Just for kicks, I started looking at some of the tests included with the new Linux Native Posix Threading Library (NPTL). I cobbled together a Makefile that links -lkse, and edited test-skeleton.c so that the tests would compile on FreeBSD. The attached file has 4 tests which fail: tst-cancelx2: Didn't expect signal from child: got `Segmentation fault' tst-cancel12: thread not canceled tst-mutex3: 4th mutex_unlock didn't return EPERM tst-stack2: Fatal error 'Thread has returned from _thread_switch' at line 1095 in file /usr/src/lib/libpthread/thread/thr_kern.c (errno = 0) Didn't expect signal from child: got `Abort trap' Any idea if these failures point to problems in KSE, or if the tests are bogus? Thanks. -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org --YiEDa0DAkWCtVeE4-- From owner-freebsd-threads@FreeBSD.ORG Wed Jan 14 20:46:33 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7CA116A4CE for ; Wed, 14 Jan 2004 20:46:33 -0800 (PST) Received: from bento.FreeBSD.org (bento.freebsd.org [216.136.204.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4161343D6E; Wed, 14 Jan 2004 20:46:31 -0800 (PST) (envelope-from davidxu@viatech.com.cn) Received: from viatech.com.cn (localhost [127.0.0.1]) by bento.FreeBSD.org (8.12.10/8.12.10) with ESMTP id i0F4kRfx027976; Wed, 14 Jan 2004 20:46:30 -0800 (PST) (envelope-from davidxu@viatech.com.cn) Message-ID: <40061B12.4000903@viatech.com.cn> Date: Thu, 15 Jan 2004 12:46:10 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <4005D459.6010202@freebsd.org> In-Reply-To: <4005D459.6010202@freebsd.org> Content-Type: multipart/mixed; boundary="------------060703020702070301090800" cc: threads@freebsd.org Subject: Re: ptrace and thread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 04:46:33 -0000 This is a multi-part message in MIME format. --------------060703020702070301090800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit >On Wed, 14 Jan 2004, David Xu wrote: > > > >>I am current working on debug support for KSE thread program, however I >>found >>ptrace interface is not thread-aware, in a threaded program, I need to >>get/set registers >>set for individual threads, current ptrace can not support that >>features, there are two >>ways to support these requirements: >> >> > >Yes I tried to address this a bit around the time when I added the >single ttreading code. Ialso made several posts looking for advice >from gdb/ptrace experts but got very little response.. >As you noticed, the ptrace facility is almost completely useless >WRT threads.. > >it is possible to imagine an extension where you select a single thread >of interest but you would have to decide whether you want all the other >threads to be left running or left suspended.. >(you may need both possibilities to correctly debug a problem) > > I want to suspend all threads. >The problem is that the thread becomes invisible to the kernel when it >crosses over to userland so the UTS needs to take an active part, >(unless the kernel can recognise when the thread has yielded and the UTS >has been enterred. (possible I guess) at which time >single stepping would be turned off allowing the UTS to run at full >speed. > >The UTS would hav eto co-operate by using a method of re-enterring the >thread that allows the kernel to re-start single stepping.. > >What the other threads are doing in teh meanwhile is unknown. > > > May you have some ideas about how to let UTS run at full speed under debugger ? Dan and I ever considered that we needn't to support debugging UTS kernel, only user code need to be supported, when under gdb, we will use kse_switchin syscall to switch a thread context, this lets us to switch an userland context which single step enabled in eflags (i386), kse_switchin syscall need to be changed to support clearing context_in_userland flag, I will introduce this flag to kse_thr_mailbox, we also need to finallize mailbox layout as Dan and Marcel ever said. Besides this, I already have patch for gdb now to support debugging kse thread, it works but still has bug, I am testing it now on UP. David Xu --------------060703020702070301090800-- From owner-freebsd-threads@FreeBSD.ORG Fri Jan 16 00:11:01 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D3FF16A4CE for ; Fri, 16 Jan 2004 00:11:01 -0800 (PST) Received: from telecom.net.et (ns2.telecom.net.et [213.55.64.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEA5A43D31 for ; Fri, 16 Jan 2004 00:10:56 -0800 (PST) (envelope-from mtm@identd.net) Received: from [213.55.66.194] (HELO pool-151-200-10-97.res.east.verizon.net) by telecom.net.et (CommuniGate Pro SMTP 3.4.8) with ESMTP-TLS id 34517430; Fri, 16 Jan 2004 11:05:27 +0300 Received: from mobile.acsolutions.com (localhost [127.0.0.1]) ESMTP id i0G8Aqg6001896; Fri, 16 Jan 2004 11:10:54 +0300 (EAT) (envelope-from mtm@mobile.acsolutions.com) Received: (from mtm@localhost) by mobile.acsolutions.com (8.12.10/8.12.10/Submit) id i0G8Agf1001895; Fri, 16 Jan 2004 11:10:42 +0300 (EAT) (envelope-from mtm) Date: Fri, 16 Jan 2004 11:10:40 +0300 From: Mike Makonnen To: Craig Rodrigues Message-ID: <20040116081040.GB777@mobile.acsolutions.com> References: <20040113060007.GA23063@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040113060007.GA23063@crodrigues.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD/5.2-CURRENT (i386) cc: freebsd-threads@FreeBSD.org Subject: Re: NPTL test failures with KSE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 08:11:01 -0000 Diffs to your patches of NPTL would be nice so others can run the tests as well :) Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: 00E8 61BC 0D75 7FFB E4D3 6BF1 B239 D010 3215 D418 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon ! From owner-freebsd-threads@FreeBSD.ORG Fri Jan 16 07:08:21 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0619C16A4CE for ; Fri, 16 Jan 2004 07:08:21 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8979643D1D for ; Fri, 16 Jan 2004 07:08:19 -0800 (PST) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.31.45.197]) by comcast.net (sccrmhc13) with ESMTP id <2004011615081801600ghmlfe>; Fri, 16 Jan 2004 15:08:18 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost.crodrigues.org [127.0.0.1])i0GF8OKp046686; Fri, 16 Jan 2004 10:08:24 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)i0GF8O9G046685; Fri, 16 Jan 2004 10:08:24 -0500 (EST) (envelope-from rodrigc) Date: Fri, 16 Jan 2004 10:08:23 -0500 From: Craig Rodrigues To: Mike Makonnen Message-ID: <20040116150823.GA46662@crodrigues.org> References: <20040113060007.GA23063@crodrigues.org> <20040116081040.GB777@mobile.acsolutions.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040116081040.GB777@mobile.acsolutions.com> User-Agent: Mutt/1.4.1i cc: freebsd-threads@FreeBSD.org Subject: Re: NPTL test failures with KSE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 15:08:21 -0000 On Fri, Jan 16, 2004 at 11:10:40AM +0300, Mike Makonnen wrote: > Diffs to your patches of NPTL would be nice so others can run > the tests as well :) I submitted a tar file attachment in my previous e-mail that can compile on FreeBSD. I didn't patch all of the NPTL tests, since many of them depend on glibc specific header files to compile. I have the tar file here which has 5 nptl tests: http://crodrigues.org/freebsd/nptl-tests.tar.gz -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org From owner-freebsd-threads@FreeBSD.ORG Fri Jan 16 17:26:17 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D782C16A4CE for ; Fri, 16 Jan 2004 17:26:17 -0800 (PST) Received: from bento.FreeBSD.org (bento.freebsd.org [216.136.204.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12E3143D45 for ; Fri, 16 Jan 2004 17:26:17 -0800 (PST) (envelope-from davidxu@freebsd.org) Received: from freebsd.org (localhost [127.0.0.1]) by bento.FreeBSD.org (8.12.10/8.12.10) with ESMTP id i0H1QEfx012009 for ; Fri, 16 Jan 2004 17:26:15 -0800 (PST) (envelope-from davidxu@freebsd.org) Message-ID: <40088F27.90609@freebsd.org> Date: Sat, 17 Jan 2004 09:25:59 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-threads@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: MINSIGSTKSZ and PTHREAD_STACK_MIN X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2004 01:26:18 -0000 There is a conflict between MINSIGSTKSZ and PTHREAD_STACK_MIN, PTHREAD_STACK_MIN defined in pthread.h has a fixed value 1024, MINSIGSTKSZ is variable on per-architecture, on i386, it is defined in sys/i386/include/signal.h: #define MINSIGSTKSZ (512 * 4) so on i386, makecontext is failed when user specifies PTHREAD_STACK_MIN for new thread, result is we get following message in libkse: Fatal error 'Thread has returned from _thread_switch' at line 1099 in file /usr/home/davidxu/src/lib/libpthread/thread/thr_kern.c (errno = 0) This becauses context is not fully initialized in pthread_create. Either makecontext shouldn't check stacksize or we should synchoronize MINSIGSTKSZ and PTHREAD_STACK_MIN. David Xu From owner-freebsd-threads@FreeBSD.ORG Fri Jan 16 18:02:16 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5990416A4CE; Fri, 16 Jan 2004 18:02:16 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FC7E43D48; Fri, 16 Jan 2004 18:02:15 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i0H22Eiw021281; Fri, 16 Jan 2004 21:02:14 -0500 (EST) Date: Fri, 16 Jan 2004 21:02:14 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: David Xu In-Reply-To: <40088F27.90609@freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: MINSIGSTKSZ and PTHREAD_STACK_MIN X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2004 02:02:16 -0000 On Sat, 17 Jan 2004, David Xu wrote: > There is a conflict between MINSIGSTKSZ and PTHREAD_STACK_MIN, > PTHREAD_STACK_MIN defined in pthread.h has a fixed value 1024, > MINSIGSTKSZ is variable on per-architecture, on i386, it is defined in > sys/i386/include/signal.h: > #define MINSIGSTKSZ (512 * 4) > so on i386, makecontext is failed when user specifies PTHREAD_STACK_MIN > for new thread, result is we get following message in libkse: > > Fatal error 'Thread has returned from _thread_switch' at line 1099 in file > /usr/home/davidxu/src/lib/libpthread/thread/thr_kern.c (errno = 0) > > This becauses context is not fully initialized in pthread_create. > > Either makecontext shouldn't check stacksize or we should synchoronize > MINSIGSTKSZ and PTHREAD_STACK_MIN. I think PTHREAD_STACK_MIN should also be per-architecture and be >= MINSIGSTKSZ (otherwise threads wouldn't have enough stack to handle signals). -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Fri Jan 16 19:16:06 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 319A216A4CE for ; Fri, 16 Jan 2004 19:16:06 -0800 (PST) Received: from bento.FreeBSD.org (bento.freebsd.org [216.136.204.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D2CE43D55; Fri, 16 Jan 2004 19:16:05 -0800 (PST) (envelope-from davidxu@freebsd.org) Received: from freebsd.org (localhost [127.0.0.1]) by bento.FreeBSD.org (8.12.10/8.12.10) with ESMTP id i0H3Fwfx025142; Fri, 16 Jan 2004 19:16:00 -0800 (PST) (envelope-from davidxu@freebsd.org) Message-ID: <4008A8DF.5020705@freebsd.org> Date: Sat, 17 Jan 2004 11:15:43 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Craig Rodrigues References: <20040113060007.GA23063@crodrigues.org> <20040116081040.GB777@mobile.acsolutions.com> <20040116150823.GA46662@crodrigues.org> In-Reply-To: <20040116150823.GA46662@crodrigues.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: NPTL test failures with KSE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2004 03:16:06 -0000 Craig Rodrigues wrote: >On Fri, Jan 16, 2004 at 11:10:40AM +0300, Mike Makonnen wrote: > > >>Diffs to your patches of NPTL would be nice so others can run >>the tests as well :) >> >> > >I submitted a tar file attachment in my previous e-mail >that can compile on FreeBSD. I didn't patch all of the >NPTL tests, since many of them depend on glibc specific >header files to compile. > >I have the tar file here which has 5 nptl tests: > >http://crodrigues.org/freebsd/nptl-tests.tar.gz > > tst-cancel2.c's allocates100000 bytes on stack, FreeBSD pthread default stack size is 65536, you should increase stack size by using pthread_attr_setstacksize. David Xu From owner-freebsd-threads@FreeBSD.ORG Sat Jan 17 11:56:51 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16BD016A4CF for ; Sat, 17 Jan 2004 11:56:51 -0800 (PST) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id D250343D4C for ; Sat, 17 Jan 2004 11:56:48 -0800 (PST) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.31.45.197]) by comcast.net (sccrmhc11) with ESMTP id <2004011719564701100jd02te>; Sat, 17 Jan 2004 19:56:48 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost.crodrigues.org [127.0.0.1])i0HJuhZX028334 for ; Sat, 17 Jan 2004 14:56:47 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)i0HJuh1E028333 for freebsd-threads@freebsd.org; Sat, 17 Jan 2004 14:56:43 -0500 (EST) (envelope-from rodrigc) Date: Sat, 17 Jan 2004 14:56:43 -0500 From: Craig Rodrigues To: freebsd-threads@freebsd.org Message-ID: <20040117195642.GA28271@crodrigues.org> References: <20040113060007.GA23063@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040113060007.GA23063@crodrigues.org> User-Agent: Mutt/1.4.1i Subject: Re: NPTL test failures with KSE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2004 19:56:51 -0000 On Tue, Jan 13, 2004 at 01:00:07AM -0500, Craig Rodrigues wrote: > tst-mutex3: > 4th mutex_unlock didn't return EPERM The above error in the Linux NPTL tests is gone due to this fix from David Xu: davidxu 2004/01/16 19:09:57 PST FreeBSD src repository Modified files: lib/libpthread/thread thr_mutex.c Log: Return EPERM if mutex owner is not current thread but it tries to unlock the mutex, old code confuses some programs when it returns EINVAL. Noticed by: bland Revision Changes Path 1.45 +3 -18 src/lib/libpthread/thread/thr_mutex.c -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org