Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sigsegv Java Fatal Error when using libjvm.so

Tags:

java

jvm

I am doing reboot tests on Sles12sp2 using STAF v3.4.24 and after some time I get this error:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f105e11e712, pid=6577, tid=0x00007f1027efe700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x63c712][thread 139707363079936 also had an error]
  IndexSet::alloc_block_containing(unsigned int)+0x42
#
# Core dump written. Default location: /root/core or core.6577
#
# An error report file with more information is saved as:
# /root/hs_err_pid6577.log

[error occurred during error reporting, id 0xb]
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# 

I have searched on Google and most of the links were about C library. Java version is 8u121. No core dump was found at the location proposed.

like image 246
Adriana Avatar asked Apr 12 '17 14:04

Adriana


People also ask

How do I fix a fatal error in Java Runtime Environment?

Most of the users have fixed the similar issue by uninstall older versions of Java and installing latest version. You may refer to the link to uninstall the older versions of Java. Refer to the link to install the latest version of Java. You may also refer to the link and check.

What is Exception_access_violation 0xc0000005?

EXCEPTION_ACCESS_VIOLATION is a Windows-specific error message, which may strike all OS versions (7, 8, 8.1, etc.). Usually, it is marked by a numeric error code 0xc0000005 and may be dubbed as Unhandled Exception Access Violation. This is the Windows error that users tend to experience from time to time.


Video Answer


1 Answers

From the logs you got crash in C2 compiler thread, during compilation of "com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator::handleStartElement" it could be sereous compilation bug. Without proper reporducer it will be difficult to identify the root cause in compiler and fix as wee.

As a work around you should exclude this method from compilation using -XX:CompileCommand=exclude, com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator::handleStartElement check the proper usage of the -XX:CompileCommand=exclude command

like image 74
Fairoz Avatar answered Oct 09 '22 11:10

Fairoz