Bug 1396294 - segfault in ovs thread when using more than one VM
Summary: segfault in ovs thread when using more than one VM
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openvswitch
Version: 7.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Kevin Traynor
QA Contact: ovs-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-17 21:57 UTC by Andrew Theurer
Modified: 2017-02-17 18:02 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-17 18:02:48 UTC
Target Upstream Version:


Attachments (Terms of Use)
log file for ovs-vswitchd (16.59 KB, text/plain)
2016-11-17 21:57 UTC, Andrew Theurer
no flags Details

Description Andrew Theurer 2016-11-17 21:57:59 UTC
Created attachment 1221652 [details]
log file for ovs-vswitchd

Description of problem:

When starting testpmd in a VM, one of the threads from ovs-vswitchd segfaults with:

[ 4535.253497] vhost_thread2[4613]: segfault at 18 ip 00007fe9e07a9af0 sp 00007fe9d1ee0638 error 4 in ovs-vswitchd[7fe9e06c9000+319000]


Version-Release number of selected component (if applicable):
RHEL7.3
openvswitch-2.5.0-14.git20160727.el7fdp

How reproducible:


Steps to Reproduce:
Configure ovs with the following:

ovsbr0:
dpdk0
vhost-user-1

ovsbr1:
dpdk1
vhostuser-2
vhostuser-3

Create 5 PMD threads, 1 for each port.
create vm1 with 2 vhostuser ports, vhost-user1 and vhost-user-2
create vm2 with 1 vhostuser ports, vhost-user-3
start both VMs
on vm2, bring up the interface with kernel driver (virtio)
on vm1, run testpmd on the two vhostuser interfaces

Actual results:

Once vm1 starts testpmd, the segfault will happen in the host.  If vm2 is not started, the segfault will not happen.

Expected results:

There should be no segfault

Additional info:

Comment 2 Flavio Leitner 2016-11-18 18:09:50 UTC
Kevin,
This might be related to your other vhost fixes.

Comment 3 Kevin Traynor 2016-12-05 22:14:15 UTC
Can you test with openvswitch-2.5.0-23.git20160727.el7fdb

https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=526711


Note You need to log in before you can comment on or make changes to this bug.