Standard file descriptor checks cause abort on startup with strict rlimit #96621
Labels
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-help-wanted
Call for participation: Help is requested to fix this issue.
P-low
Low priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Cause
PR 75295 added polls to the standard file descriptors on startup; if they are closed, it attempts to reopen them to
/dev/null
. IfRLIMIT_NOFILE
is too low, the polling (or opening) will cause an abort.Reported by @edre on URLO; diagnosed by @cuviper.
The
rlimit
could be checked ahead of time.Code
I tried this Docker configuration
I expected to see this happen: Successful execution
Instead, this happened: Process aborted
Version it worked on
It most recently worked on: Rust 1.47
Versions with regression
Rust 1.48 and forward.
Related issues
@rustbot modify labels: +regression-from-stable-to-stable -regression-untriaged
The text was updated successfully, but these errors were encountered: