Bug 757142

Summary: Invalid command line option -device '?=x' crashes
Product: Red Hat Enterprise Linux 6 Reporter: Markus Armbruster <armbru>
Component: qemu-kvmAssignee: Markus Armbruster <armbru>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: acathrow, bsarathy, juzhang, mkenneth, qzhang, sluo, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.211.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 11:37:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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