All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
@ 2010-05-22  8:42 Michael Tokarev
  2010-05-22 16:06 ` [Qemu-devel] [Bug 584121] " Loïc Minier
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Michael Tokarev @ 2010-05-22  8:42 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
@ 2010-05-22 16:06 ` Loïc Minier
  2010-05-22 16:25 ` Loïc Minier
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Loïc Minier @ 2010-05-22 16:06 UTC (permalink / raw)
  To: qemu-devel

Hi

You're filing bugs against the QEMU project, which is used to track
upstream issues (issues in the tarballs released by the QEMU project, or
in their git tree).

I think you intended to file these against the Ubuntu package of qemu,
"qemu-kvm".

AFAIK, QEMU doesn't have any upstream bug tracker, they just discuss
issues on the mailing-list.

Could you please file future bugs using "ubuntu-bug qemu-kvm"?

Thanks,

-- 
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
  2010-05-22 16:06 ` [Qemu-devel] [Bug 584121] " Loïc Minier
@ 2010-05-22 16:25 ` Loïc Minier
  2010-05-24  7:07 ` Michael Tokarev
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Loïc Minier @ 2010-05-22 16:25 UTC (permalink / raw)
  To: qemu-devel

Sorry, I failed to realize that qemu-kvm uses the qemu project in
launchpad to track bugs; so this is the right place to file these.

Thanks!

-- 
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
  2010-05-22 16:06 ` [Qemu-devel] [Bug 584121] " Loïc Minier
  2010-05-22 16:25 ` Loïc Minier
@ 2010-05-24  7:07 ` Michael Tokarev
  2010-05-28 12:45 ` Anthony Liguori
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Michael Tokarev @ 2010-05-24  7:07 UTC (permalink / raw)
  To: qemu-devel

** Tags added: 32bit migration qemu-kvm sigsegv

-- 
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
                   ` (2 preceding siblings ...)
  2010-05-24  7:07 ` Michael Tokarev
@ 2010-05-28 12:45 ` Anthony Liguori
  2010-05-28 20:24 ` Michael Tokarev
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Anthony Liguori @ 2010-05-28 12:45 UTC (permalink / raw)
  To: qemu-devel

Please test this against an unmodified upstream qemu to validate whether
this is a qemu or a qemu-kvm issue.  Also, please include the full
command line along with the exact version information.

If you can collect a backtrace and attach it, that would also be
helpful.  Thanks!

** Changed in: qemu
   Importance: Undecided => Medium

** Changed in: qemu
       Status: New => Incomplete

-- 
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Incomplete

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
                   ` (3 preceding siblings ...)
  2010-05-28 12:45 ` Anthony Liguori
@ 2010-05-28 20:24 ` Michael Tokarev
  2010-05-28 20:28 ` Michael Tokarev
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Michael Tokarev @ 2010-05-28 20:24 UTC (permalink / raw)
  To: qemu-devel

Running it on unmodified qemu-0.12.4 gives the same effect: the sending
side crashes immediately with heap corruption (detected in realloc).

On the receiving side, there are 2 messages:
 qemu: warning: error while loading state for instance 0x0 of device 'ram'
 load of migration failed

ie, the same as in qemu-kvm case.

This is with -enable-kvm.  Running without...

-- 
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Incomplete

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
                   ` (4 preceding siblings ...)
  2010-05-28 20:24 ` Michael Tokarev
@ 2010-05-28 20:28 ` Michael Tokarev
  2010-07-06 14:42 ` Anthony Liguori
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Michael Tokarev @ 2010-05-28 20:28 UTC (permalink / raw)
  To: qemu-devel

..And without -enable-kvm, it works (it corrupts cirrus vga but that's
another issue, fixed in 0.13-tobe).

-- 
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Incomplete

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
                   ` (5 preceding siblings ...)
  2010-05-28 20:28 ` Michael Tokarev
@ 2010-07-06 14:42 ` Anthony Liguori
  2010-12-29 18:55 ` Preston Connors
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Anthony Liguori @ 2010-07-06 14:42 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Incomplete => Confirmed

-- 
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Confirmed

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
                   ` (6 preceding siblings ...)
  2010-07-06 14:42 ` Anthony Liguori
@ 2010-12-29 18:55 ` Preston Connors
  2011-05-13  5:41 ` Michael Tokarev
  2012-09-07 14:29 ` Aurelien Jarno
  9 siblings, 0 replies; 11+ messages in thread
From: Preston Connors @ 2010-12-29 18:55 UTC (permalink / raw)
  To: qemu-devel

I believe this issue to be affecting my systems too. I am willing to
provide more information as necessary.

Running two equivalent systems hardware wise - RAM type (not amount),
CPU, BIOS, Ubuntu version except qemu-kvm binary.

Both systems are running Ubuntu version 10.04.1 x86_64.

Running Ubuntu qemu-kvm 0.12.3+noroms-0ubuntu9.3 on both systems however
I have some running kvm processes that were running from qemu-kvm
version 0.12.3+noroms-0ubuntu9.2. The kvm processes running from qemu-
kvm version 0.12.3+noroms-0ubuntu9.2 are the kvm processes that are not
migrating.

Steps to reproduce:
1) Attempt to qemu+ssh migrate qemu-kvm 0.12.3+noroms-0ubuntu9.2 process to another server running either qemu-kvm 0.12.3+noroms-0ubuntu9.2 or qemu-kvm 0.12.3+noroms-0ubuntu9.3 using command virsh migrate --live my_domain qemu+ssh://receiving.host/system
2) Wait for the migration to complete. It never completes and error 'qemu: warning: error while loading state for instance 0x0 of device 'ram'' is received on the receiving host.

During first migration attempt the guest will be created in the paused
state on the receiving host and the migration will not exit unless you
force quit (CTRL+C) the migration on the sending node. You can virsh
resume the domain on the receiving end and the guest will re-boot itself
and boot properly on the receiving end.

Further migration attempts with the same domain will fail with error
'error: Requested operation is not valid: domain is already active as
'my_domain''' on the sending host.

If you virsh destroy my_domain ; virsh undefine my_domain on the
receiving host (which will have this domain in a paused state)  you can
re-try the migration. After doing 'service libvirt-bin restart' on both
hosts you can re-try the migration multiple times. Around six tries of
restarting service libvirt-bin and also attempting the migration will
get the domain migrated over to the receiving host without any errors,
however during this migration that is supposedly successful the guest
domain will crash and re-boot itself on the receiving host.

After this crash/migration you can then migrate the domain back and
forth between hosts with no problems.

Log entries/errors generated during migration on receiving host:

/var/log/libvirt/qemu/$vm_name.log

LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 1024 -smp 1 -name 27-1245 -uuid 47e4cbc4-bc91-12d4-3cd2-36b29de6f588 -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/27-1245.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/dev/disk/by-id/scsi-3600144f0eae8810000004d0703550704,if=virtio,index=0,boot=on,format=raw,cache=none -net nic,macaddr=00:00:d1:d0:3e:b3,vlan=0,model=virtio,name=virtio.0 -net tap,fd=51,vlan=0,name=tap.0 -net nic,macaddr=00:00:0a:d0:3e:b3,vlan=1,model=virtio,name=virtio.1 -net tap,fd=52,vlan=1,name=tap.1 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 0.0.0.0:16,password -k en-us -vga cirrus -incoming tcp:0.0.0.0:49152 
char device redirected to /dev/pts/2
qemu: warning: error while loading state for instance 0x0 of device 'ram'
load of migration failed

Verbose libvirtd log output on receiving host:
http://pastebin.com/GPxLCjyS

Log entries/errors generated during migration on the sending host:

Verbose libvirtd log output on sending host:
http://pastebin.com/cMcU7SgS

If you would like any further information/output please let me know.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/584121

Title:
  migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)

Status in QEMU:
  Confirmed

Bug description:
  On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
                   ` (7 preceding siblings ...)
  2010-12-29 18:55 ` Preston Connors
@ 2011-05-13  5:41 ` Michael Tokarev
  2012-09-07 14:29 ` Aurelien Jarno
  9 siblings, 0 replies; 11+ messages in thread
From: Michael Tokarev @ 2011-05-13  5:41 UTC (permalink / raw)
  To: qemu-devel

This is fixed by two commits.  The second half is here:
 http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=51b0c6065aa6e47a47094d73e24be298a4a7f3a1
which fixes mixed 32/63 user/kernel host environment part of the problem, and the first half belongs to the time between 0.13 and 0.14 when dirty bitmap handling qemu-kvm code has been converted to qemu equivalent (this is the main part, when migration started working in 32bits again).

** Changed in: qemu
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/584121

Title:
  migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)

Status in QEMU:
  Fix Committed

Bug description:
  On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
  See http://marc.info/?l=kvm&m=127351472231666 for more information.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
  2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
                   ` (8 preceding siblings ...)
  2011-05-13  5:41 ` Michael Tokarev
@ 2012-09-07 14:29 ` Aurelien Jarno
  9 siblings, 0 replies; 11+ messages in thread
From: Aurelien Jarno @ 2012-09-07 14:29 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/584121

Title:
  migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)

Status in QEMU:
  Fix Released

Bug description:
  On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
  See http://marc.info/?l=kvm&m=127351472231666 for more information.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/584121/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-09-07 14:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-22  8:42 [Qemu-devel] [Bug 584121] [NEW] migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Michael Tokarev
2010-05-22 16:06 ` [Qemu-devel] [Bug 584121] " Loïc Minier
2010-05-22 16:25 ` Loïc Minier
2010-05-24  7:07 ` Michael Tokarev
2010-05-28 12:45 ` Anthony Liguori
2010-05-28 20:24 ` Michael Tokarev
2010-05-28 20:28 ` Michael Tokarev
2010-07-06 14:42 ` Anthony Liguori
2010-12-29 18:55 ` Preston Connors
2011-05-13  5:41 ` Michael Tokarev
2012-09-07 14:29 ` Aurelien Jarno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.