RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 995329 - qemu-kvm segmentation fault when doing network hotplug and do set_link operations
Summary: qemu-kvm segmentation fault when doing network hotplug and do set_link operat...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Marcel Apfelbaum
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-09 05:47 UTC by xhan
Modified: 2014-07-14 15:09 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-14 15:09:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description xhan 2013-08-09 05:47:59 UTC
Description of problem:

qemu-kvm segmentation fault when doing network hotplug and do set_link operations.

Version-Release number of selected component (if applicable):
kernel: 3.9.0-0.55.el7.x86_64
qemu-kvm-1.5.2-1.el7.x86_64

How reproducible:

Once

Steps to Reproduce:
1. Start guest
/usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/virt/qemu/qemu \
    -name 'virt-tests-vm1' \
    -nodefaults \
    -monitor stdio \
    -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=0x4 \
    -drive file='win7-64.qcow2',index=0,if=none,id=drive-ide0-0-0,media=disk,cache=none,snapshot=off,format=qcow2,aio=native \
    -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0 \
    -device rtl8139,netdev=idMLI3A0,mac='9a:f5:f6:f7:f8:f9',bus=pci.0,addr=0x3,id='idngaiUo' \
    -netdev tap,id=idMLI3A0,script=qemu-ifup-switch \
    -m 2048 \
    -smp 2,maxcpus=2,cores=1,threads=1,sockets=2 \
    -cpu 'Penryn',hv_relaxed \
    -M pc \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
    -spice port=5000,password=123456,addr=0,image-compression=auto_glz,zlib-glz-wan-compression=auto,streaming-video=all,agent-mouse=on,playback-compression=on,ipv4 \
    -vga qxl \
    -global qxl-vga.vram_size=33554432 \
    -rtc base=localtime,clock=host,driftfix=slew  \
    -boot order=cdn,once=c,menu=off  \
    -enable-kvm \
    -qmp tcp::1234,server,nowait

2. Connect with qmp session
    telnet pc_ip 1234
   and launch 
    {'execute': 'qmp_capabilities'}
 
3. Add network devices through monitor cmd
{ "execute": "netdev_add", "arguments": { "type":"tap","id":"hostnet2","vhost":"on"}}
{"execute": "device_add", "arguments": { "driver":"virtio-net-pci","netdev":"hostnet2","mac":"22:11:22:45:61:97","id": "net2"}}

4. 
Sending command "info network" via human monitor

5:
 Disable the primary link(s) of guest

 {'execute': 'set_link', 'arguments': {'name': 'idngaiUo', 'up': False}}

6: repeat step 3 to step 5 several times.

Actual results:

  qemu-kvm segmentation fault.


Expected results:

  network device can work normally.


Additional info:

(gdb) bt
#0  0x00007f622191adc3 in dispatcher_handle_recv_read () from /lib64/libspice-server.so.1
#1  0x00007f622193d42d in red_worker_main () from /lib64/libspice-server.so.1
#2  0x00007f62234e3c53 in start_thread () from /lib64/libpthread.so.0
#3  0x00007f6220c6a13d in clone () from /lib64/libc.so.6

Comment 3 Suqin Huang 2013-08-12 08:08:09 UTC
Hi xhan,
Can you provide spice-server, virtio-win and guest name as well.

Thanks
Suqin

Comment 4 xhan 2013-08-13 03:33:40 UTC
spice-server-0.12.3-1.el7.x86_64
virtio-win-prewhql-0.1-65.iso

both guest RHEL.7.0.x86_64 and Win7.x86_64 met this problem.
Totally met this twice.

Comment 7 Ronen Hod 2014-07-13 13:19:56 UTC
QE,
Can you check that the problem still exists?

Comment 8 juzhang 2014-07-14 03:30:05 UTC
(In reply to Ronen Hod from comment #7)
> QE,
> Can you check that the problem still exists?

Hi Sluo,

Can you handle this issue?

Best Regards,
Junyi


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