This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
tst-pthread-getattr changes break sparc
- From: David Miller <davem at davemloft dot net>
- To: libc-alpha at sourceware dot org
- Cc: siddhesh at redhat dot com
- Date: Tue, 24 Jul 2012 16:53:26 -0700 (PDT)
- Subject: tst-pthread-getattr changes break sparc
The trick you use to try and avoid touching the allocated stack space
in allocate_and_test() doesn't work on sparc. Any alloca() call must
absolutely, at all times, be within the stack rlimit even if you do
not touch the allocated memory space explicitly.
At any moment we can trap into the operating system and that will
cause the current register window to be saved wherever the stack
pointer is. After the alloca() call, this stack pointer will be
beyond what is allowed by the rlimit setting.
And this causes tst-pthread-getattr as currently implemented to fail
on sparc.