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 674451 - spice segfault on migration
Summary: spice segfault on migration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: spice-server
Version: 6.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Desktop QE
URL:
Whiteboard:
: 676558 679006 679659 (view as bug list)
Depends On:
Blocks: Rhel6KvmTier1
TreeView+ depends on / blocked
 
Reported: 2011-02-01 22:51 UTC by Alex Williamson
Modified: 2015-09-28 02:26 UTC (History)
9 users (show)

Fixed In Version: spice-server-0.7.3-2.el6
Doc Type: Bug Fix
Doc Text:
spice-server tried to use migration information even when it was not provided or required. This resulted in a segmentation fault in the client machine (the source of the migration operation). A check now determines whether the client has provided or is required to provide migration information. (BZ#674451)
Clone Of:
Environment:
Last Closed: 2011-05-19 14:07:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0705 0 normal SHIPPED_LIVE spice-server bug fix and enhancement update 2011-05-18 18:10:05 UTC

Description Alex Williamson 2011-02-01 22:51:08 UTC
Description of problem:
After migration, migration source qemu-kvm segfaults:

Program received signal SIGSEGV, Segmentation fault.
reds_mig_switch (s=<value optimized out>) at reds.c:3379
3379	    migrate.port = s->port;
(gdb) bt
#0  reds_mig_switch (s=<value optimized out>) at reds.c:3379
#1  spice_server_migrate_switch (s=<value optimized out>) at reds.c:4184
#2  0x00000000004dc5a9 in notifier_list_notify (list=<value optimized out>)
    at notify.c:37
#3  0x000000000040b7d8 in qemu_run_timers (timeout=1000)
    at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:1203
#4  main_loop_wait (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4296
#5  0x000000000042a15a in kvm_main_loop ()
    at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2165
#6  0x000000000040e9fb in main_loop (argc=<value optimized out>, 
    argv=<value optimized out>, envp=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4472
#7  main (argc=<value optimized out>, argv=<value optimized out>, 
    envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6644
(gdb) p s
$1 = (RedsMigSpice *) 0x0


Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.134.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. migrate w/ -vga qxl
2.
3.
  
Actual results:
migration finishes, but source VM seg faults

Expected results:
no segfault

Additional info:

source cmdline:

/usr/libexec/qemu-kvm -enable-kvm -m 4G -smp 2 -name rhel6vm -uuid 1e3f234d-338f-e438-1d43-14393856409c -nodefconfig -nodefaults -rtc base=utc -boot c -drive file=/var/lib/libvirt/images/VMs/rhel6vm.img,if=ide,cache=off,id=drive-virtio-disk0,format=raw -usb -netdev tap,script=/home/alwillia/bin/br0-ifup,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:5f:78:73,bus=pci.0,addr=0x3 -mem-path /hugepages/ -vga qxl -monitor tcp::5678,server,nowait -vnc :0 -spice port=8000,disable-ticketing

target cmdline:

/usr/libexec/qemu-kvm -enable-kvm -m 4G -smp 2 -name rhel6vm -uuid 1e3f234d-338f-e438-1d43-14393856409c -nodefconfig -nodefaults -rtc base=utc -boot c -drive file=/var/lib/libvirt/images/VMs/rhel6vm.img,if=ide,cache=off,id=drive-virtio-disk0,format=raw -usb -netdev tap,script=/home/alwillia/bin/br0-ifup,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:5f:78:73,bus=pci.0,addr=0x3 -mem-path /hugepages/ -vga qxl -monitor tcp::5679,server,nowait -vnc :1 -spice port=8001,disable-ticketing -incoming tcp::4444

migrated with: migrate tcp::4444

only connected via vnc

Comment 2 Gerd Hoffmann 2011-02-15 09:27:24 UTC
*** Bug 676558 has been marked as a duplicate of this bug. ***

Comment 3 Amos Kong 2011-02-23 06:25:42 UTC
*** Bug 679659 has been marked as a duplicate of this bug. ***

Comment 4 Uri Lublin 2011-02-23 23:23:08 UTC
*** Bug 679006 has been marked as a duplicate of this bug. ***

Comment 11 Laura Bailey 2011-04-27 02:42:07 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
spice-server tried to use migration information even when it was not provided or required. This resulted in a segmentation fault in the client machine (the source of the migration operation). A check now determines whether the client has provided or is required to provide migration information. (BZ#674451)

Comment 12 Gerd Hoffmann 2011-04-28 10:24:40 UTC
Looks good to me.

Comment 13 errata-xmlrpc 2011-05-19 14:07:48 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0705.html


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