DPDK: vrouter crashed in __memcpy_sse2_

Bug #1549567 reported by Vinod Nair
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Won't Fix
Critical
Vinod Nair
Trunk
Fix Committed
Critical
Vinod Nair

Bug Description

vrouter crashed in __memcpy_sse2_unaligned on sending flood ping from VM with mtu 6K
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/contrail-vrouter-dpdk --no-daemon --socket-mem 1024 1024'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:37
37 ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: No such file or directory.
(gdb) bt
#0 __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:37
#1 0x00000000004dc264 in memcpy (__len=<optimized out>, __src=<optimized out>, __dest=0x7f17a6e3f820) at /usr/include/x86_64-linux-gnu/bits/string3.h:51
#2 eth_af_packet_tx (queue=0x7f1798ab6260, bufs=0x7f1798ab18d0, nb_pkts=1) at /ecbuilds/PipeLine/sb/third_party/dpdk/drivers/net/af_packet/rte_eth_af_packet.c:209
#3 0x000000000040f7de in rte_eth_tx_burst (nb_pkts=<optimized out>, tx_pkts=0x7f1798ab18d0, queue_id=0, port_id=<optimized out>)
    at /ecbuilds/PipeLine/sb/build/production/vrouter/dpdk/x86_64-native-linuxapp-gcc/include/rte_ethdev.h:2685
#4 send_burst (p=0x7f1798ab18c0) at /ecbuilds/PipeLine/sb/third_party/dpdk/lib/librte_port/rte_port_ethdev.c:201
#5 rte_port_ethdev_writer_flush (port=0x7f1798ab18c0) at /ecbuilds/PipeLine/sb/third_party/dpdk/lib/librte_port/rte_port_ethdev.c:280
#6 0x00000000004efa24 in vr_dpdk_lcore_flush (lcore=0x7f1798f185c0) at vrouter/include/vr_dpdk.h:705
#7 dpdk_lcore_fwd_loop () at vrouter/dpdk/vr_dpdk_lcore.c:1376
#8 0x00000000004f05ef in vr_dpdk_lcore_launch (dummy=<optimized out>) at vrouter/dpdk/vr_dpdk_lcore.c:1564
#9 0x00000000004345c5 in eal_thread_loop (arg=<optimized out>) at /ecbuilds/PipeLine/sb/third_party/dpdk/lib/librte_eal/linuxapp/eal/eal_thread.c:184
#10 0x00007f17ac41e182 in start_thread (arg=0x7f17a8e43700) at pthread_create.c:312
#11 0x00007f17abf4447d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb)

Build : 2717 Kilo

Tags: dpdk
Changed in juniperopenstack:
assignee: Raja Sivaramakrishnan (raja-u) → Michal Dubiel (md-sh)
Vinod Nair (vinodnair)
summary: - DPDK: vrouter crashed in VrResponseMsg Error: Invalid object parameters
+ DPDK: vrouter crashed in __memcpy_sse2_
Revision history for this message
Raja Sivaramakrishnan (raja-u) wrote :

In dpdk_af_packet_if_add(), frames is set to the default value of 2K, but the packet can be more than that if jumbo frames are enabled. The crash happened when memcpying a packet > 2K to the AF packet iov. Need to set frame sizein the af_packet interface to account for jumbo packets.

Changed in juniperopenstack:
assignee: Michal Dubiel (md-sh) → Wojciech Zmuda (woz-q)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/17919
Submitter: Andriy Berestovskyy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/17920
Submitter: Andriy Berestovskyy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/17920
Committed: http://github.org/Juniper/contrail-vrouter/commit/e846848bc66ac1b6fe034445870c094b3a07acfa
Submitter: Zuul
Branch: master

commit e846848bc66ac1b6fe034445870c094b3a07acfa
Author: Andriy Berestovskyy <email address hidden>
Date: Fri Feb 26 17:33:38 2016 +0100

DPDK: fix AF_PACKET frame size

Change-Id: I7a329480bd3cad5c1dab1657a533f85ccccf63a2
Closes-bug: #1549567

Changed in juniperopenstack:
milestone: none → r3.1.0.0-fcs
Jeba Paulaiyan (jebap)
information type: Proprietary → Public
Revision history for this message
Raja Sivaramakrishnan (raja-u) wrote :

Vinod, please close if you don't see the issue. Thanks.

Vinod Nair (vinodnair)
tags: removed: blocker
Revision history for this message
Vinod Nair (vinodnair) wrote :

Issue is not seen

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.