This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Problem with stack size in pthreads
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: Re: Problem with stack size in pthreads
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Date: Thu, 12 Jul 2001 13:04:45 -0700 (PDT)
- cc: Andreas Jaeger <aj at suse dot de>, <libc-alpha at sources dot redhat dot com>, <Hui dot Huang at sum dot com>
On 12 Jul 2001, Ulrich Drepper wrote:
> Date: 12 Jul 2001 11:05:21 -0700
> From: Ulrich Drepper <drepper@redhat.com>
> Reply-To: Ulrich Drepper <drepper@cygnus.com>
> To: Andreas Jaeger <aj@suse.de>
> Cc: libc-alpha@sources.redhat.com, Hui.Huang@sum.com
> Subject: Re: Problem with stack size in pthreads
>
> Andreas Jaeger <aj@suse.de> writes:
>
> > If the stack pointer of the initial thread in function thread_self
> > (from internals.h) is below __pthread_initial_thread_bos, it's not
> > considered in the initial thread.
>
> This is not supposed to happen because we made a setrlimit() call.
> Testcase?
Perhaps the application made its own setrlimit() call. It would make sense
that it would play with this, given that it needs a lot of stack space.
We only set the soft limit, rlim_cur. If someone would do an strace on
this to confirm, that would be great.