From patchwork Mon Feb 27 15:54:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 143218 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E08DEB6FC2 for ; Tue, 28 Feb 2012 02:54:52 +1100 (EST) Received: from localhost ([::1]:33600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S22uW-0007gp-M2 for incoming@patchwork.ozlabs.org; Mon, 27 Feb 2012 10:54:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S22uL-0007gY-Un for qemu-devel@nongnu.org; Mon, 27 Feb 2012 10:54:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S22uH-0004P7-Md for qemu-devel@nongnu.org; Mon, 27 Feb 2012 10:54:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S22uH-0004P0-F2 for qemu-devel@nongnu.org; Mon, 27 Feb 2012 10:54:33 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1RFsWIA011199 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 27 Feb 2012 10:54:32 -0500 Received: from rincewind.home.kraxel.org (ovpn-116-54.ams2.redhat.com [10.36.116.54]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q1RFsUue025560; Mon, 27 Feb 2012 10:54:31 -0500 Message-ID: <4F4BA735.7030607@redhat.com> Date: Mon, 27 Feb 2012 16:54:29 +0100 From: Gerd Hoffmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120210 Thunderbird/10.0.1 MIME-Version: 1.0 To: Erik Rull 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> In-Reply-To: <1726500113.424119.1330354349503.JavaMail.open-xchange@email.1und1.de> X-Enigmail-Version: 1.3.5 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: "qemu-devel@nongnu.org" Subject: Re: [Qemu-devel] qemu assertion failed with usb on current git master! X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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: > 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 --- 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) {