| Summary: | migration crashes on the source after hot remove of virtio-scsi controller | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Sibiao Luo <sluo> |
| Component: | qemu-kvm | Assignee: | Paolo Bonzini <pbonzini> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.3 | CC: | acathrow, bcao, bsarathy, chayang, dawu, flang, juzhang, mdeng, michen, minovotn, mkenneth, pbonzini, qzhang, shu, sluo, tburke, virt-maint, wdai, wquan, xfu, xigao |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-0.12.1.2-2.264.el6 | Doc Type: | Bug Fix |
| Doc Text: |
No documentation needed
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-20 11:44:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 769712, 857935, 889075 | ||
|
Description
Sibiao Luo
2012-03-07 02:11:38 UTC
> 2. test for the second or other time:
> Segmentation fault on the src,
> (qemu) handle_dev_stop: stop
> Segmentation fault
> load of migration failed on the dest,
> (qemu) qemu: warning: error while loading state section id 3
> load of migration failed
>
I have got the backtrace log for the segmentation fault on the src:
(qemu) handle_dev_stop: stop
[New Thread 0x7fff48ffa700 (LWP 8201)]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7e088a5 in ?? ()
(gdb) bt
#0 0x00007ffff7e088a5 in ?? ()
#1 0x00007ffff7e0fb99 in ?? ()
#2 0x00007ffff7f33c83 in ?? ()
#3 0x00007ffff7e75a60 in ?? ()
#4 0x00007ffff7e6d2de in ?? ()
#5 0x00007ffff7df9a70 in ?? ()
#6 0x00007ffff7e19ffa in ?? ()
#7 0x00007ffff7dfb59c in main ()
(gdb) q
(In reply to comment #2) > > 2. test for the second or other time: > > Segmentation fault on the src, > > (qemu) handle_dev_stop: stop > > Segmentation fault > > load of migration failed on the dest, > > (qemu) qemu: warning: error while loading state section id 3 > > load of migration failed > > > > I have got the backtrace log for the segmentation fault on the src: > > (qemu) handle_dev_stop: stop > [New Thread 0x7fff48ffa700 (LWP 8201)] > > Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff7e088a5 in ?? () > (gdb) bt > #0 0x00007ffff7e088a5 in ?? () > #1 0x00007ffff7e0fb99 in ?? () > #2 0x00007ffff7f33c83 in ?? () > #3 0x00007ffff7e75a60 in ?? () > #4 0x00007ffff7e6d2de in ?? () > #5 0x00007ffff7df9a70 in ?? () > #6 0x00007ffff7e19ffa in ?? () > #7 0x00007ffff7dfb59c in main () > (gdb) q sorry for my careless, forget to install the qemu-kvm-debuginfo package in my host. I have retest it and get the backtrace log for the segmentation fault on the src. Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7f33c74 in virtio_save (vdev=0x7ffff88dbd00, f=0x7ffff9327fb0) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio.c:735 735 if (vdev->binding->save_config) (gdb) bt #0 0x00007ffff7f33c74 in virtio_save (vdev=0x7ffff88dbd00, f=0x7ffff9327fb0) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio.c:735 #1 0x00007ffff7e75a60 in vmstate_save (mon=<value optimized out>, f=0x7ffff9327fb0) at savevm.c:1459 #2 qemu_savevm_state_complete (mon=<value optimized out>, f=0x7ffff9327fb0) at savevm.c:1621 #3 0x00007ffff7e6d2de in migrate_fd_put_ready (opaque=0x7ffff92d6e40) at migration.c:406 #4 0x00007ffff7df9a70 in qemu_run_timers (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:1315 #5 main_loop_wait (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4058 #6 0x00007ffff7e19ffa in kvm_main_loop () at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2225 #7 0x00007ffff7dfb59c in main_loop (argc=20, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4234 #8 main (argc=20, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6495 (gdb) *** Bug 800274 has been marked as a duplicate of this bug. *** Reproduced this issue with steps and environment as follows: host version: # uname -r 2.6.32-257.el6.x86_64 # rpm -qa |grep qemu-kvm qemu-kvm-0.12.1.2-2.262.el6.x86_64 steps: 1)boot guest with virtio-scsi disk usr/libexec/qemu-kvm -m 2G -smp 1 -cpu Penryn,+x2apic, -usbdevice tablet -drive file=/mnt/RHEL-Server-6.3-64-virtio.qcow2-newinstall5,format=qcow2,if=none,id=drive-ide0-0-0,werror=stop,rerror=stop,cache=none -device virtio-blk-pci,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=2 -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,mac=00:10:20:2d:31:21,bus=pci.0,addr=0x4,id=net0 -boot order=cdn,once=n,menu=on -uuid 3290efd3-7c9e-44f9-b5f7-af0f3a1b3066 -rtc base=utc,clock=host,driftfix=slew -no-kvm-pit-reinjection -monitor stdio -name rhel6.1 -spice port=1000,disable-ticketing -vga qxl -device virtio-balloon-pci,bus=pci.0,id=balloon0 -drive file=/mnt/RHEL6.3-20120313.2-Server-x86_64-DVD1.iso,if=none,id=cdrom1 -device virtio-scsi-pci,id=cdrom -device scsi-cd,drive=cdrom1,scsi-id=0,lun=0 -nodefconfig 2)boot another vm with listen mode and without virtio-scsi disk for migration ...-incoming tcp:0:5800 3) do hot unplug virtio-scsi on src vm (qemu)device_del cdrom 4)do migration and results: (qemu)migrate -d tcp:10.66.65.153:5800 resutls: Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7f30244 in virtio_save (vdev=0x7ffff88cbe50, f=0x7ffff9571a10) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio.c:735 735 if (vdev->binding->save_config) .. (gdb) bt #0 0x00007ffff7f30244 in virtio_save (vdev=0x7ffff88cbe50, f=0x7ffff9571a10) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio.c:735 #1 0x00007ffff7e6cdc0 in vmstate_save (mon=<value optimized out>, f=0x7ffff9571a10) at savevm.c:1459 #2 qemu_savevm_state_complete (mon=<value optimized out>, f=0x7ffff9571a10) at savevm.c:1621 #3 0x00007ffff7e64695 in migrate_fd_put_ready (opaque=0x7ffff89e8640) at migration.c:405 #4 0x00007ffff7deed70 in qemu_run_timers (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:1323 #5 main_loop_wait (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4024 #6 0x00007ffff7e1035a in kvm_main_loop () at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2244 #7 0x00007ffff7df17ac in main_loop (argc=20, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4202 #8 main (argc=20, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6427 Verified this issue with steps and environment as follows: host version: # uname -r 2.6.32-257.el6.x86_64 # rpm -qa |grep qemu-kvm qemu-kvm-0.12.1.2-2.265.el6.x86_64 the steps as same as reproduce 1) 2) 3) 4) after step 4,the results: can be migrated successful,so this issue has been fixed.
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:
No documentation needed
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0746.html |