Bug 1199897

Summary: [abrt] java-1.8.0-openjdk-headless: os::abort(bool)(): java killed by SIGABRT
Product: [Fedora] Fedora Reporter: johan <johan_vdp>
Component: java-1.8.0-openjdkAssignee: Deepak Bhole <dbhole>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: ahughes, dbhole, jerboaa, jvanek, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/517685a350b1ad064a6e8a482ac91496d0c5a5ea
Whiteboard: abrt_hash:b3fda792d5c00210b5911d9aee14b2227130c8e9
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-12 16:00:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: hs_err.log
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description johan 2015-03-09 08:05:19 UTC
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

Comment 1 johan 2015-03-09 08:05:23 UTC
Created attachment 999443 [details]
File: backtrace

Comment 2 johan 2015-03-09 08:05:24 UTC
Created attachment 999444 [details]
File: cgroup

Comment 3 johan 2015-03-09 08:05:26 UTC
Created attachment 999445 [details]
File: core_backtrace

Comment 4 johan 2015-03-09 08:05:27 UTC
Created attachment 999446 [details]
File: dso_list

Comment 5 johan 2015-03-09 08:05:28 UTC
Created attachment 999447 [details]
File: environ

Comment 6 johan 2015-03-09 08:05:30 UTC
Created attachment 999448 [details]
File: hs_err.log

Comment 7 johan 2015-03-09 08:05:31 UTC
Created attachment 999449 [details]
File: limits

Comment 8 johan 2015-03-09 08:05:33 UTC
Created attachment 999450 [details]
File: maps

Comment 9 johan 2015-03-09 08:05:34 UTC
Created attachment 999451 [details]
File: open_fds

Comment 10 johan 2015-03-09 08:05:36 UTC
Created attachment 999452 [details]
File: proc_pid_status

Comment 11 johan 2015-03-09 08:05:37 UTC
Created attachment 999453 [details]
File: var_log_messages

Comment 12 Deepak Bhole 2015-03-09 13:32:29 UTC
Hi Johan,

Can you post the console output if you run:

sh -x ./run_flesh_snatcher.sh

Comment 13 johan 2015-03-11 22:58:50 UTC
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
$

Comment 14 Deepak Bhole 2015-03-12 14:33:24 UTC
Thanks, does this error always happen?

Comment 15 johan 2015-03-12 16:00:20 UTC
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.

Comment 16 Deepak Bhole 2015-03-12 16:11:06 UTC
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).