Bug 871273
Summary: | [regression]The libvirtd service will be dead after qemu-attach domain PID | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Xuesong Zhang <xuzhang> | ||||
Component: | libvirt | Assignee: | Gunannan Ren <gren> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | unspecified | CC: | acathrow, crobinso, dallan, dyasny, dyuan, gren, mzhan, rwu, weizhan, ydu | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-12-09 21:20:12 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: | |||||||
Attachments: |
|
Description
Xuesong Zhang
2012-10-30 06:21:19 UTC
Created attachment 635348 [details]
libvirtd.log
Attached is the libvirtd.log for your reference
Add Regression Keyword per the bug description. Backtrace: #0 0x00000037efd27a9a in __strcmp_sse42 () from /lib64/libc.so.6 #1 0x00007fd39a7c5de1 in qemuCapsGetCanonicalMachine (caps=0x7fd3940d1540, name=0x0) at qemu/qemu_capabilities.c:1855 #2 0x00007fd39a82a9c8 in qemuCanonicalizeMachine (def=0x7fd380000af0, caps=<value optimized out>) at qemu/qemu_driver.c:1520 #3 0x00007fd39a82ac26 in qemuDomainAttach (conn=0x7fd384000c60, pid_value=4379, flags=<value optimized out>) at qemu/qemu_driver.c:12397 #4 0x0000003cde800e20 in virDomainQemuAttach (conn=0x7fd384000c60, pid_value=4379, flags=0) at libvirt-qemu.c:176 #5 0x000000000040f70e in qemuDispatchDomainAttach (server=<value optimized out>, client=0xd24d10, msg=<value optimized out>, rerr=0x7fd3a0186bc0, args=0x7fd380000ac0, ret=0x7fd3800008c0) at qemu_dispatch.h:111 #6 qemuDispatchDomainAttachHelper (server=<value optimized out>, client=0xd24d10, msg=<value optimized out>, rerr=0x7fd3a0186bc0, args=0x7fd380000ac0, ret=0x7fd3800008c0) at qemu_dispatch.h:91 #7 0x0000003cde369f22 in virNetServerProgramDispatchCall (prog=0xd1f110, server=0xd16380, client=0xd24d10, msg=0xd25f70) at rpc/virnetserverprogram.c:431 #8 virNetServerProgramDispatch (prog=0xd1f110, server=0xd16380, client=0xd24d10, msg=0xd25f70) at rpc/virnetserverprogram.c:304 #9 0x0000003cde36ae3e in virNetServerProcessMsg (srv=<value optimized out>, client=0xd24d10, prog=<value optimized out>, msg=0xd25f70) at rpc/virnetserver.c:171 ---Type <return> to continue, or q <return> to quit--- #10 0x0000003cde36b9fb in virNetServerHandleJob (jobOpaque=<value optimized out>, opaque=<value optimized out>) at rpc/virnetserver.c:192 #11 0x0000003cde2735be in virThreadPoolWorker (opaque=<value optimized out>) at util/threadpool.c:144 #12 0x0000003cde272ba6 in virThreadHelper (data=<value optimized out>) at util/threads-pthread.c:161 #13 0x00000037f0007851 in start_thread () from /lib64/libpthread.so.0 #14 0x00000037efce890d in clone () from /lib64/libc.so.6 patch sent to upstream https://www.redhat.com/archives/libvir-list/2012-November/msg00022.html commit 1851a0c8640f0b42e20a2ccfd5cdb9a9409517ec Author: Guannan Ren <gren> Date: Thu Nov 1 19:43:03 2012 +0800 qemu: use default machine type if missing it in qemu command line BZ:https://bugzilla.redhat.com/show_bug.cgi?id=871273 when using virsh qemu-attach to attach an existing qemu process, if it misses the -M option in qemu command line, libvirtd crashed because the NULL value of def->os.machine in later use. Example: /usr/libexec/qemu-kvm -name foo \ -cdrom /var/lib/libvirt/images/boot.img \ -monitor unix:/tmp/demo,server,nowait \ error: End of file while reading data: Input/output error error: Failed to reconnect to the hypervisor This patch tries to set default machine type if the value of def->os.machine is still NULL after qemu command line parsing. Closing since this is an upstream BZ |