Received: from eggs.gnu.org ([140.186.70.92]:58786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDFWI-0001Hw-61 for qemu-devel@nongnu.org; Mon, 10 Oct 2011 09:03:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDFWE-00082T-CA for qemu-devel@nongnu.org; Mon, 10 Oct 2011 09:03:50 -0400 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:55868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDFWE-000822-3l for qemu-devel@nongnu.org; Mon, 10 Oct 2011 09:03:46 -0400 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p9AD3hvD016276 for ; Mon, 10 Oct 2011 13:03:43 GMT Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p9AD3g5N2130052 for ; Mon, 10 Oct 2011 14:03:43 +0100 Received: from d06av06.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p9AK3hOF023193 for ; Mon, 10 Oct 2011 14:03:43 -0600 Date: Mon, 10 Oct 2011 15:03:41 +0200 From: Thomas Huth Message-ID: <20111010150341.35f19e79@BR8GGW75.de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [BUG] USB assertion triggers in usb_packet_complete() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Hi! I am currently facing a problem when running QEMU (up-to-date git version) with OHCI and a lot of virtual USB devices. The emulator dies with the following assertion: qemu-system-arm: hw/usb.c:337: usb_packet_complete: Assertion `p->owner != ((void *)0)' failed. To reproduce this problem, you can run the configure script with "--target-list=arm-softmmu" for example, then download the files vmlinuz-2.6.26-2-versatile and initrd.img-2.6.26-2-versatile from http://people.debian.org/~aurel32/qemu/arm/ and then run qemu like this: qemu-system-arm -kernel vmlinuz-2.6.26-2-versatile \ -initrd initrd.img-2.6.26-2-versatile -M versatilepb -usb \ -drive if=none,file=/tmp/linux-0.2.img,cache=none,id=disk0 \ -device usb-storage,drive=disk0 -usbdevice mouse \ -usbdevice keyboard -usbdevice tablet It boots the Linux kernel for a while, then dies with the above assertion. Observations: - It could be related to the fact that QEMU puts a hub into the USB tree in that case ... when I specify less USB devices, I was not able to reproduce this problem, but in that case there are also no hubs in the tree. According to the comment in usb_packet_complete(), there might be problems with the assert() in case there is a hub ... ? - So far I was only able to reproduce this problem when the emulated platform uses an OHCI controller. I haven't seen the problem to occur with UHCI yet (but I have to admit that I also haven't done a lot of tests with UHCI). Do you have any ideas what could be wrong here? Regards, Thomas