Bug 924756
Summary: | libvirtd SIGABRT when shutting down a guest | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Julio Entrena Perez <jentrena> |
Component: | libvirt | Assignee: | Eric Blake <eblake> |
Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.4 | CC: | acathrow, ajia, dallan, dyasny, dyuan, eblake, jentrena, lyarwood, mzhan, pzhukov, rwu, whuang, ydu, zhwang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-05-15 15:00:39 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: | |||
Bug Depends On: | |||
Bug Blocks: | 896690, 835616, 960054 |
Description
Julio Entrena Perez
2013-03-22 12:57:22 UTC
Hi,Julio Could you provide some clear steps to reproduce this issue ? It is hard for me to reproduce it without steps Thanks very much Wenlong (In reply to comment #4) > Hi,Julio > > Could you provide some clear steps to reproduce this issue ? > It is hard for me to reproduce it without steps > Thanks very much > > Wenlong Not really: we're not sure how to trigger the condition. I wonder if this upstream patch has any relation: https://www.redhat.com/archives/libvir-list/2013-March/msg01489.html libvirt-0.10.2-18.el6_4.3.x86_64 vdsm-4.10.2-13.0.el6ev.x86_64 qemu-kvm-rhev-0.12.1.2-2.355.el6_4.2.x86_64 I use one host with 118 vms the host load average: 100.33, 92.45, 48.45 it can be reproduced this issue , start and shutoff vms via rhevm , libvirtd is still running . Wenlong (In reply to comment #11) > libvirt-0.10.2-18.el6_4.3.x86_64 > vdsm-4.10.2-13.0.el6ev.x86_64 > qemu-kvm-rhev-0.12.1.2-2.355.el6_4.2.x86_64 > > I use one host with 118 vms the host load average: 100.33, 92.45, 48.45 > it can be reproduced this issue , start and shutoff vms via rhevm , > libvirtd is still running . > > > Wenlong Sorry ! I miss a NOT , I can not reproduc this issue . Do you have MALLOC_PERTURB_ set in the environment? If not, can you set it to a non-zero value, which will help glibc detect heap smashing bugs closer to the point at which they happen? bug 919057 describes what sounds to be a similar case of heap corruption triggered by a domain shutdown was the domain being shut down transient or persistent? This commit mentions a crash possible for transient domains, but seems to focus on auto-destroy guests (those that go away when the virConnectPtr is closed) and might not be related to the setup you were using commit 7ccad0b16d12d7616c7c21b1359f6a55a9677521 Author: Daniel P. Berrange <berrange> Date: Thu Feb 28 12:18:48 2013 +0000 Fix crash in QEMU auto-destroy with transient guests When the auto-destroy callback runs it is supposed to return NULL if the virDomainObjPtr is no longer valid. It was not doing this for transient guests, so we tried to virObjectUnlock a mutex which had been freed. This often led to a crash. Signed-off-by: Daniel P. Berrange <berrange> (In reply to comment #15) > was the domain being shut down transient or persistent? VDSM (calling libvirtd here) only creates transient domains. (In reply to comment #16) > This commit mentions a crash possible for transient domains, but seems to > focus on auto-destroy guests (those that go away when the virConnectPtr is > closed) and might not be related to the setup you were using > > commit 7ccad0b16d12d7616c7c21b1359f6a55a9677521 > Author: Daniel P. Berrange <berrange> > Date: Thu Feb 28 12:18:48 2013 +0000 > > Fix crash in QEMU auto-destroy with transient guests > > When the auto-destroy callback runs it is supposed to return > NULL if the virDomainObjPtr is no longer valid. It was not > doing this for transient guests, so we tried to virObjectUnlock > a mutex which had been freed. This often led to a crash. > > Signed-off-by: Daniel P. Berrange <berrange> I'm not entirely sure how to configure auto destroy. Would the domain need to start with the VIR_DOMAIN_START_AUTODESTROY flag? AFAICT VDSM doesn't set this. Lee Hmm - another upstream message about a race still present (and THIS one sounds more like what we are hitting with guest shutdown): https://www.redhat.com/archives/libvir-list/2013-April/msg00625.html bug 915353 describes a crash on shutdown; it was fixed for libvirt-0.10.2-18.el6_4.1 - I'm starting to think that this particular fix is the one that solves the problem at hand. *** This bug has been marked as a duplicate of bug 915353 *** |