Hi all:
I run the 1710 and master branch vpp, there is some segmentation fault about
scan_device, Is a known issue, and how to avoid it ?
(gdb) run -c /etc/vpp/startup.conf
Starting program: /usr/bin/vpp -c /etc/vpp/startup.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
vlib_plugin_early_init:356: plugin path /usr/lib/vpp_plugins
load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control Lists)
load_one_plugin:184: Loaded plugin: dpdk_plugin.so (Data Plane Development Kit
(DPDK))
load_one_plugin:184: Loaded plugin: flowprobe_plugin.so (Flow per Packet)
load_one_plugin:184: Loaded plugin: gtpu_plugin.so (GTPv1-U)
load_one_plugin:184: Loaded plugin: ila_plugin.so (Identifier-locator
addressing for IPv6)
load_one_plugin:184: Loaded plugin: ioam_plugin.so (Inbound OAM)
load_one_plugin:114: Plugin disabled (default): ixge_plugin.so
load_one_plugin:184: Loaded plugin: lb_plugin.so (Load Balancer)
load_one_plugin:184: Loaded plugin: libsixrd_plugin.so (IPv6 Rapid Deployment
on IPv4 Infrastructure (RFC5969))
load_one_plugin:184: Loaded plugin: memif_plugin.so (Packet Memory Interface
(experimetal))
load_one_plugin:184: Loaded plugin: nat_plugin.so (Network Address Translation)
load_one_plugin:184: Loaded plugin: pppoe_plugin.so (PPPoE)
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/acl_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/dpdk_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/flowprobe_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/gtpu_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/ioam_export_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/ioam_pot_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/ioam_trace_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/ioam_vxlan_gpe_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/lb_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/memif_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/nat_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/pppoe_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/udp_ping_test_plugin.so
/usr/bin/vpp[22917]: load_one_plugin:63: Loaded plugin:
/usr/lib/vpp_api_test_plugins/vxlan_gpe_ioam_export_test_plugin.so
Program received signal SIGSEGV, Segmentation fault.
scan_device (arg=0x7ffff7bb1260 <vlib_global_main>, dev_dir_name=0x7fffb597de98
"/sys/bus/pci/devices/0000:00:02.0", ignored=<optimized out>)
at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/linux/pci.c:603
603
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/linux/pci.c:
No such file or directory.
Missing separate debuginfos, use: debuginfo-install
vpp-17.10-rc2~8_g50328c9.x86_64
(gdb) bt
#0 scan_device (arg=0x7ffff7bb1260 <vlib_global_main>,
dev_dir_name=0x7fffb597de98 "/sys/bus/pci/devices/0000:00:02.0",
ignored=<optimized out>)
at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/linux/pci.c:603
#1 0x00007ffff79a18a0 in foreach_directory_file
(dir_name=dir_name@entry=0x7ffff79a2a4f "/sys/bus/pci/devices",
f=f@entry=0x7ffff795bff0 <scan_device>, arg=arg@entry=0x7ffff7bb1260
<vlib_global_main>, scan_dirs=scan_dirs@entry=0)
at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/unix/util.c:87
#2 0x00007ffff795b99f in linux_pci_init (vm=0x7ffff7bb1260 <vlib_global_main>)
at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/linux/pci.c:648
#3 0x00007ffff795967d in vlib_call_init_exit_functions (vm=0x7ffff7bb1260
<vlib_global_main>, head=<optimized out>, call_once=call_once@entry=1)
at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/init.c:57
#4 0x00007ffff79596c3 in vlib_call_all_init_functions (vm=<optimized out>)
at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/init.c:75
#5 0x00007ffff79623b5 in vlib_main (vm=vm@entry=0x7ffff7bb1260
<vlib_global_main>, input=input@entry=0x7fffb604dfa0)
at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/main.c:1748
#6 0x00007ffff7999413 in thread0 (arg=140737349620320) at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/unix/main.c:567
#7 0x00007ffff6777278 in clib_calljmp () at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vppinfra/longjmp.S:110
#8 0x00007fffffffd2d0 in ?? ()
#9 0x00007ffff799a155 in vlib_unix_main (argc=<optimized out>, argv=<optimized
out>)
at
/home/wanghui/vpp_1710/vpp/extras/rpm/vpp-17.10.0/build-data/../src/vlib/unix/main.c:630
#10 0x000634155d000100 in ?? ()
#11 0x0006348500000000 in ?? ()
#12 0x855d000100000000 in ?? ()
#13 0xfd00000000000635 in ?? ()
#14 0x0100000000000635 in ?? ()
#15 0x000000063d685d00 in ?? ()
#16 0x000000063d780000 in ?? ()
(gdb) quit
A debugging session is active.
Inferior 1 [process 22917] will be killed.
Quit anyway? (y or n) y
# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II]
(rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 Ethernet controller: Red Hat, Inc Virtio network device
00:05.0 Ethernet controller: Red Hat, Inc Virtio network device
00:06.0 SCSI storage controller: Red Hat, Inc Virtio SCSI
00:07.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:08.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon
王辉 wanghui
IT开发工程师 IT Development
Engineer
虚拟化南京四部/无线研究院/无线产品经营部 NIV Nanjing Dept. IV/Wireless Product R&D
Institute/Wireless Product Operation Division
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev