This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linuxthreads patch


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]