Received: from eggs.gnu.org ([140.186.70.92]:42604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDwoQ-0000wr-Rq for qemu-devel@nongnu.org; Wed, 12 Oct 2011 07:17:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDwoP-0006yL-8S for qemu-devel@nongnu.org; Wed, 12 Oct 2011 07:17:26 -0400 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:41912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDwoO-0006xY-Uq for qemu-devel@nongnu.org; Wed, 12 Oct 2011 07:17:25 -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 p9CBHM3h024293 for ; Wed, 12 Oct 2011 11:17:22 GMT Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p9CBHMD92216108 for ; Wed, 12 Oct 2011 12:17:22 +0100 Received: from d06av05.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p9CBHLTD011466 for ; Wed, 12 Oct 2011 05:17:22 -0600 Date: Wed, 12 Oct 2011 13:17:20 +0200 From: Thomas Huth Message-ID: <20111012131720.11e8520f@BR8GGW75.de.ibm.com> In-Reply-To: References: <20111010150341.35f19e79@BR8GGW75.de.ibm.com> <20111011093511.03741ed6@BR8GGW75.de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [BUG] USB assertion triggers in usb_packet_complete() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, Gerd Hoffmann Am Wed, 12 Oct 2011 11:02:42 +0100 schrieb Stefan Hajnoczi : > On Tue, Oct 11, 2011 at 8:35 AM, Thomas Huth wrote: > > Am Mon, 10 Oct 2011 15:03:41 +0200 > > schrieb Thomas Huth : > >> > >> 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. > > Hi Thomas, > I hit the same bug recently and Gerd has posted a patch which you can test: > http://patchwork.ozlabs.org/patch/118726/ Thanks for the hint, Stefan, you're right, that seems to be the same bug. Your patch is working fine in my scenario, too. However, Gerd's patch is not working for me, the assertion still triggers. It seems like usb_packet_complete() is called for the leaf node before it is called for the hub node, so the leaf node already set p->owner = NULL. Thomas