调试openjdk11源码报段错误异常Segmentation fault解决方案

本文介绍了在CentOS7环境下编译OpenJDK11源码并解决SegmentationFault异常的步骤,包括使用gdb进行调试和处理SIGSEGV信号。
摘要由CSDN通过智能技术生成

解决方案-忽略信号:(gdb) handle SIGSEGV pass noprint nostop

##openjdk11源码编译简单教程

传送门centos7下openjdk11源码下载编译安装_openjdk11下载-CSDN博客

##调试openjdk11源码报段错误异常Segmentation fault解决方案

Program received signal SIGSEGV, Segmentation fault

错误如下

[yym@localhost ~]$ gdb /home/yym/code/jdk11u-master/build/linux-x86_64-normal-server-slowdebug/jdk/bin/java
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.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/>...
Reading symbols from /home/yym/code/jdk11u-master/build/linux-x86_64-normal-server-slowdebug/jdk/bin/java...Reading symbols from /home/yym/code/jdk11u-master/build/linux-x86_64-normal-server-slowdebug/jdk/bin/java.debuginfo...done.
done.
(gdb) set args GDBDebugJava
(gdb) r
Starting program: /home/yym/code/jdk11u-master/build/linux-x86_64-normal-server-slowdebug/jdk/bin/java GDBDebugJava
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff7feb700 (LWP 1969)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7feb700 (LWP 1969)]
0x00007fffe100064d in ?? ()
Missing separate debuginfos, use: debuginfo-install zlib-1.2.7-21.el7_9.x86_64
(gdb) bt
#0  0x00007fffe100064d in ?? ()
#1  0x0000000000000246 in ?? ()
#2  0x00007fffe1000744 in ?? ()
#3  0x00007ffff0031000 in ?? ()
#4  0x00007ffff7fea3c0 in ?? ()
#5  0x00007ffff63127cf in VM_Version::get_processor_features () at /home/yym/code/jdk11u-master/src/hotspot/cpu/x86/vm_version_x86.cpp:618
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

  • 7
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值