From owner-freebsd-current Sun Sep 15 7:28:15 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03ACD37B400; Sun, 15 Sep 2002 07:28:14 -0700 (PDT) Received: from mail.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80F6243E65; Sun, 15 Sep 2002 07:28:13 -0700 (PDT) (envelope-from eischen@pcnet1.pcnet.com) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.3/8.12.1) with ESMTP id g8FESCop001690; Sun, 15 Sep 2002 10:28:12 -0400 (EDT) Date: Sun, 15 Sep 2002 10:28:12 -0400 (EDT) From: Daniel Eischen To: Tim Robbins Cc: walt , freebsd-current@FreeBSD.ORG Subject: Re: cvsup, mozilla, pan segfaulting since yesterday? In-Reply-To: <20020915235325.A45719@dilbert.robbins.dropbear.id.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 15 Sep 2002, Tim Robbins wrote: > On Sat, Sep 14, 2002 at 11:00:21PM -0700, walt wrote: > > > Tim Robbins wrote: > > > > > ...You might consider editing > > > src/lib/libc_r/uthread/pthread_private.h and making PTHREAD_STACK_DEFAULT > > > a bit larger (1048576 should be more than enough). > > > > I edited the file as directed and did a make && make install in > > /usr/src/lib/ and watched to make sure that libc_r recompiled. > > > > Unfortunately it made no difference--the apps still segfault. > > > > Is there something else I need to do? > > The changes have been backed out now, but I think that changing: > > _pthread_guard_default = getpagesize(); > > to: > > _pthread_guard_default = 32 * getpagesize(); > > in _thread_init() in uthread_init.c as well as changing PTHREAD_STACK_DEFAULT > might have made Mozilla work but it's fairly wasteful. There are portable ways to do this. If you need bigger thread stacks, then set them with pthread_attr_setstacksize(). If you need bigger guard pages, the set them with pthread_attr_setguardsize(). -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message