This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: linuxthreads patch
- To: smurf@work.noris.de (Matthias Urlichs)
- Subject: Re: linuxthreads patch
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 01 May 1998 14:13:30 -0700
- Cc: libc-hacker@gnu.org
- References: <19980424094519.27645@noris.de> <893403998.19829@noris.de> <6id98q$gbp$1@work.noris.de>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
smurf@work.noris.de (Matthias Urlichs) writes:
> Unfortunately, (th+1)-STACK_SIZE includes th, which gets unmapped, which
> kills the manager as soon as it tries to access th->p_guardsize.
> This works:
> [...]
> if (th->p_guardsize != 0)
> munmap(th->p_guardaddr, th->p_guardsize);
> munmap((caddr_t) ((char *)(th+1) - STACK_SIZE), STACK_SIZE);
Makes sense. The patch is applied. Thanks,
-- Uli
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------