851830465
本帖最后由 851830465 于 2020-3-18 09:31 编辑

Java环境错误崩溃 求助dalao 系统:Ubuntu 18.04.1
Java版本  8u241



A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f24a8190dba, pid=3625, tid=0x00007f24a5e9d700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_241-b07) (build 1.8.0_241-b07)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.241-b07 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x9efdba]  ContiguousSpace::par_oop_iterate(MemRegion, ExtendedOopClosure*)+0x4a
#
# Core dump written. Default location: /root/Princess/sakura/core or core.3625
#
# An error report file with more information is saved as:
# /root/Princess/sakura/hs_err_pid3625.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp

hs_err_pid3625.log (85.61 KB, 下载次数: 2)


hs_err_pid27345.log (87.53 KB, 下载次数: 2)




Lurenccc
https://www.linuxidc.com/Linux/2018-05/152248.htm 根据教程重新安装一下看看

851830465
Lurenccc 发表于 2020-3-15 09:47
https://www.linuxidc.com/Linux/2018-05/152248.htm 根据教程重新安装一下看看

重装系统再重装后是这样
A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f0c643a6dba, pid=3453, tid=0x00007f0c6287f700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_241-b07) (build 1.8.0_241-b07)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.241-b07 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x9efdba]  ContiguousSpace::par_oop_iterate(MemRegion, ExtendedOopClosure*)+0x4a
#
# 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:
# /Princess/sakura/hs_err_pid3453.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

1784234383
先启用一下core dump,命令行sudo ulimit -c unlimited
然后再开一次端,然后让他再生成一次hs_err_pid****.log
然后看新的log里面的Core dump written. Default location:这里,找到dump出来的core.*****文件,gdb它,到里面再继续找错误原因
可以把这个记录发上来,帮你看看
欢迎追问

851830465
1784234383 发表于 2020-3-15 14:52
先启用一下core dump,命令行sudo ulimit -c unlimited
然后再开一次端,然后让他再生成一次hs_err_pid**** ...

        记录已上传

1784234383

/Princess/sakura/core or core.27345
dump在这里
gdb一下它 就能看到报错了

851830465
1784234383 发表于 2020-3-18 12:35
/Princess/sakura/core or core.27345
dump在这里
gdb一下它 就能看到报错了

[root@VM_0_13_centos Princess]# gdb
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-115.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) core.25145
/Princess/.25145: No such file or directory.
(gdb)

emm这个怎么办

851830465
1784234383 发表于 2020-3-18 12:35
/Princess/sakura/core or core.27345
dump在这里
gdb一下它 就能看到报错了

(emm原来不能移动出去gdb)
[root@VM_0_13_centos sakura]# gdb core.27986
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-115.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
[New LWP 27989]
[New LWP 27999]
[New LWP 27997]
[New LWP 27992]
[New LWP 27988]
[New LWP 28035]
[New LWP 27995]
[New LWP 28049]
[New LWP 28031]
[New LWP 27990]
[New LWP 28034]
[New LWP 28062]
[New LWP 28015]
[New LWP 28036]
[New LWP 28102]
[New LWP 28042]
[New LWP 28060]
[New LWP 28111]
[New LWP 28043]
[New LWP 27993]
[New LWP 28061]
[New LWP 28115]
[New LWP 28044]
[New LWP 28012]
[New LWP 28066]
[New LWP 28118]
[New LWP 28047]
[New LWP 28119]
[New LWP 28037]
[New LWP 28090]
[New LWP 28048]
[New LWP 28120]
[New LWP 28046]
[New LWP 28092]
[New LWP 28122]
[New LWP 28063]
[New LWP 28116]
[New LWP 28094]
[New LWP 28124]
[New LWP 28113]
[New LWP 28126]
[New LWP 28064]
[New LWP 28141]
[New LWP 28114]
[New LWP 28128]
[New LWP 28065]
[New LWP 28184]
[New LWP 28117]
[New LWP 28130]
[New LWP 28089]
[New LWP 28121]
[New LWP 28132]
[New LWP 28123]
[New LWP 28091]
[New LWP 28185]
[New LWP 28125]
[New LWP 28103]
[New LWP 28194]
[New LWP 28127]
[New LWP 28134]
[New LWP 27987]
[New LWP 28129]
[New LWP 28131]
[New LWP 28169]
[New LWP 28112]
[New LWP 28133]
[New LWP 27994]
[New LWP 28178]
[New LWP 28139]
[New LWP 28109]
[New LWP 28140]
[New LWP 28191]
[New LWP 28186]
[New LWP 28000]
[New LWP 28188]
[New LWP 28187]
[New LWP 27991]
[New LWP 28189]
[New LWP 27996]
[New LWP 28192]
[New LWP 28195]
[New LWP 28196]
[New LWP 27986]
[New LWP 28001]
[New LWP 28197]
[New LWP 27998]
Core was generated by `java -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:Par'.
Program terminated with signal 6, Aborted.
#0  0x00007f0932b15337 in ?? ()
"/Princess/sakura/core.27986" is a core file.
Please specify an executable to debug.
(gdb)

1784234383
851830465 发表于 2020-3-23 12:02
(emm原来不能移动出去gdb)
[root@VM_0_13_centos sakura]# gdb core.27986
GNU gdb (GDB) Red Hat Enterp ...

signal6?你是不是把内存分配太大了
这些七里八怪的java启动参数可以都删掉试试,只用java -Xmx最大内存G -jar 核心文件.jar开服试试