Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2002 10:28:12 -0400 (EDT)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Tim Robbins <tjr@FreeBSD.ORG>
Cc:        walt <wa1ter@hotmail.com>, freebsd-current@FreeBSD.ORG
Subject:   Re: cvsup, mozilla, pan segfaulting since yesterday?
Message-ID:  <Pine.GSO.4.10.10209151024001.1206-100000@pcnet1.pcnet.com>
In-Reply-To: <20020915235325.A45719@dilbert.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10209151024001.1206-100000>