JAVA Crash - hs_err_pid*.log - java

I have a system installed with ubuntu 18.04.1, Eclipse Photon Release (4.8.0) and Oracle Java 1.8.
Java gets crashed whenever I start my eclipse. Then it generates a log file named as hs_err_pid*.log (eg : hs_err_pid1773.log).
Eclipse gets closed as soon as java crashes.
Could you guys please help me to solve this. I suspect this is because of GTK version.
Any idea...?
These are the starting few lines of hs_err_pid1773.log
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00007f0937e2fa22, pid=1773, tid=0x00007f0935657700
JRE version: Java(TM) SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
Problematic frame:
V [libjvm.so+0x5cea22] G1UpdateRSOrPushRefOopClosure::do_oop(unsigned int*)+0x42
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp

Related

Java crash after Kernel Upgr. in Redhat 6.7

After an Kernel upgrade in our RedHat environment with release 6.7, we get the following error.
A fatal error has been detected by the Java Runtime Environment:
SIGBUS (0x7) at pc=0x00007f964ce0febc, pid=2568, tid=140283767625472
#
JRE version: (8.0_91-b14) (build )
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode linux-amd64 compressed oops)
Problematic frame:
j java.lang.Object.()V+0
#
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
Thanks in advance
I'm not sure if this actually a programming question. You also don't mention the exact kernel RPM version and the JVM you run, making diagnosis rather difficult.
But I assume this is a kernel regression introduced by the fixed for this vulnerability:
https://access.redhat.com/security/vulnerabilities/stackguard
For Red Hat Enterprise Linux 6.7 (EUS), you need to upgrade to kernel-2.6.32-573.43.3.el6 to address this regression:
https://rhn.redhat.com/errata/RHBA-2017-1718.html

Multithreaded Java Application uses only one core and gets stuck

We are running a multithreaded java application in a Linux environment (vm). We have 30 cores. Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Linux version 2.6.32-279.5.1.el6.x86_64 (mockbuild#x86-004.build.bos.redhat.com) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Tue Jul 24
13:57:35 EDT 2012
We are running our application inside Tomcat (7.0.42)
What we see is that sometimes only one of the processors gets used around 100% and in those situations the application becomes non responsive and needs to be restarted, the rest of the cores appear to be completely idle, while one of them seems to be intensively used.
We got a few thread dumps (we had to get them using kill -3 as jstack was getting connection errors), although they don’t show any obvious deadlock or issue.
When the application becomes non responsive we can’t attach to it using visual vm or jconsole.
We checked this article in java-monitor.com http://java-monitor.com/forum/showthread.php?t=317
In a couple of cases, we observed this behaviour within minutes of restart.
Following some of the instructions provided below, we identified the thread that was using the CPU, it was the "VM thread".
We updated the jvm to the lastest available version:
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
Since then we haven't been able to see the issue, again, although in some cases it previously took weeks to appear.
A couple of times during the last months we also got the below message after a few minutes of restarting our application
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fbe71501d19, pid=18022, tid=139946328471296
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 )
# Problematic frame:
# J java.lang.management.ThreadInfo.<init>(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;[Ljava/lang/Object;[I[Ljava/lang/Object;)V
#
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
on a different case:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f1c2f0debec, pid=16493, tid=139756998551296
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 )
# Problematic frame:
# V [libjvm.so+0x756bec] PhaseIdealLoop::build_loop_late_post(Node*)+0x13c
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
I would appreciate any idea or suggestion.
Thanks in advance.

Eclipse crash and close every time opened

I faced an fetal error with eclipse ide, when i try to open eclipse load GUI and then close, that occur each time opened eclipse ide.
Error Loading DDMS Preferences
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f5a0c9822a1, pid=4316, tid=140027354994432
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libsoup-2.4.so.1+0x6c2a1] soup_session_feature_detach+0x11
#
# 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:
# /opt/eclipse/hs_err_pid4316.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug
Work around
change eclipse owwner.
run eclipse as root.
Extract jdk again on /opt.
Made link to jre from /opt to /usr/bin.
But problem still exists, any help will be appreciated.
Based on this my problem had been solved.
For a workaround add the following to the end of your eclipse.ini
-Dorg.eclipse.swt.browser.DefaultType=mozilla
If
-Dorg.eclipse.swt.browser.DefaultType=mozilla
doesn't work and your OS is debian, try solution in this post:
http://forums.debian.net/viewtopic.php?f=8&t=115477

Java Runtime Environment SIGSEGV error on server startup

I'm using java version "1.7.0_45" with eclipse kepler and on server startup I'm getting the below error log.
Although I've found several posts[1, 2] regarding the same issue, I've tried everything from adding -Dorg.eclipse.swt.browser.DefaultType=mozilla, -XX:LoopUnrollLimit=1 and ulimit -c unlimited but nothing worked for me.
Is there any other work around ?
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=7084, tid=139749936641792
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000000
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
#
SIGSEV means that your program is producing a so called segmentation fault. Writing over array boundaries, OR invalid memory addresses, etc... So I think you have to re install eclipse first and then see if you have to reinstall java and eclipse both... if the first wont work for you.
I am not sure if this is the correct guess, I hope no one downvotes this...
I had a similar error while I started netbeans in Ubuntu 13.04. I fixed it with
sudo apt-get install openjdk-7-jdk
Try and see if it works.

Eclipse juno giving error in Suse 64bit

I have downloaded the new eclipse juno and jdk 7. But It is giving error while starting. Here is the ERROR.
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00002b6312df9c6a, pid=1648, tid=1074792768
JRE version: 7.0_05-b06
Java VM: Java HotSpot(TM) 64-Bit Server VM (23.1-b03 mixed mode linux-amd64 compressed oops)
Problematic frame:
C [libc.so.6+0x75c6a] _wordcopy_fwd_aligned+0x3a
Failed to write core dump. en disabCore dumps have beled. To enable core dumping, try "ulimit -c unlimited" before starting Java again.
An error report file with more information is saved as:
/home/jeshwanth/tools/eclipse/hs_err_pid1648.log.
Please help.
Thanks.
Seems to be related to:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335086
Try not to use the "Browse" button when choosing a workspace but type in the path to the workspace directly.
Had the same problem solved by avoiding the "Browse" button.
You should also need to install Java SE Runtime Environment 7 (JRE 7 (64 bit)) form oracle.com. And also check your eclipse juno is 64 bit version for linux.

Categories

Resources