Bug 1094667 - libvirtd 1.2.3 crashed when executing qemu agent command
Summary: libvirtd 1.2.3 crashed when executing qemu agent command
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-06 09:24 UTC by huchaohong
Modified: 2016-04-10 18:17 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-04-10 18:17:27 UTC
Embargoed:


Attachments (Terms of Use)
libvirtd gdb info (2.08 KB, text/plain)
2014-05-06 09:24 UTC, huchaohong
no flags Details
script to reproduce problem (970 bytes, application/x-shellscript)
2014-05-06 09:25 UTC, huchaohong
no flags Details

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


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