public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Nix <nix@esperi.org.uk>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: usb_add crashes stable kvm-0.11.0
Date: Thu, 03 Dec 2009 00:27:04 +0000	[thread overview]
Message-ID: <87fx7soqav.fsf@spindle.srvr.nix> (raw)
In-Reply-To: <877ht9rmoo.fsf_-_@spindle.srvr.nix> (nix@esperi.org.uk's message of "Sun, 29 Nov 2009 22:27:51 +0000")

On 29 Nov 2009, nix@esperi.org.uk spake thusly:

> One qemu-kvm-specific bug, definitely non-kernel-related, is this crash,
> frequently encountered when hotadding more than one USB device (to an XP
> guest, as it happens, but that doesn't look relevant here):

I also see a crash when using -usbdevice on the command line. Symptoms
are a very long pause instead of booting, and then (in an XP guest,
immediately after the windows desktop appears; so I suspect the
instant the guest tries to probe for USB devices):

*** glibc detected *** /usr/bin/qemu: corrupted double-linked list: 0x0000000002908ce0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f87cc91a505]
/lib/libc.so.6[0x7f87cc91d96d]
/lib/libc.so.6(__libc_malloc+0x6e)[0x7f87cc91ef1e]
/usr/bin/qemu[0x47037e]
/usr/bin/qemu[0x423585]
/usr/bin/qemu[0x42366f]
/usr/bin/qemu[0x43e620]
/usr/bin/qemu[0x4c73e8]
/usr/bin/qemu[0x40a274]
/usr/bin/qemu[0x421e6a]
/usr/bin/qemu[0x40e7f5]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f87cc8c8a7d]
/usr/bin/qemu[0x407d29]
======= Memory map: ========

malloc() or overrun trouble.

Fixed by c4c0e236beabb9de5ff472f77aeb811ec5484615, with the caveat that
the 2048-byte buffer provided by this commit is nowhere near large
enough: I have seen 4104 bytes coming back from an ipod nano 5 (thanks
to the overrun detection also added by that commit). So I've boosted it
to 8192 here, and it seems to work (albeit killingly slowly).

  reply	other threads:[~2009-12-03  0:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-27 21:56 2.6.31.5 x86-64 KVM: 'emulation failed (pagetable) rip 7fb49335da7b 66 0f 7f 07' Nix
2009-11-29 10:43 ` Avi Kivity
2009-11-29 13:48   ` Nix
2009-11-29 14:23     ` Avi Kivity
2009-11-29 22:27       ` usb_add crashes stable kvm-0.11.0 Nix
2009-12-03  0:27         ` Nix [this message]
2009-11-29 23:31       ` 2.6.31.5 x86-64 KVM: 'emulation failed (pagetable) rip 7fb49335da7b 66 0f 7f 07' Nix
2009-11-30  8:15         ` Avi Kivity
2009-11-30 12:05         ` Alejandro Riveira Fernández
2009-11-30 21:40           ` Nix
2009-12-01  9:59             ` Avi Kivity
2009-12-01 10:12               ` Avi Kivity
2009-12-02 13:25       ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fx7soqav.fsf@spindle.srvr.nix \
    --to=nix@esperi.org.uk \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox