Linux开启coredump mkdir -p /home/data/corefile chmod 777 /home/data/corefile echo "ulimit -S -c unlimited > /dev/null 2>&1" >> /etc/profile source /etc/profile echo "1" > /proc/sys/kernel/core_uses_pid echo "/home/data/corefile/core-%e-%p_%t" > /proc/sys/kernel/core_pattern echo "1" > /proc/sys/fs/suid_dumpable
[root@localhost vpp_plugin]# gdb ./build-root/install-vpp_debug-native/vpp/bin/vpp /home/data/corefile/core-vpp_main-121285_1588051978 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 "aarch64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /root/vpp/vpp_plugin/build-root/install-vpp_debug-native/vpp/bin/vpp...done. warning: core file may not match specified executable file. [New LWP 121285] [New LWP 121286] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `./build-root/install-vpp_debug-native/vpp/bin/vpp -c /etc/vpp/startup.conf'. Program terminated with signal 6, Aborted. #0 0x0000ffffb9a65228 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55 55 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); Missing separate debuginfos, use: debuginfo-install keyutils-libs-1.5.8-3.el7.aarch64 libgcc-4.8.5-39.el7.aarch64 libselinux-2.5-14.1.el7.aarch64 libuuid-2.23.2-61.el7_7.1.aarch64 numactl-libs-2.0.12-3.el7_7.1.aarch64 pcre-8.32-17.el7.aarch64 (gdb) bt #0 0x0000ffffb9a65228 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55 #1 0x0000ffffb9a668a0 in __GI_abort () at abort.c:90 #2 0x0000000000407cfc in os_exit (code=1) at /root/vpp/vpp_plugin/src/vpp/vnet/main.c:379 #3 0x0000ffffba167980 in unix_signal_handler (signum=11, si=0xffff7a1ba620, uc=0xffff7a1ba6a0) at /root/vpp/vpp_plugin/src/vlib/unix/main.c:187 #4 <signal handler called> #5 __GI___pthread_mutex_lock (mutex=0x3ffff8060008) at pthread_mutex_lock.c:65 #6 0x0000ffffba09d4d4 in region_lock (rp=0x3ffff8060000, tag=6) at /root/vpp/vpp_plugin/src/svm/svm.c:105 #7 0x0000ffffba0a03c8 in svm_region_unmap_internal (rp_arg=0x3ffff8060000, is_client=1 '