From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Slj2m-0004MG-FN for qemu-devel@nongnu.org; Mon, 02 Jul 2012 12:00:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Slj2c-0004Yg-AE for qemu-devel@nongnu.org; Mon, 02 Jul 2012 12:00:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Slj2c-0004YD-1u for qemu-devel@nongnu.org; Mon, 02 Jul 2012 11:59:58 -0400 Message-ID: <4FF1C57A.70505@redhat.com> Date: Mon, 02 Jul 2012 17:59:54 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <4FE4953F.50404@siemens.com> <4FE58C97.5050606@rdsoftware.de> <4FE58F2D.1010307@web.de> <4FEB65E5.1060908@rdsoftware.de> <4FEC5D1B.6040307@siemens.com> <4FEC7060.2010304@siemens.com> <4FF18080.7010305@redhat.com> <4FF1AF8C.5030400@siemens.com> <4FF1C297.4030102@redhat.com> In-Reply-To: <4FF1C297.4030102@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] usb_packet_complete: Assertion ... failed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Erik Rull , qemu-devel On 07/02/12 17:47, Gerd Hoffmann wrote: >> diff --git a/hw/usb/core.c b/hw/usb/core.c >> index 0e02da7..eacda74 100644 >> --- a/hw/usb/core.c >> +++ b/hw/usb/core.c >> @@ -407,7 +407,9 @@ void usb_packet_complete(USBDevice *dev, USBPacket *p) >> int ret; >> >> usb_packet_check_state(p, USB_PACKET_ASYNC); >> - assert(QTAILQ_FIRST(&ep->queue) == p); >> + if (QTAILQ_FIRST(&ep->queue) != p) { >> + trace_usb_assert(usb_bus_from_device(dev)->busnr, dev->port->path, p->ep->nr, p); >> + } > > Can you also log QTAILQ_FIRST(&ep->queue) there? Oh, I think I've found it. It's most likely NULL. > Can I also get a "lsusb -v" for the usb device in question? Would still be useful. thanks, Gerd