Received: from eggs.gnu.org ([2001:4830:134:3::10]:42485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y80dh-0002uB-BM for qemu-devel@nongnu.org; Mon, 05 Jan 2015 00:55:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y80dc-0003Ij-CF for qemu-devel@nongnu.org; Mon, 05 Jan 2015 00:55:41 -0500 Received: from indium.canonical.com ([91.189.90.7]:35233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y80dc-0003IE-0V for qemu-devel@nongnu.org; Mon, 05 Jan 2015 00:55:36 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1Y80da-00064t-GN for ; Mon, 05 Jan 2015 05:55:34 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 615932E80BB for ; Mon, 5 Jan 2015 05:55:34 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 05 Jan 2015 05:48:17 -0000 From: Tiejun Chen Sender: bounces@canonical.com References: <20150104163122.22342.19871.malonedeb@gac.canonical.com> Message-Id: <20150105054817.22315.27766.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1407454] Re: assertion failed when using "-usb" option Reply-To: Bug 1407454 <1407454@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Could you test this? Signed-off-by: Tiejun Chen --- util/qemu-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/qemu-option.c b/util/qemu-option.c index a708241..7cb3601 100644 --- a/util/qemu-option.c +++ b/util/qemu-option.c @@ -377,7 +377,7 @@ static bool qemu_opt_get_bool_helper(QemuOpts *opts, co= nst char *name, } opt =3D qemu_opt_find(opts, name); - if (opt =3D=3D NULL) { + if ((opt =3D=3D NULL) || !opt->desc) { const QemuOptDesc *desc =3D find_desc_by_name(opts->list->desc, na= me); if (desc && desc->def_value_str) { parse_option_bool(name, desc->def_value_str, &ret, &error_abor= t); -- -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1407454 Title: assertion failed when using "-usb" option Status in QEMU: New Bug description: SUMMARY: ---------- Description: Latest 'master' makes it impossible to use "-usb" command li= ne on any target Host platform: Linux x86-64 Guest platform: probably all (at least x86-64, i386, arm and ppc) REPRODUCE: ---------- How to reproduce: 1. Run the following command: $ qemu-system-x86_64 -usb Expected result: Starting virtual machine with default configuration and USB enabled. Actual result: Qemu crashes with following message: qemu-system-x86_64: /home/mplucinski/Developer/Open_Source/qemu/qemu.git/= util/qemu-option.c:387: qemu_opt_get_bool_helper: Assertion `opt->desc && o= pt->desc->type =3D=3D QEMU_OPT_BOOL' failed. Aborted MORE INFORMATION: ---------- Same happens when trying to run other target, e.g. $ qemu-system-i386 -usb $ qemu-system-arm -machine kmz -usb First commit where the issue occurs (bisection result): 49d2e648e8087d154d8bf8b91f27c8e05e79d5a6 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1407454/+subscriptions