Bug 660037 - libvirt-bin: sometimes(randomly) crashes when connecting using python-libvirt
libvirt-bin: sometimes(randomly) crashes when connecting using python-libvirt
Status: CLOSED INSUFFICIENT_DATA
Product: Virtualization Tools
Classification: Community
Component: libvirt (Show other bugs)
unspecified
Unspecified Unspecified
low Severity medium
: ---
: ---
Assigned To: Libvirt Maintainers
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-05 00:45 EST by David
Modified: 2015-03-18 04:34 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-18 04:34:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David 2010-12-05 00:45:12 EST
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

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