Subject: Re: python, threads, zope, stack problems?
To: Christos Zoulas <>
From: Nathan J. Williams <>
List: current-users
Date: 05/29/2003 01:47:25 (Christos Zoulas) writes:

> In article <>,
> MLH <> wrote:
> >> 
> >> On 28 May 2003, MLH wrote:
> >> 
> >> > I am running NetBSD 1.6T (-current) and am trying to investigate
> >> > what look like stack problems with python threads in Zope.
> >> 
> >> They probalby are stack problems. The current pthread implementation gives
> >> the main process only 256k worth of stack, which python blows through.
> >
> >I was afraid of that, after watching the corresponding thread on
> >threads & stack issues in current. I hope the situation doesn't
> >drag itself out too long. We're stuck between 1.6.1 and -current
> >with nothing working on our development servers.
> >
> >Is there a way to bump up the limit so we can continue development
> >for now?
> I'd like to say yes, but the answer is no because the 256K limit is magic...

You can change the number (for all threads) by adjusting the
PT_STACKSIZE constant in lib/libpthread/pthread_int.h, but it has to
be a power of two - that part is much more magic than what particular
power of two is chosen.

        - Nathan