what i discovered is that when running the test suite on qemu sparc the test tst-rlimit.c runs into an endless loop
here is what is happening on my build
int main(void)
{
int rnum = -1;
struct rlimit rlim;
int i, ret;
/* Find a resource with hard limit set to infinity */
for (i = 0; i < nresources; ++i) {
ret = getrlimit(resources[i], &rlim);
if ((!ret) && (rlim.rlim_max == RLIM_INFINITY)) {
rnum = resources[i];
break;
}
}
the variable i is overwritten with 0 after the getrlimit() call
my guess is that rlim needs a 8 byte alignment on sparc
when i set the alignment for rlim to 8 bytes via gcc attributes the tests runs fine
for now i don't know if its a gcc , qemu or kernel issue