Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1639218

Summary: iothread: qemu-kvm core dumped when define iothread object with typos
Product: Red Hat Enterprise Linux 7 Reporter: Longxiang Lyu <lolyu>
Component: qemu-kvm-rhevAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED DUPLICATE QA Contact: aihua liang <aliang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: aliang, chayang, coli, juzhang, lolyu, michen, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 03:01:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Longxiang Lyu 2018-10-15 10:19:10 UTC
Description of problem:
iothread: qemu-kvm core dumped when define iothread object with wrong parameters

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.12.0-18.el7

How reproducible:
100%

Steps to Reproduce:
1. boot qemu-kvm with iothread, but pass wrong parameters
# qemu-kvm -object iothread,id=iothread0,?
qemu-kvm: util/qemu-thread-posix.c:131: qemu_cond_destroy: Assertion `cond->initialized' failed.
Aborted (core dumped)
# qemu-kvm -object iothread,id=iothread0,poll-max-ns=-1
qemu-kvm: util/qemu-thread-posix.c:131: qemu_cond_destroy: Assertion `cond->initialized' failed.
Aborted (core dumped)


Actual results:
qemu-kvm core dumped

Expected results:
qemu-kvm should warn user of the wrong parameters instead of core dump

Additional info:

Comment 3 Longxiang Lyu 2018-10-16 03:01:55 UTC
bt info:
(gdb) bt
#0  0x00007f39947b5207 in raise () at /lib64/libc.so.6
#1  0x00007f39947b68f8 in abort () at /lib64/libc.so.6
#2  0x00007f39947ae026 in __assert_fail_base () at /lib64/libc.so.6
#3  0x00007f39947ae0d2 in  () at /lib64/libc.so.6
#4  0x000055d54494536b in qemu_cond_destroy (cond=cond@entry=0x55d545f5bd68) at util/qemu-thread-posix.c:131
#5  0x000055d544713813 in iothread_instance_finalize (obj=<optimized out>) at iothread.c:138
#6  0x000055d544864182 in object_unref (type=<optimized out>, obj=0x55d545f5bce0) at qom/object.c:462
#7  0x000055d544864182 in object_unref (data=0x55d545f5bce0) at qom/object.c:476
#8  0x000055d544864182 in object_unref (obj=obj@entry=0x55d545f5bce0) at qom/object.c:924
#9  0x000055d54486715d in user_creatable_add_type (type=type@entry=0x55d545f0bfb0 "iothread", id=id@entry=0x55d545f0bf90 "iothread0", qdict=qdict@entry=0x55d545fec000, v=v@entry=
    0x55d545ff2000, errp=errp@entry=0x7ffd5fd8f760) at qom/object_interfaces.c:107
#10 0x000055d5448673a6 in user_creatable_add_opts (opts=opts@entry=0x55d545f0cdc0, errp=errp@entry=0x7ffd5fd8f760) at qom/object_interfaces.c:137
#11 0x000055d544867528 in user_creatable_add_opts_foreach (opaque=0x55d544718860 <object_create_initial>, opts=0x55d545f0cdc0, errp=<optimized out>) at qom/object_interfaces.c:161
#12 0x000055d54495283a in qemu_opts_foreach (list=<optimized out>, func=0x55d5448674e0 <user_creatable_add_opts_foreach>, opaque=opaque@entry=0x55d544718860 <object_create_initial>, errp=errp@entry=0x0)
    at util/qemu-option.c:1104
#13 0x000055d5445e4e7a in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4392

mark as duplicate.

*** This bug has been marked as a duplicate of bug 1625567 ***