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

Check if noexec is enabled before loading native libraries #28

Open
StrongestNumber9 opened this issue Jul 22, 2024 · 0 comments
Open
Assignees
Labels
assistance Extra attention, more information or help is needed enhancement New feature or request

Comments

@StrongestNumber9
Copy link

Description

Check if noexec is enabled before loading native libraries

Use case or motivation behind the feature request

Getting errors like
.cache/JNA/temp/jna2624433973614287324.tmp: failed to map segment from shared object: Operation not permitted

due to noexec being enabled in $HOME, stacktrace points it to being jpr_01

<snip>
  at com.sun.jna.Structure.<init>(Structure.java:204)
  at com.sun.jna.Structure.<init>(Structure.java:191)
  at com.sun.jna.Structure.<init>(Structure.java:183)
  at com.teragrep.jpr_01.JavaPcre$LibJavaPcre$OptionsStruct.<init>(JavaPcre.java:42)
  at com.teragrep.jpr_01.JavaPcre.<init>(JavaPcre.java:187)
  at com.teragrep.pth10.ast.commands.transformstatement.regex.RegexMatch.call(RegexMatch.java:70)
  at com.teragrep.pth10.ast.commands.transformstatement.regex.RegexMatch.call(RegexMatch.java:57)
<snip>

This doesn't seem to be a bug but I am also not sure how feasible it is to do a self sanity check

Additional context

https://github.com/teragrep/pth_10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assistance Extra attention, more information or help is needed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants