Java 运行时环境检测到致命错误:SIGSEGV (0xb)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4538392/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 06:50:16  来源:igfitidea点击:

A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb)

java

提问by ManianR

I am using RHEL 6 with 64 bit OS. For one of my application I had installed “jre-6u23-linux-x64.bin”. When I execute my application I am getting the below ERROR:

我在 64 位操作系统上使用 RHEL 6。对于我的一个应用程序,我安装了“jre-6u23-linux-x64.bin”。当我执行我的应用程序时,我收到以下错误:

 # A fatal error has been detected by the Java Runtime Environment:
 #  SIGSEGV (0xb) at pc=0x0000003222414d70, pid=4977, tid=140076581496592
 # JRE version: 6.0_23-b05
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (19.0-b09 mixed mode linux-amd64 compressed oops)
 # Problematic frame:**
 # C  [ld-linux-x86-64.so.2+0x14d70]
 # An error report file with more information is saved as
 # /root/Desktop/Madhu/SELVIEW10.0-B4/Linux/hs_err_pid4977.log
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 # The crash happened outside the Java Virtual Machine in native code.
 # See problematic frame for where to report the bug.

Can anyone have solution for this?

任何人都可以解决这个问题吗?

回答by Barend

Between

之间

The crash happened outside the Java Virtual Machine in native code.

崩溃发生在本地代码中的 Java 虚拟机之外。

and

An error report file with more information is saved as /root/Desktop/Madhu/SELVIEW10.0-B4/Linux/hs_err_pid4977.log

包含更多信息的错误报告文件保存为/root/Desktop/Madhu/SELVIEW10.0-B4/Linux/hs_err_pid4977.log

it looks like you're dealing with a defective native library. Have a look at that hs_err dump (it's plain text), it should point to the problem.

看起来您正在处理有缺陷的本机库。看看那个 hs_err 转储(它是纯文本),它应该指向问题。

Another thing to try: the Compressed OOPS optimization was added to the JVM fairly recently, try disabling that (pass -XX:-UseCompressedOopson the command line) and see if the problem persists.

另一件事要尝试:压缩 OOPS 优化最近被添加到 JVM,尝试禁用它(-XX:-UseCompressedOops在命令行上传递)并查看问题是否仍然存在。

回答by Tim

This issue is also discussed here: community.oracle.com thread

这里也讨论了这个问题:community.oracle.com thread

The suggested solution is to set LD_BIND_NOW=1:

建议的解决方案是设置 LD_BIND_NOW=1:

export LD_BIND_NOW=1
$JAVA_HOME/bin/java -jar yourapp.jar