Hi Ramin,
the variable i is overwritten with 0 after the getrlimit() call my guess is that rlim needs a 8 byte alignment on sparc
Thanks for sharing this problem.
i'm using the current uclibc-ng master ( only a few commits are not merged )
Please point to the exact commit you are on. If you are somewhere between: 95e38b37 ("add support for systems without legacy setrlimit/getrlimit syscalls") and 8c2f6218 (setrlimit/getrlimit: fix prlimit64 syscall use for 32-bit CPUs) then I have a simple explanation for this problem, and it is already fixed by the 8c2f6218 and the following commits. Please check the 8c2f6218 commit description.
Regards, - Pavel
From: Ramin Moussavi lordrasmus@gmail.com Sent: Tuesday, November 14, 2023 11:47 PM To: Waldemar Brodkorb mail@waldemar-brodkorb.de Cc: devel@uclibc-ng.org devel@uclibc-ng.org Subject: [uclibc-ng-devel] Re: diable misc tests 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