From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S23p1-0004Gc-T9 for qemu-devel@nongnu.org; Mon, 27 Feb 2012 11:53:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S23p0-0005xw-Pa for qemu-devel@nongnu.org; Mon, 27 Feb 2012 11:53:11 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:62500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S23p0-0005xo-GK for qemu-devel@nongnu.org; Mon, 27 Feb 2012 11:53:10 -0500 Message-ID: <4F4BB4FE.8070800@rdsoftware.de> Date: Mon, 27 Feb 2012 17:53:18 +0100 From: Erik Rull MIME-Version: 1.0 References: <390007896.172233.1329997133650.JavaMail.open-xchange@email.1und1.de> <4F465748.8050605@redhat.com> <736907392.381675.1330334571227.JavaMail.open-xchange@email.1und1.de> <4F4B7BB5.4030405@redhat.com> <1726500113.424119.1330354349503.JavaMail.open-xchange@email.1und1.de> <4F4BA735.7030607@redhat.com> In-Reply-To: <4F4BA735.7030607@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu assertion failed with usb on current git master! List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: "qemu-devel@nongnu.org" Gerd Hoffmann wrote: > Hi, > >> I'm really sorry, but I don't understand what's happening - I copied the >> qemu executable on my target system before executing it, but gdb complains >> that the core file does not match the executable! But except the file paths >> they are identical. > >> warning: core file may not match specified executable file. >> Core was generated by `/disc/qemu-system-x86_64 -machine kernel_irqchip=on >> -serial /dev/ttyS2 -usb -de'. >> Program terminated with signal 6, Aborted. >> #0 0xffffe424 in __kernel_vsyscall () > > Strange. The backtrace is bogus too. > >> I don't know how to proceed here. > > Lets try plan b: add a printf right before the assert: > > --- a/hw/usb.c > +++ b/hw/usb.c > @@ -356,6 +356,7 @@ void usb_packet_complete(USBDevice *dev, USBPacket *p) > > while (!QTAILQ_EMPTY(&ep->queue)) { > p = QTAILQ_FIRST(&ep->queue); > + fprintf(stderr, "%s: packet %p\n", __func__, p); > assert(p->state == USB_PACKET_QUEUED); > ret = usb_process_one(p); > if (ret == USB_RET_ASYNC) { > > >> Don't you run into this problem (crash on USB plug in) on your system? >> I tested it with a Linux guest, there it does not crash! Only with a >> Windows XP guest! > > I test with Linux most of the time, but even with windows xp guest it > doesn't reproduce here. > > cheers, > Gerd > That's a good idea - will test that tomorrow and send the new result file. Have you ever tested a USB CD or DVD drive attached to your guests? I have issues with Windows XP (I get everything running and detected beside the drive letter in Windows Explorer) but it works fine for Linux. Best regards, Erik