[PATCH v2] Fix stacksize returned for main process thread when RLIMIT_STACK is relevant

Carlos O'Donell carlos@systemhalted.org
Tue Jun 19 03:48:00 GMT 2012


On Mon, Jun 18, 2012 at 11:40 PM, Siddhesh Poyarekar
<siddhesh@redhat.com> wrote:
> Hi,
>
> This is version 2 of the patch. I have removed the conditional that
> Kosaki pointed out as unnecessary; everything else remains the same.
>
> nptl/ChangeLog:
>
> 2012-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
>
>        * Makefile (tests): Add test case.
>        * pthread_getattr_np.c (pthread_getattr_np): Deduct pages below
>        the __libc_stack_end page from stacksize.  Truncate stacksize
>        to make it page aligned when it is computed from RLIMIT_STACK.
>        * tst-pthread-getattr.c: New test case. Verify that stackaddr
>        is accessible.

Please add a license header to tst-pthread-getattr.c.

This patch looks good for 2.17 once we are out of the code freeze.

I'd suggest filing a bug to keep track of this, but I know you won't forget :-)

Cheers,
Carlos.



More information about the Libc-alpha mailing list