-
Notifications
You must be signed in to change notification settings - Fork 94
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
Failed to unprotect memory #51
Comments
@houxinlin |
Thank you for getting back to me. I noticed there hasn't been much activity on your GitHub lately, so I thought you might not be maintaining this repository anymore. I'm running on an arm64 architecture with CentOS as the operating system, and I encountered this error. It works fine on x86 systems, though. |
Could you check the page size by running the following command?
If the output isn't 4096, could you replace The page size of ARM64 CPU seems 4KB or 64KB according to https://www.kernel.org/doc/html/next/arch/arm64/memory.html. |
After my modifications, it started functioning properly, but issues persist when the system has different PAGE_SIZE values. I attempted replacing all instances of 'page_size' with 'sysconf(_SC_PAGE_SIZE)' to dynamically fetch the size during runtime. After testing, it ran without errors, but could this approach lead to any other unexpected behaviors? |
No. It is okay. |
output
The text was updated successfully, but these errors were encountered: