A segment fault error in DPDK 17.02
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Committed
|
Undecided
|
Yi-y-yang | |||
Trunk |
Fix Committed
|
High
|
Yi-y-yang | |||
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
I found a segment fault error in DPDK 17.02 branch, here is my core dump information:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 _mm_storeu_si128 (__B=..., __P=<optimized out>) at /usr/lib/
702 __builtin_
(gdb) bt
#0 _mm_storeu_si128 (__B=..., __P=<optimized out>) at /usr/lib/
#1 rte_memcpy_generic (dst=0x7fadd69f
at build/productio
#2 0x0000000000539615 in rte_memcpy (n=184467440737
at build/productio
#3 dpdk_pheader_
at vrouter/
#4 0x00000000005778c6 in vr_udp_input (router=0x55f49a0 <router>, pkt=0x7fadb856fa80, fmd=0x7fadd69f9440)
at vrouter/
#5 0x9b45030101010401 in ?? ()
#6 0x6c6b9e851a00ab6c in ?? ()
#7 0x74737271706f6e6d in ?? ()
#8 0x31307a7978777675 in ?? ()
#9 0x0000000000000000 in ?? ()
(gdb)
We had a change for DPDK 17.11, the below change is in contrail-vrouter master (including 5.0 branch)
diff --git a/dpdk/
index c4fa21d..d4b5c59 100644
--- a/dpdk/
+++ b/dpdk/
@@ -246,6 +246,9 @@ dpdk_pktmbuf_
dst->data_off = src->data_off;
dst->port = src->port;
dst->ol_flags = src->ol_flags;
+#if (RTE_VERSION >= RTE_VERSION_NUM(17, 11, 0, 0))
+ dst->ol_flags &= (~IND_ATTACHED_
+#endif
dst-
dst->data_len = src->data_len;
dst->pkt_len = src->pkt_len;
I checked DPDK 17.02, it has defined IND_ATTACHED_MBUF, so it also has the same issue, I have fixed and verified it, will have a gerrit commit after file this bug.
Review in progress for https:/ /review. opencontrail. org/43488
Submitter: Yi Yang (<email address hidden>)