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

Unable to load shared library due to executable stack permission denied #626

Open
robert94p opened this issue Oct 7, 2024 · 1 comment
Assignees

Comments

@robert94p
Copy link

An error occurs when attempting to add the patch:

Unhandled exception. HarmonyLib.HarmonyException: Patching exception in method System.Void Npgsql.NpgsqlCommand::TraceCommandStart(Npgsql.Internal.NpgsqlConnector connector) Unhandled exception. HarmonyLib.HarmonyException: Patching exception in method System.Void Npgsql.NpgsqlCommand::TraceCommandStart(Npgsql.Internal.NpgsqlConnector connector) ---> System.DllNotFoundException: Unable to load shared library '/tmp/mm-exhelper.so.QBfWQg' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: /tmp/mm-exhelper.so.QBfWQg: cannot enable executable stack as shared object requires: Permission denied ---> System.DllNotFoundException: Unable to load shared library '/tmp/mm-exhelper.so.FfwESi' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: /tmp/mm-exhelper.so.FfwESi: cannot enable executable stack as shared object requires: Permission denied at HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo) at HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo) at HarmonyLib.PatchClassProcessor.ProcessPatchJob(Job job) --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException(Exception exception, MethodBase original) at HarmonyLib.PatchClassProcessor.ProcessPatchJob(Job job) --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException(Exception exception, MethodBase original) at HarmonyLib.PatchClassProcessor.Patch()

Is there any way to bypass this? without disabling the security mechanism

@pardeike
Copy link
Owner

pardeike commented Oct 7, 2024

Can you please state a bit about your environment and all versions of software involved?

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

2 participants