i'm using the current uclibc-ng master ( only a few commits are not merged )
i wanted to report that issue later when know what is going wrong for now i just disabled the misc tests on sparc
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
Am Di., 14. Nov. 2023 um 14:27 Uhr schrieb Waldemar Brodkorb < wbx@uclibc-ng.org>:
Hi,
works for me. You need to use uclibc-ng master for the new rlimit tests.
I pushed them to github now.
best regards Waldemar
Ramin Moussavi wrote,
devel mailing list -- devel@uclibc-ng.org To unsubscribe send an email to devel-leave@uclibc-ng.org