Bug 757142 - Invalid command line option -device '?=x' crashes
Summary: Invalid command line option -device '?=x' crashes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Markus Armbruster
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-25 15:05 UTC by Markus Armbruster
Modified: 2013-01-10 00:34 UTC (History)
8 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.211.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed
Clone Of:
Environment:
Last Closed: 2012-06-20 11:37:05 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0746 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2012-06-19 19:31:48 UTC

Description Markus Armbruster 2011-11-25 15:05:24 UTC
Description of problem:
Actually, any -device with parameter "?" and without parameter driver crashes.  Such arguments make no sense.

How reproducible:
Always

Steps to Reproduce:
1. qemu-kvm --nodefaults --enable-kvm -vnc :0 -S -m 384 -device '?=x'
  
Actual results:
SEGV

Expected results:
Fails with suitable error message

Additional info:
Fixed upstream in commit 542379f4.

Comment 6 Sibiao Luo 2012-01-31 03:12:50 UTC
Reproduce the issue with qemu-kvm-0.12.1.2-2.209.el6_2.2.x86_64
Actual Result:
The driver crashes when the -device with parameter "?". 
# /usr/libexec/qemu-kvm --nodefaults --enable-kvm -vnc :0 -S -m 1024 -device '?=x'
Segmentation fault (core dumped)

Verified this issue with qemu-kvm-0.12.1.2-2.221.el6.x86_64
Actual Result:
Fails with suitable error message
# /usr/libexec/qemu-kvm --nodefaults --enable-kvm -vnc :0 -S -m 1024 -device '?=x'
qemu-kvm: -device ?=x: Parameter 'driver' is missing

Above all, this issue have been fixed.

Comment 8 Markus Armbruster 2012-05-04 14:50:35 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation needed

Comment 9 errata-xmlrpc 2012-06-20 11:37:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0746.html


Note You need to log in before you can comment on or make changes to this bug.