Description of problem: start jMonkeyEngine flesh_snatcher game using provided java shell script (runs java with jar and adds native libs to library path). Immediate jvm crash follows: $ ./run_flesh_snatcher.sh Mar 09, 2015 9:03:32 AM com.jme.system.PropertiesGameSettings <init> INFO: PropertiesGameSettings created Mar 09, 2015 9:03:33 AM com.jme.system.PropertiesGameSettings load INFO: Read properties OpenJDK 64-Bit Server VM warning: You have loaded library /home/johan/bin/flesh_snatcher/lib/natives/liblwjgl64.so which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f200936d98c, pid=3290, tid=139775158757120 # # JRE version: OpenJDK Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13) # Java VM: OpenJDK 64-Bit Server VM (25.31-b07 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [ld-linux-x86-64.so.2+0x698c] _dl_map_object_from_fd+0x7ec # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /home/johan/bin/flesh_snatcher/hs_err_pid3290.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # ./run_flesh_snatcher.sh: line 2: 3290 Aborted (core dumped) java -jar -Xmx256m -Djava.library.path="lib/natives" flesh_snatcher.jar Version-Release number of selected component: java-1.8.0-openjdk-headless-1.8.0.31-5.b13.fc21 Additional info: reporter: libreport-2.3.0 backtrace_rating: 4 cmdline: java -jar -Xmx256m -Djava.library.path=lib/natives flesh_snatcher.jar crash_function: os::abort(bool) executable: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-5.b13.fc21.x86_64/jre/bin/java kernel: 3.18.7-200.fc21.x86_64 runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #2 os::abort(bool) at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-5.b13.fc21.x86_64/jre/lib/amd64/server/libjvm.so #3 VMError::report_and_die() at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-5.b13.fc21.x86_64/jre/lib/amd64/server/libjvm.so #4 JVM_handle_linux_signal at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-5.b13.fc21.x86_64/jre/lib/amd64/server/libjvm.so #5 signalHandler(int, siginfo_t*, void*) at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-5.b13.fc21.x86_64/jre/lib/amd64/server/libjvm.so #7 _dl_map_object_from_fd at /lib64/ld-linux-x86-64.so.2 #8 _dl_map_object at /lib64/ld-linux-x86-64.so.2 #9 dl_open_worker at /lib64/ld-linux-x86-64.so.2 #10 _dl_catch_error at /lib64/ld-linux-x86-64.so.2 #11 _dl_open at /lib64/ld-linux-x86-64.so.2 #12 dlopen_doit at /lib64/libdl.so.2
Created attachment 999443 [details] File: backtrace
Created attachment 999444 [details] File: cgroup
Created attachment 999445 [details] File: core_backtrace
Created attachment 999446 [details] File: dso_list
Created attachment 999447 [details] File: environ
Created attachment 999448 [details] File: hs_err.log
Created attachment 999449 [details] File: limits
Created attachment 999450 [details] File: maps
Created attachment 999451 [details] File: open_fds
Created attachment 999452 [details] File: proc_pid_status
Created attachment 999453 [details] File: var_log_messages
Hi Johan, Can you post the console output if you run: sh -x ./run_flesh_snatcher.sh
On another Fedora 21 PC, but with the same effect: $ sh -x ./run_flesh_snatcher.sh + java -jar -Xmx256m -Djava.library.path=lib/natives flesh_snatcher.jar Mar 11, 2015 11:54:03 PM com.jme.system.PropertiesGameSettings <init> INFO: PropertiesGameSettings created Mar 11, 2015 11:54:04 PM com.jme.system.PropertiesGameSettings load INFO: Read properties ** (java:10284): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. OpenJDK 64-Bit Server VM warning: You have loaded library /home/johan/bin/flesh_snatcher/lib/natives/liblwjgl64.so which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007ff664f4498c, pid=10284, tid=140695829473024 # # JRE version: OpenJDK Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13) # Java VM: OpenJDK 64-Bit Server VM (25.31-b07 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [ld-linux-x86-64.so.2+0x698c] _dl_map_object_from_fd+0x7ec # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /home/johan/bin/flesh_snatcher/hs_err_pid10284.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # ./run_flesh_snatcher.sh: line 2: 10284 Aborted (core dumped) java -jar -Xmx256m -Djava.library.path="lib/natives" flesh_snatcher.jar $
Thanks, does this error always happen?
Just tried, it always fails. It is java native stuff, from a game that is not in the fedora repositories. So don't spend too much time. It is just a game, that worked some years ago. I will (try) close this one myself.
Fair enough, thanks for closing it! FWIW, the error is in _dl_map_object_from_fd() which almost certainly arises due to native libs and would be unfixable in the JDK anyway (just as you stated).