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: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Subject: Re: Problem with stack size in pthreads
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 12 Jul 2001 13:15:14 -0700
- Cc: Andreas Jaeger <aj at suse dot de>, <libc-alpha at sources dot redhat dot com>, <Hui dot Huang at sum dot com>
- References: <Pine.LNX.4.33.0107121119040.10248-100000@ashi.FootPrints.net>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Kaz Kylheku <kaz@ashi.footprints.net> writes:
> How about making checks for a stack pointer that is getting too
> close to __pthread_initial_thread_bos and then adjusting the value.
> This should be okay unless the pointer leaps by a huge amount, going from
> not-too-close to too-far in one step, or in multiple activations without
> any intermittent calls to thread_self.
Nothing which only works in some situations is even worth thinking
about. It just gives a wrong sense of security.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------