From owner-freebsd-threads@FreeBSD.ORG Tue Feb 17 16:49:54 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 2EFD816A4CE for ; Tue, 17 Feb 2004 16:49:54 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E358443D1F for ; Tue, 17 Feb 2004 16:49:53 -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 i1I0noSQ011531; Tue, 17 Feb 2004 19:49:50 -0500 (EST) Date: Tue, 17 Feb 2004 19:49:50 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Kris Gale In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: More on MySQL -- Fatal trap 12 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: Wed, 18 Feb 2004 00:49:54 -0000 On Tue, 17 Feb 2004, Daniel Eischen wrote: > On Tue, 17 Feb 2004, Kris Gale wrote: > > Does this look like a fixable problem with KSE > > to anyone on this list? > > I would like to see how MySQL works when using process > scope threads. Do you know enough to hack it to do that? Alternatively, this patch to libpthread should force all threads to be process scope. -- Dan Eischen Index: thread/thr_create.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_create.c,v retrieving revision 1.53 diff -u -r1.53 thr_create.c --- thread/thr_create.c 8 Jan 2004 15:37:09 -0000 1.53 +++ thread/thr_create.c 18 Feb 2004 00:45:48 -0000 @@ -128,6 +128,7 @@ new_thread->attr = _pthread_attr_default; else { new_thread->attr = *(*attr); + new_thread->attr &= ~PTHREAD_SCOPE_SYSTEM; if ((*attr)->sched_inherit == PTHREAD_INHERIT_SCHED) { /* inherit scheduling contention scop */ if (curthread->attr.flags &= PTHREAD_SCOPE_SYSTEM)