[ovs-discuss] pmd segfault

Pradeep K.S pradeepks.hpt at gmail.com
Thu Aug 8 15:25:32 UTC 2019


Hi All,

Current software version:
=========================
openvswitch-2.9.0-19.el7fdp.1.x86_64
dpdk-17.11-7.el7.x86_64
3.10.0-957.21.3.el7.x86_64


VM Configuration:
=================
I have vm having regular 2 virtio ports, 1 vhost-dpdk , 1 sriov ports on
it. At times PMD crashes with following backtrace


(gdb) bt
#0  rte_vhost_dequeue_burst (vid=<optimized out>, queue_id=<optimized out>,
mbuf_pool=0x7f42bf7b6940, pkts=pkts at entry=0x7f45467f3770,
    count=count at entry=32) at
/usr/src/debug/openvswitch-2.9.0/dpdk-17.11/lib/librte_vhost/virtio_net.c:1567
#1  0x0000564cce70a2e4 in netdev_dpdk_vhost_rxq_recv (rxq=<optimized out>,
batch=0x7f45467f3760) at lib/netdev-dpdk.c:1849
#2  0x0000564cce656671 in netdev_rxq_recv (rx=<optimized out>,
batch=batch at entry=0x7f45467f3760) at lib/netdev.c:701
#3  0x0000564cce62fc1f in dp_netdev_process_rxq_port
(pmd=pmd at entry=0x7f46b0358010,
rxq=0x564cd007ba90, port_no=3) at lib/dpif-netdev.c:3279
#4  0x0000564cce63002a in pmd_thread_main (f_=<optimized out>) at
lib/dpif-netdev.c:4145
#5  0x0000564cce6accb6 in ovsthread_wrapper (aux_=<optimized out>) at
lib/ovs-thread.c:348
#6  0x00007f46c6804dd5 in start_thread () from /lib64/libpthread.so.0
#7  0x00007f46c5c01ead in clone () from /lib64/libc.so.6
(gdb) f 3
#3  0x0000564cce62fc1f in dp_netdev_process_rxq_port
(pmd=pmd at entry=0x7f46b0358010,
rxq=0x564cd007ba90, port_no=3) at lib/dpif-netdev.c:3279
3279    error = netdev_rxq_recv(rxq->rx, &batch);
gdb) p *(rxq->rx)
Cannot access memory at address 0x7f42bfa59b80

(gdb) f 4
(gdb) p /x *poll_list[0]->rxq
$5 = {port = 0x564cd0240670, rx = 0x7f42bfa5b200, core_id = 0x7fffffff,
intrvl_idx = 0x1e, pmd = 0x7f46b0358010, cycles = {0x1b870,
    0x746dc}, cycles_intrvl = {0x48c76, 0x11b16, 0xe7e8, 0x180de, 0x10388,
0x124e8}}


pmd_load_queues_and_ports(pmd, &poll_list);

Let me know if you need more info, i have core file too.

Regards,
Pradeep.K.S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190808/7ca36879/attachment.html>


More information about the discuss mailing list