assertion failed when using "-usb" option
Public bug reported:
SUMMARY:
----------
Description: Latest 'master' makes it impossible to use "-usb" command line 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 empty configuration
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 && opt->desc->type == 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
** Affects: qemu
Importance: Undecided
Status: New
Signature · 43 lines
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 line 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 empty configuration 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 && opt->desc->type == 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
Also, very similar symptoms are described in #1406706, so it is possible that they are related.
Signature · 43 lines
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 line 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 empty configuration 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 && opt->desc->type == 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
** Description changed:
SUMMARY:
----------
Description: Latest 'master' makes it impossible to use "-usb" command line 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 empty configuration
+ 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 && opt->desc->type == 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
Signature · 43 lines
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 line 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 && opt->desc->type == 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
Could you test this?
--- util/qemu-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
util/qemu-option.c +1 -1
@@ -377,7 +377,7 @@ static bool qemu_opt_get_bool_helper(QemuOpts *opts, const char *name, } opt =qemu_opt_find (opts, name); -if (opt ==NULL ) { +if ((opt ==NULL ) || !opt->desc) {const QemuOptDesc *desc =find_desc_by_name (opts->list->desc, name);if (desc && desc->def_value_str) {parse_option_bool (name, desc->def_value_str, &ret, &error_abort);
--
Signature · 43 lines
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 line 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 && opt->desc->type == 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
Quoted 12 lines · Tiejun Chen
Could you test this?
Signed-off-by Tiejun Chen <[email protected]>--- util/qemu-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)util/qemu-option.c +0
-0
util/qemu-option.c static bool qemu_opt_get_bool_helper(QemuOpts *opts, const char *name, · line 383
Quoted 8 lines
util/qemu-option.c +1
-1@@ -377,7 +377,7 @@ static bool qemu_opt_get_bool_helper(QemuOpts *opts, const char *name, } opt =qemu_opt_find (opts, name); -if (opt ==NULL ) { +if ((opt ==NULL ) || !opt->desc) {const QemuOptDesc *desc =find_desc_by_name (opts->list->desc, name);if (desc && desc->def_value_str) {parse_option_bool (name, desc->def_value_str, &ret, &error_abort);
This doesn't work because it discards the usb=on|off value that was set on the command-line.
I will send a fix.
Stefan
This no longer asserts; I think Stefan fixed this and that fix is now in a release.
** Changed in: qemu
Status: New => Fix Released
Signature · 43 lines
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: Fix Released Bug description: SUMMARY: ---------- Description: Latest 'master' makes it impossible to use "-usb" command line 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 && opt->desc->type == 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