-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Keep getting 'ERR: Can't Protect', but not in gdb mode #9
Comments
Maybe SELinux is enable on your CentOS. |
@herumi return mprotect(reinterpret_cast<void*>(roundAddr), size + (iaddr - roundAddr), mode) == 0; Gives the following error for SELinux:
Setting
Should this be something to be aware of? |
I know the fact, but I think it is difficult and complex to avoid it, so I select a simple implementation now. I try to consider the problem again. Do you have any ideas? |
You're right.. I'm afraid enormous changes must be made in order to achieve this. For instance create a mapping in the first place statically. Anyway I had the initial issue resolved. |
Is there any explanation into this? I can't debug it with
gdb
since it runs fine in debug mode..I'm using 64-bit CentOS 6.4, with gcc 4.4.7
FYI I also tried in Win7 with msvc 10 and did not get that error either..
And FWIW output of this machine's
less /proc/cpuinfo
is listed belowThe text was updated successfully, but these errors were encountered: