-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
w32handle: double the available slots #4856
Conversation
Mono crashes if the system has more than ~128G of RAM. Doubling the number of slots fixes the SIGSEGV error on FreeBSD.
|
Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Contributors can ignore this message. |
|
@DragonSA, |
|
@DragonRsa thanks for the PR! Could you please provide more context with for example the SIGSEGV you are seeing? |
|
Please see PR 200937 on FreeBSD's bug tracker for the full details. In summary: the normal SIGSEGV warning message is encountered ("while executing native code") when running mono-lite on a system with high memory, caused by the code running out of slots. |
|
What your change implies is that you are creating more than 4 millions handles (file, console, pipe, mutex, semaphore, event, socket, etc.). Is that expected? |
|
If I understand the code correctly, we are changing the handles from:
Yes, that is expected. |
|
LGTM The proper fix is to remove this arbitrary limit as I bet we'll run into it on machines with 1TB of ram. |
|
build |
Mono crashes if the system has more than ~128G of RAM. Doubling the number of slots fixes the SIGSEGV error on FreeBSD. Commit migrated from mono/mono@8b27dee
Mono crashes if the system has more than ~128G of RAM. Doubling the
number of slots fixes the SIGSEGV error on FreeBSD.