Current libvirt.git:
$ ~/d/libvirt/run gdb --args ~/d/libvirt/daemon/libvirtd --timeout=30
[...]
2014-03-27 18:44:21.816+0000: 11868: info : libvirt version: 1.2.3
2014-03-27 18:44:21.816+0000: 11868: error : virHostdevManagerNew:116 : operation failed:
Failed to create state dir '/var/run/libvirt/hostdevmgr'
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdabc6700 (LWP 11868)]
virObjectUnref (anyobj=anyobj@entry=0x7fffd412cc70) at util/virobject.c:270
270 memset(obj, 0, obj->klass->objectSize);
Missing separate debuginfos, use: debuginfo-install audit-libs-2.3.3-1.fc20.x86_64
augeas-libs-1.1.0-2.fc20.x86_64 avahi-libs-0.6.31-21.fc20.x86_64
boost-system-1.54.0-9.fc20.x86_64 boost-thread-1.54.0-9.fc20.x86_64
bzip2-libs-1.0.6-9.fc20.x86_64 ceph-libs-0.67.3-2.fc20.x86_64 cryptopp-5.6.2-3.fc20.x86_64
cyrus-sasl-gssapi-2.1.26-14.fc20.x86_64 cyrus-sasl-lib-2.1.26-14.fc20.x86_64
cyrus-sasl-md5-2.1.26-14.fc20.x86_64 cyrus-sasl-plain-2.1.26-14.fc20.x86_64
cyrus-sasl-scram-2.1.26-14.fc20.x86_64 dbus-libs-1.6.12-8.fc20.x86_64
device-mapper-libs-1.02.82-5.fc20.x86_64 fuse-libs-2.9.3-2.fc20.x86_64
glibc-2.18-12.fc20.x86_64 glusterfs-api-3.4.2-1.fc20.x86_64
glusterfs-libs-3.4.2-1.fc20.x86_64 gmp-5.1.2-2.fc20.x86_64
gnome-keyring-3.10.1-1.fc20.x86_64 gnutls-3.1.20-3.fc20.x86_64
keyutils-libs-1.5.8-1.fc20.x86_64 krb5-libs-1.11.5-2.fc20.x86_64
leveldb-1.12.0-5.fc20.x86_64 libblkid-2.24.1-1.fc20.x86_64 libcap-ng-0.7.3-6.fc20.x86_64
libcom_err-1.42.8-3.fc20.x86_64 libcurl-7.32.0-4.fc20.x86_64 libdb-5.3.28-1.fc20.x86_64
libffi-3.0.13-5.fc20.x86_64 libgcc-4.8.2-7.fc20.x86_64 libgcrypt-1.5.3-2.fc20.x86_64
libgpg-error-1.12-1.fc20.x86_64 libidn-1.28-2.fc20.x86_64 libnl3-3.2.24-1.fc20.x86_64
libpcap-1.5.3-1.fc20.x86_64 libpciaccess-0.13.2-1.fc20.x86_64
libselinux-2.2.1-6.fc20.x86_64 libsepol-2.1.9-2.fc20.x86_64 libssh2-1.4.3-8.fc20.x86_64
libstdc++-4.8.2-7.fc20.x86_64 libtasn1-3.3-2.fc20.x86_64 libuuid-2.24.1-1.fc20.x86_64
libwsman1-2.4.3-1.fc20.x86_64 libxml2-2.9.1-2.fc20.x86_64 libxslt-1.1.28-5.fc20.x86_64
netcf-libs-0.2.3-5.fc20.x86_64 nettle-2.7.1-3.fc20.x86_64 nspr-4.10.2-1.fc20.x86_64
nss-3.15.4-1.fc20.x86_64 nss-softokn-freebl-3.15.4-1.fc20.x86_64
nss-util-3.15.4-1.fc20.x86_64 numactl-libs-2.0.9-1.fc20.x86_64
openldap-2.4.39-2.fc20.x86_64 openssl-libs-1.0.1e-37.fc20.x86_64
p11-kit-0.20.2-1.fc20.x86_64 p11-kit-trust-0.20.2-1.fc20.x86_64 pcre-8.33-4.fc20.x86_64
snappy-1.1.0-2.fc20.x86_64 systemd-libs-208-14.fc20.x86_64 trousers-0.3.11.2-1.fc20.x86_64
xen-libs-4.3.1-9.fc20.x86_64 xz-libs-5.1.2-6alpha.fc20.x86_64 yajl-2.0.4-3.fc20.x86_64
zlib-1.2.8-3.fc20.x86_64
(gdb) bt
#0 virObjectUnref (anyobj=anyobj@entry=0x7fffd412cc70) at util/virobject.c:270
#1 0x00007ffff747eeb0 in virHostdevManagerNew () at util/virhostdev.c:123
#2 virHostdevManagerOnceInit () at util/virhostdev.c:65
#3 virHostdevManagerOnce () at util/virhostdev.c:71
#4 0x00007ffff44e9200 in pthread_once () from /lib64/libpthread.so.0
#5 0x00007ffff74aeabd in virOnce (once=<optimized out>, init=<optimized
out>)
at util/virthread.c:47
#6 0x00007ffff747ef07 in virHostdevManagerInitialize ()
at util/virhostdev.c:71
#7 virHostdevManagerGetDefault () at util/virhostdev.c:130
#8 0x00007fffdca2285d in qemuStateInitialize (privileged=<optimized out>,
callback=<optimized out>, opaque=<optimized out>) at
qemu/qemu_driver.c:698
#9 0x00007ffff753f83f in virStateInitialize (privileged=false,
callback=callback@entry=0x55555556bf20 <daemonInhibitCallback>,
opaque=opaque@entry=0x55555584a100) at libvirt.c:743
#10 0x000055555556bfcb in daemonRunStateInit (
opaque=opaque@entry=0x55555584a100) at libvirtd.c:919
#11 0x00007ffff74aea0e in virThreadHelper (data=<optimized out>)
at util/virthread.c:197
#12 0x00007ffff44e3f33 in start_thread () from /lib64/libpthread.so.0
#13 0x00007ffff3e0aded in clone () from /lib64/libc.so.6
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org