Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UnsatisfiedLinkError on Ubuntu x64
30-03-2016, 20:09 (This post was last modified: 30-03-2016 20:13 by Arzk.)
Post: #1
UnsatisfiedLinkError on Ubuntu x64
I'm trying to install MinimServer on my headless Ubuntu server running 12.04 x64, but I keep getting an error when running bin/startc:
Code:
java.lang.UnsatisfiedLinkError: /tmp/minim-native-7875338365460665013/libohNet.so: /tmp/minim-native-7875338365460665013/libohNet.so: failed to map segment from shared object: Operation not permitted

I'm using openjdk-7-jre-headless (java version "1.8.0_77"). I read from some old posts that libstdc++6 would be the fix for this error, but I already have the library installed. MinimServer version is 0.8.3f.
Find all posts by this user
Quote this message in a reply
30-03-2016, 22:17
Post: #2
RE: UnsatisfiedLinkError on Ubuntu x64
(30-03-2016 20:09)Arzk Wrote:  I'm trying to install MinimServer on my headless Ubuntu server running 12.04 x64, but I keep getting an error when running bin/startc:
Code:
java.lang.UnsatisfiedLinkError: /tmp/minim-native-7875338365460665013/libohNet.so: /tmp/minim-native-7875338365460665013/libohNet.so: failed to map segment from shared object: Operation not permitted

I'm using openjdk-7-jre-headless (java version "1.8.0_77"). I read from some old posts that libstdc++6 would be the fix for this error, but I already have the library installed. MinimServer version is 0.8.3f.

Is the filesystem containing '/tmp' mounted as 'noexec'?
Find all posts by this user
Quote this message in a reply
30-03-2016, 22:23
Post: #3
RE: UnsatisfiedLinkError on Ubuntu x64
Thanks, that seemed to be the problem! Quite obvious now when I think of it.
Find all posts by this user
Quote this message in a reply
30-03-2016, 22:32
Post: #4
RE: UnsatisfiedLinkError on Ubuntu x64
I'm somewhat concerned by this. The location of this temporary file changed in the last MinimServer update and I'm wondering whether I should revert back to the previous approach. Is it likely that many Linux users will have /tmp mounted as 'noexec'?
Find all posts by this user
Quote this message in a reply
01-04-2016, 07:49
Post: #5
RE: UnsatisfiedLinkError on Ubuntu x64
It's a security feature used in many "How to secure your server" guides, so maybe. I don't think it's usually set by default though. Could the location be set by the user, if they want to change the default value?
Find all posts by this user
Quote this message in a reply
01-04-2016, 09:09
Post: #6
RE: UnsatisfiedLinkError on Ubuntu x64
(01-04-2016 07:49)Arzk Wrote:  It's a security feature used in many "How to secure your server" guides, so maybe. I don't think it's usually set by default though. Could the location be set by the user, if they want to change the default value?

Thanks for this information.

Rather than adding another configuration option, I would be more inclined to revert back to the previous approach that "just works" in all cases without the user needing to do anything.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)