Harmony icon indicating copy to clipboard operation
Harmony copied to clipboard

Unable to load shared library due to executable stack permission denied

Open robert94p opened this issue 1 year ago • 1 comments
trafficstars

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

robert94p avatar Oct 07 '24 10:10 robert94p

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

pardeike avatar Oct 07 '24 12:10 pardeike

Closed due to inactivity

pardeike avatar Nov 17 '24 22:11 pardeike