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

File descriptor leak for mmaped files #378

Open
jpalus opened this issue Oct 20, 2022 · 0 comments
Open

File descriptor leak for mmaped files #378

jpalus opened this issue Oct 20, 2022 · 0 comments

Comments

@jpalus
Copy link

jpalus commented Oct 20, 2022

I'm running rootless podman container backed by fuse-overlayfs within which I'm running process opening many files one by one, each being mmap()ed and immediately close()d but all mmap() are kept (to be specific that's linking rui314/mold#797). Now it all works fine within host system or in podman container with overlay driver (which I unfortunately cannot use in this particular case) or when files are not mmap()ed, but scenario fails with fuse-overlayfs due to -EMFILE (Too many open files). It appears that mmap() on file results in file descriptor being kept by fuse-overlayfs process even though file is close()d afterwards.

Is this something that can be avoided or is it perhaps shortcoming of fuse filesystems?

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

1 participant