Bug 660037

Summary: libvirt-bin: sometimes(randomly) crashes when connecting using python-libvirt
Product: [Community] Virtualization Tools Reporter: David <disclosure>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: crobinso, jtomko, xen-maint
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: 2015-03-18 08:34:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David 2010-12-05 05:45:12 UTC
Package: libvirt-bin
Version: 0.8.3-5
Severity: normal



I cannot reliably reproduce this, but here is the python I was using to crash libvirt-bin (sometimes):

import libvirt
import sys


def main():
	#conn = libvirt.openReadOnly(None)
	conn = libvirt.openReadOnly("qemu:///system")
	print conn.isSecure()
	print conn.listDefinedDomains()


if __name__ == "__main__":
	main()

I was switching between a conn None and the conn connected to qemu:///system. The conn (established with None in the call) seems to be talking to virtualbox.

When it crashes I see something like this:
[46609.226658] libvirtd[2139]: segfault at 7fa018db5bdf ip 0000000000419293 sp 00007fa013d8a270 error 7 in libvirtd[400000+dc000]
or this
[49173.212641] libvirtd[15647]: segfault at 7f9ac72acbdf ip 00007f9acb7bcb73 sp 00007f9ac2a82270 error 7 in libvirtd[7f9acb79c000+e5000]
in dmesg output. 

In /var/log/messages, the following is present(before the crash - I cannot be sure on the exact ordering of events):

Dec  5 15:43:46 randombox libvirtd: 15:43:46.381: warning : lxcStartup:1900 : Unable to create cgroup for driver: No such device or address
Dec  5 15:43:47 randombox libvirtd: 15:43:47.944: warning : qemudDispatchSignalEvent:396 : Shutting down on signal 15
Dec  5 15:43:49 randombox libvirtd: 15:43:49.212: warning : qemudStartup:1832 : Unable to create cgroup for driver: No such device or address
Dec  5 15:43:49 randombox libvirtd: 15:43:49.645: warning : qemudParsePCIDeviceStrs:1422 : Unexpected exit status '1', qemu probably failed
Dec  5 15:43:49 randombox libvirtd: 15:43:49.921: warning : qemudParsePCIDeviceStrs:1422 : Unexpected exit status '1', qemu probably failed


-- System Information:
Debian Release: 5.0.7
  APT prefers stable
  APT policy: (900, 'stable'), (650, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.36.1 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash


Additional info:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605964