This is the mail archive of the libc-alpha@sourceware.org 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]
Other format: [Raw text]

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.


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