Bug 947360 - Coredump when using QMP monitor directly after qemu execution
Summary: Coredump when using QMP monitor directly after qemu execution
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-02 08:44 UTC by Lukáš Doktor
Modified: 2013-04-02 10:47 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-02 10:47:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukáš Doktor 2013-04-02 08:44:06 UTC
Description of problem:
When I run qemu and immediately use QMP it coredumps.

Version-Release number of selected component (if applicable):
qemu-kvm-1.0.1-4.fc17.x86_64
kernel-3.8.3-103.fc17.x86_64

How reproducible:
Always

Steps to Reproduce:
1. echo -e '{ "execute": "qmp_capabilities" }\n{ "execute": "query-commands" }\n{ "execute": "quit" }' | qemu-kvm -qmp stdio
  
Actual results:
Segmentation fault (core dumped)

Expected results:
List the supported qmp commands and exit.

Additional info:
I can also reproduce this with qemu-kvm -qmp unix:/tmp/aaa,server (without nowait) and echo '{ "execute": "qmp_capabilities" }' | socat unix:/tmp/aaa -
When I use nowait and delay the write even for 0.01s sleep it works fine.

Comment 1 Lukáš Doktor 2013-04-02 10:47:49 UTC
It works in upstream 1.3.91 and Fedora 18.


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