Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932398 - dev-dotnet/dotnet-sdk-8.0.105 "No file descriptors available" during build
Summary: dev-dotnet/dotnet-sdk-8.0.105 "No file descriptors available" during build
Status: RESOLVED DUPLICATE of bug 928938
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 06:57 UTC by ktoupt
Modified: 2024-05-23 21:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.xz,102.44 KB, application/x-xz)
2024-05-22 06:57 UTC, ktoupt
Details
emerge --info (info.txt,7.24 KB, text/plain)
2024-05-22 06:58 UTC, ktoupt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ktoupt 2024-05-22 06:57:54 UTC
Created attachment 893695 [details]
build.log

[ebuild     U ] dev-dotnet/dotnet-sdk-8.0.105 [8.0.102-r1]

I didn't have much running in the background other than a couple of system
daemons and the emerge running in a tmux with everyone else logged out and on
the Linux console screen. So this is probably not the kernel running out of
file descriptors but some ulimit?
Comment 1 ktoupt 2024-05-22 06:58:59 UTC
Created attachment 893696 [details]
emerge --info
Comment 2 Maciej Barć gentoo-dev 2024-05-23 14:13:51 UTC
This is, as you have said, a issue with low ulimit.

The limits I set on my machine:

> sysctl fs.file-max=50000
> ulimit -n 500000

Remember to check the effective "ulimit -a" in the shell you are building the SDK in.

We already have had a simialar report (but could not find the bug, probably was on IRC) from the Gentoo CI. Not ure what is the current ulimit se ton the Gentoo tinderboxes but AFAIK the configs are available on GitHub.
We might add the ulimit check and/or increase to ebuild but IMHO it might be risky or malicious...?
Maybe a check would be sufficient. But we have to test for the minimum first :/
Comment 3 Maciej Barć gentoo-dev 2024-05-23 15:29:18 UTC

*** This bug has been marked as a duplicate of bug 928938 ***
Comment 4 ktoupt 2024-05-23 21:08:12 UTC
I increased the hard file limit by dropping a file in /etc/security/limits.d:

# ulimit -n
1024
# ulimit -Hn
1048576
# cat /etc/security/limits.d/50-nofile.conf
* hard nofile 1048576

Afterwards, I was able to build.

So I think the hard limit is what needs to be checked (if a check is added to
the ebuild)...
Comment 5 Maciej Barć gentoo-dev 2024-05-23 21:14:42 UTC
(In reply to ktoupt from comment #4)
> # ulimit -Hn
> 1048576

> So I think the hard limit is what needs to be checked (if a check is added to
> the ebuild)...

ktoupt, thanks a lot for the report!