解决方案-忽略信号:(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?)