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 14:51:20 -0700
- Cc: Andreas Jaeger <aj at suse dot de>, <libc-alpha at sources dot redhat 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:
> An alternative is to declare that the caller is the initial thread
> if it cannot be proven that it isn't. [...]
No, I don't think this is good either. The bottom line is that once a
thread's stack is not in the boundaries we expect the fundamental
assumptions of the thread library are violated and all odds are off.
I'd be better to crash right away.
If there is a problem with the stack limits not being honored *this*
is the problem to fix. Everything else is curing the symptoms.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------