[PATCH] BZ 6973, 6976: Correct stack size and guard size computations for new threads

Siddhesh Poyarekar siddhesh@redhat.com
Tue May 22 08:12:00 GMT 2012


On Mon, 21 May 2012 22:56:40 -0700, Paul wrote:

> On Mon, May 21, 2012 at 10:07 PM, Siddhesh Poyarekar
> <siddhesh@redhat.com> wrote:
> 
> > 2012-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
> >
> >        [BZ #6973]
> >        [BZ #6976]
> >        * Makefile (tests): Add new test case target.
> >        * allocatestack.c (allocate_stack): Align request size
> > upwards to __static_tls_align. Allocate additional space for guard.
> >        * descr.h (struct pthread): Mention that reported_guardsize
> > is unused.
> >        * pthread_getattr_np.c (pthread_getattr_np): Use
> >        pthread->guardsize value to return guardsize. Return
> > stacksize after reducing guardsize.
> >        * tst-attr-stack.c: New test case.
> 
> This is closely related to BZ #11787, which Carlos has been looking
> at.
> 

Thanks for pointing me to that bz. I found a few problems with my patch
while reading through the bz and the specification, but I'll let this
drop since Carlos is already working on a comprehensive fix for this.
Maybe we should mark the bzs above as duplicate of 11787?

Regards,
Siddhesh



More information about the Libc-alpha mailing list