我正在使用 STAF v3.4.24
在 Sles12sp2
上进行重启测试,一段时间后我收到此错误:
# 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
#
我在 Google 上搜索过,大多数链接都是关于 C 库的。 Java 版本是 8u121
。在建议的位置未找到核心转储。
最佳答案
根据您在 C2 编译器线程中崩溃的日志,在编译“com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator::handleStartElement”期间,它可能是严重的编译错误。如果没有合适的重现器,将很难在编译器中识别根本原因并及时修复。
作为解决方法,您应该使用 -XX:CompileCommand=exclude 从编译中排除此方法,com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator::handleStartElement 检查 -XX 的正确用法:CompileCommand=排除命令
关于java - 使用 libjvm.so 时出现 Sigsegv Java fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43372354/