Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t/18.t often fails with "Less fd's in child than caches:" or "Less fd's in child than caches:" #27

Open
soig opened this issue Mar 29, 2022 · 1 comment

Comments

@soig
Copy link

soig commented Mar 29, 2022

See eg: # Failed test 'More fd's than caches: 0 > 20'
https://www.cpantesters.org/distro/C/Cache-FastMmap.html?oncpan=1&distmat=1&version=1.57&grade=3
https://www.cpantesters.org/cpan/report/36e9b006-49e2-11ec-bb92-6c451f24ea8f
https://www.cpantesters.org/cpan/report/39c8dbfc-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/35907400-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/3171502e-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/2d65d680-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/1a1928f2-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/1432a6fc-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/0e9f479a-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/1f9a48e2-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/2955f96c-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/23be3b54-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/0938e3f6-246d-11ec-9932-30331f24ea8f
https://www.cpantesters.org/cpan/report/025be0ba-246d-11ec-9932-30331f24ea8f
(…)

Alternatively it can fails with "Less fd's in child than caches:"
See eg: https://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20220329135017.tv.duvel.4059698/log/perl-Cache-FastMmap-1.570.0-2.mga9/build.x86_64.0.20220329135335.log

Failed test 'Less fd's in child than caches: 29 < 20'

build.x86_64.0.20220329135335.log

filipecustodio added a commit to filipecustodio/cache-fastmmap that referenced this issue Jan 11, 2025
Fix issue robmueller#27 regarding incorrect fd count.
@filipecustodio
Copy link

I was able to reproduce this problem consistently using docker alpine images and two different architectures (linux/amd64 and linux/arm). The problem is that test 18 does not take into account the number of file descriptors opened by the perl interpreter, which may vary depending on the architecture.
For instance: in linux/amd64, the following command: perl -e 'print scalar(() = glob qq{/proc/$$/fd/*});' results in 8, and in linux/arm the result is 4.
I proposed a fixed version of t/18.t to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants