Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-489

CLI Command "test lookup table <fib-index>" crash when <fib-index> does not exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 17.01
    • 17.01
    • None
    • None

      "test lookup" CLI Command takes a FIB Index, instead of a Table Index like other commands. So if you accidentally use a Table Index, if that value does not exist as a FIB Index, VPP crashes.

       
      $ vppctl show ip fib summary
      ipv4-VRF:0, fib_index 0, flow hash: src dst sport dport proto 
          Prefix length         Count     
                         0               1
                         8               2
                        32               2
      ipv4-VRF:7, fib_index 1, flow hash: src dst sport dport proto 
          Prefix length         Count     
                         0               1
                         8               2
                        24               2
                        32               4
      $ vppctl test lookup 1.1.1.1 table 7
      exec error: Misc
      

      Log file:

       
      Oct 13 16:07:28 localhost vnet[17780]: received signal SIGSEGV, PC 0x7ff5abc068d8, faulting address 0x4
      Oct 13 16:07:28 localhost vpp: DPDK physical memory layout:
      Oct 13 16:07:28 localhost vpp: Segment 0: phys:0x2200000, len:2097152, virt:0x7ff529800000, socket_id:0, hugepage_sz:2097152, nchannel:0, nrank:0
      Oct 13 16:07:28 localhost vpp: Segment 1: phys:0x36e00000, len:2097152, virt:0x7ff529400000, socket_id:0, hugepage_sz:2097152, nchannel:0, nrank:0
      Oct 13 16:07:28 localhost vpp: Segment 2: phys:0x9e800000, len:2097152, virt:0x7ff529000000, socket_id:0, hugepage_sz:2097152, nchannel:0, nrank:0
      Oct 13 16:07:28 localhost vpp: Segment 3: phys:0x9ec00000, len:262144000, virt:0x7ff512000000, socket_id:0, hugepage_sz:2097152, nchannel:0, nrank:0
      Oct 13 16:07:28 localhost audit: ANOM_ABEND auid=4294967295 uid=0 gid=0 ses=4294967295 subj=system_u:system_r:unconfined_service_t:s0 pid=17780 comm="vpp_main" exe="/usr/bin/vpp" sig=6
      Oct 13 16:07:28 localhost audit: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@39-18029-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
      Oct 13 16:07:28 localhost systemd: Started Process Core Dump (PID 18029/UID 0).
      Oct 13 16:07:28 localhost systemd-coredump: Failed to compress /var/lib/systemd/coredump/.#core.vpp_main.0.c3f10d78edd54b828d31ec037b176111.17780.1476389248000000000000.lz4f3012567cb1dad94: Invalid argument
      Oct 13 16:07:28 localhost systemd-coredump: Cannot resolve systemd-coredump user. Proceeding to dump core as root: No such process
      Oct 13 16:07:28 localhost systemd-coredump: Failed to generate stack trace: invalid `Elf' handle
      Oct 13 16:07:28 localhost systemd-coredump: Process 17780 (vpp_main) of user 0 dumped core.
      Oct 13 16:07:28 localhost audit: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@39-18029-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
      Oct 13 16:07:29 localhost audit: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=vpp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
      Oct 13 16:07:29 localhost systemd: vpp.service: Main process exited, code=dumped, status=6/ABRT
      Oct 13 16:07:29 localhost systemd: vpp.service: Unit entered failed state.
      Oct 13 16:07:29 localhost systemd: vpp.service: Failed with result 'core-dump'.
      Oct 13 16:07:34 localhost systemd: vpp.service: Service hold-off time over, scheduling restart.
      Oct 13 16:07:34 localhost audit: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=vpp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
      Oct 13 16:07:34 localhost audit: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=vpp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
      Oct 13 16:07:34 localhost systemd: Stopped Vector Packet Processing Process.
      Oct 13 16:07:34 localhost systemd: Starting Vector Packet Processing Process...
      Oct 13 16:07:34 localhost systemd: Started Vector Packet Processing Process.
      Oct 13 16:07:34 localhost audit: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=vpp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
      Oct 13 16:07:34 localhost vpp: vlib_plugin_early_init:213: plugin path /usr/lib64/vpp_plugins
      Oct 13 16:07:34 localhost vpp: load_one_plugin:92: Loaded plugin: /usr/lib64/vpp_plugins/ioam_pot_plugin.so
      Oct 13 16:07:34 localhost vpp: load_one_plugin:92: Loaded plugin: /usr/lib64/vpp_plugins/ioam_export_plugin.so
      Oct 13 16:07:34 localhost vpp: load_one_plugin:92: Loaded plugin: /usr/lib64/vpp_plugins/ioam_trace_plugin.so
      Oct 13 16:07:34 localhost vpp: load_one_plugin:92: Loaded plugin: /usr/lib64/vpp_plugins/snat_plugin.so
      Oct 13 16:07:34 localhost vpp: load_one_plugin:92: Loaded plugin: /usr/lib64/vpp_plugins/lb_plugin.so
      Oct 13 16:07:34 localhost vpp: load_one_plugin:92: Loaded plugin: /usr/lib64/vpp_plugins/libsixrd_plugin.so
      Oct 13 16:07:34 localhost vpp: load_one_plugin:92: Loaded plugin: /usr/lib64/vpp_plugins/ila_plugin.so
      Oct 13 16:07:34 localhost vpp: EAL: Detected 4 lcore(s)
      Oct 13 16:07:34 localhost vpp: EAL: No free hugepages reported in hugepages-1048576kB
      Oct 13 16:07:34 localhost vpp: PMD: Initializing pmd_af_packet for eth_af_packet0
      Oct 13 16:07:34 localhost vnet[18044]: PMD: Initializing pmd_af_packet for eth_af_packet0
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet0: AF_PACKET MMAP parameters:
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet0:#011block size 4096
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet0:#011block count 256
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet0:#011frame size 2048
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet0:#011frame count 512
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet0: creating AF_PACKET-backed ethdev on numa socket 0
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet0: AF_PACKET MMAP parameters:
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet0:#011block size 4096
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet0:#011block count 256
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet0:#011frame size 2048
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet0:#011frame count 512
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet0: creating AF_PACKET-backed ethdev on numa socket 0
      Oct 13 16:07:34 localhost vpp: PMD: Initializing pmd_af_packet for eth_af_packet1
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet1: AF_PACKET MMAP parameters:
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet1:#011block size 4096
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet1:#011block count 256
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet1:#011frame size 2048
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet1:#011frame count 512
      Oct 13 16:07:34 localhost vpp: PMD: eth_af_packet1: creating AF_PACKET-backed ethdev on numa socket 0
      Oct 13 16:07:34 localhost vnet[18044]: PMD: Initializing pmd_af_packet for eth_af_packet1
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet1: AF_PACKET MMAP parameters:
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet1:#011block size 4096
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet1:#011block count 256
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet1:#011frame size 2048
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet1:#011frame count 512
      Oct 13 16:07:34 localhost vnet[18044]: PMD: eth_af_packet1: creating AF_PACKET-backed ethdev on numa socket 0
      Oct 13 16:07:34 localhost vpp: PMD: bnxt_rte_pmd_init() called for (null)
      Oct 13 16:07:34 localhost vnet[18044]: PMD: bnxt_rte_pmd_init() called for (null)
      Oct 13 16:07:40 localhost audit: USER_END pid=17965 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
      Oct 13 16:07:40 localhost audit: CRED_DISP pid=17965 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
      Oct 13 16:07:40 localhost systemd-logind: Removed session 3.
      Oct 13 16:07:40 localhost systemd: Stopping User Manager for UID 0...
      Oct 13 16:07:40 localhost systemd: Stopped target Default.
      Oct 13 16:07:40 localhost systemd: Stopped target Basic System.
      Oct 13 16:07:40 localhost systemd: Stopped target Paths.
      Oct 13 16:07:40 localhost systemd: Stopped target Timers.
      Oct 13 16:07:40 localhost systemd: Stopped target Sockets.
      Oct 13 16:07:40 localhost systemd: Closed D-Bus User Message Bus Socket.
      Oct 13 16:07:40 localhost systemd: Reached target Shutdown.
      Oct 13 16:07:40 localhost systemd: Starting Exit the Session...
      Oct 13 16:07:40 localhost systemd: Received SIGRTMIN+24 from PID 18059 (kill).
      

            BillyM Billy McFall
            BillyM Billy McFall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: