-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[vm] dartprecompiledruntime should use MAP_JIT #40562
Comments
mk |
@dcharkes Could you please explain why our AOT runtime needs |
The experimentation went through running the actual release SDK process (one needs a signing key). The experiment data from cl/293611898:
The previous discussion is here: #38314 (comment) I did not explore what exactly was causing the failure. Filing this issue came from the experiment and the documentation of the |
Though that is the interesting part we need to know. Our AOT runtime has generally speaking no need for making pages executable itself. From #38314 I can remember that there was an issue for signed dart executable to |
No, for dlopen we required
Yes, indeed. Unfortunately I do/did not have access to a signing key to experiment myself. We could possibly download an old SDK which does not have the right entitlements and try if we can catch the |
Would a release build with the different entitlements help at all? That'd be easier to do. |
Yes, having a release dartprecompiledruntime with @mkustermann How important do you feel it is that we spend time on figuring this out? |
I provided Daco with a |
Initial try. Indeed we get killed 9 with those entitlements.
The issue is not FFI related or opening of dylibs related. Hello world has the same issue:
I can dive deeper into this, but it will take time. |
Change dartprecompiledruntime to use MAP_JIT so we can change the MacOS entitlements from
allow-unsigned-executable-memory
toallow-jit
.cc @mkustermann @a-siva
The text was updated successfully, but these errors were encountered: