This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Initializing initial bottom of stack variable in pthread.c
On Tue, Aug 01, 2006 at 07:57:39AM -0700, Jay wrote:
> So the bottom of stack variable needs to be set to
> STACK_SIZE for the thread manager + 2 * STACK_SIZE - 1
> for the initial thread from the top of the stack (for
> a total of 3 * STACK_SIZE - 1)?
No. The stack size of the initial thread must be _at least_
STACK_SIZE. That's all.
> so is this a linuxthreads problem in glibc, or is it a
> problem with the stack space that is getting assigned
> by the kernel?
I can't follow your report at all, but you might want to look at the
recent discussion of allocations above and below the initial stack
pointer on the libc-ports mailing list.
--
Daniel Jacobowitz
CodeSourcery