Bug 1094667

Summary: libvirtd 1.2.3 crashed when executing qemu agent command
Product: [Community] Virtualization Tools Reporter: huchaohong
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DEFERRED QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-10 18:17:27 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 Flags
libvirtd gdb info
none
script to reproduce problem none

Description huchaohong 2014-05-06 09:24:27 UTC
Created attachment 892817 [details]
libvirtd gdb info

Description of problem:
this problem is similar to [bug 1058149],but the crash point is different.It was also arised when exucuting qemu-agent-command during shutting down virutal machine. The difference between my experiment with [bug 1058149] is that i do the same thing to 13 vms simultaneously.From the attachment,you can see the crash point. According to my analysis, despite the check of qemuDomainAgentAvailable before execute qemuAgentArbitraryCommand, but sometimes 
the agent will be closed and set to NULL after the check of qemuDomainAgentAvailable, and this will cause the segment that you can see in gdb.txt.

Version-Release number of selected component (if applicable):
1.2.3 

How reproducible:
create some virtual machine,and modify the script in attachment according to your vm names. Run the script, after a while , libvirtd will crash

Steps to Reproduce:
1. create some vm
2. modify the script according to vm names,run the script
3. wait for a while

Actual results:
libvirtd crashed

Expected results:
libvirtd works well when doing qemu agent operation during vm shutdown

Additional info:

Comment 1 huchaohong 2014-05-06 09:25:59 UTC
Created attachment 892818 [details]
script to reproduce problem

Comment 2 Cole Robinson 2016-04-10 18:17:27 UTC
Sorry this never received a response. I suspect this was fixed upstream in the interim, so closing as DEFERRED, but if you can still reproduce with a more recent libvirt version, please reopen and post a new backtrace