编译frr

[ frr-stable-7.3]# make
true
make  all-am
make[1]: Entering directory `/root/frr/frr-stable-7.3‘
  CLIPPY   bgpd/bgp_debug_clippy.c
/bin/sh: line 1: 61329 Segmentation fault      lib/clippy ./python/clidef.py -o bgpd/bgp_debug_clippy.c bgpd/bgp_debug.c
make[1]: *** [bgpd/bgp_debug_clippy.c] Error 139
make[1]: Leaving directory `/root/frr/frr-stable-7.3‘
make: *** [all] Error 2
[ frr-stable-7.3]# make V=1
true
make  all-am
make[1]: Entering directory `/root/frr/frr-stable-7.3‘
lib/clippy ./python/clidef.py -o bgpd/bgp_debug_clippy.c bgpd/bgp_debug.c
make[1]: *** [bgpd/bgp_debug_clippy.c] Segmentation fault
make[1]: Leaving directory `/root/frr/frr-stable-7.3‘
make: *** [all] Error 2
[ frr-stable-7.3]# make V=2
true
make  all-am
make[1]: Entering directory `/root/frr/frr-stable-7.3‘
lib/clippy ./python/clidef.py -o bgpd/bgp_debug_clippy.c bgpd/bgp_debug.c
make[1]: *** [bgpd/bgp_debug_clippy.c] Segmentation fault
make[1]: Leaving directory `/root/frr/frr-stable-7.3‘
make: *** [all] Error 2
[ frr-stable-7.3]#
[ frr-stable-7.3]# find ./ -name clippy
./python/clippy
./lib/clippy
[ frr-stable-7.3]# ls python/clidef.py 
python/clidef.py
[ frr-stable-7.3]#
[ frr-stable-7.3]# lib/clippy ./python/clidef.py
Segmentation fault
[ frr-stable-7.3]# gdb lib/clippy ./python/clidef.py
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/frr/frr-stable-7.3/lib/clippy...done.
"/root/frr/frr-stable-7.3/./python/clidef.py" is not a core dump: File format not recognized
(gdb) r
Starting program: /root/frr/frr-stable-7.3/lib/clippy 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.6-13.el7.aarch64 elfutils-libelf-0.176-2.el7.aarch64 elfutils-libs-0.176-2.el7.aarch64 json-c-0.11-4.el7_0.aarch64 libattr-2.4.46-13.el7.aarch64 libcap-2.22-10.el7.aarch64 libgcc-4.8.5-39.el7.aarch64 libgcrypt-1.5.3-14.el7.aarch64 libgpg-error-1.12-3.el7.aarch64 libselinux-2.5-14.1.el7.aarch64 lz4-1.7.5-2.el7.aarch64 pcre-8.32-17.el7.aarch64 systemd-libs-219-67.el7_7.4.aarch64 xz-libs-5.2.2-1.el7.aarch64
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000000461784 in PyMem_RawMalloc (size=<optimized out>) at Objects/obmalloc.c:420
#2  _PyMem_RawStrdup (=0x5e2820 "UTF-8") at Objects/obmalloc.c:487
#3  0x0000000000500f24 in Py_SetStandardStreamEncoding (=0x5e2820 "UTF-8", 
    errors=0x0) at Python/pylifecycle.c:184
#4  0x0000000000420e58 in main (argc=1, argv=0xfffffffff598) at lib/clippy.c:52
(gdb)

相关推荐