Le 19/11/2010 08:33, Wen Congyang a écrit :
p server->clients
Sorry for the noise,
but it's appear, that i encounter the same problem, compiling libvirt
with the latest git snapshot.
Libivrft is compiled with the following options:
CC="gcc -ggdb -O1 -Wall" ./configure --build=x86_64-linux-gnu
--prefix=/usr --includedir="\${prefix}/include"
--mandir="\${prefix}/share/man" --infodir="\${prefix}/share/info"
--sysconfdir=/etc --localstatedir=/var
--libexecdir="\${prefix}/lib/libvirt" --disable-maintainer-mode
--disable-dependency-tracking --disable-silent-rules --srcdir=.
--disable-rpath --disable-strip --with-qemu
--with-qemu-user=libvirt-qemu --with-qemu-group=kvm
--without-openvz --without-avahi
--without-sasl
--without-polkit
--without-udev --without-hal
--with-storage-fs --with-storage-lvm
--without-storage-iscsi --with-storage-disk
--with-init-scripts=none --without-numactl
--without-selinux --without-esx
--without-libssh2 --without-capng
--without-macvtap
--enable-debug --without-hal --without-xen
--without-vbox --without-lxc
Build64:/home/menil-jp/libvirt-0.8.5# /etc/init.d/libvirt-bin start
Starting libvirt management daemon: libvirtd.
Build64:/home/menil-jp/libvirt-0.8.5# virsh list
ID Nom État
----------------------------------
Build64:/home/menil-jp/libvirt-0.8.5# virsh list
erreur :cannot recv data: : Connection reset by peer
erreur :impossible de se connecter à l'hyperviseur
Build64:/home/menil-jp/libvirt-0.8.5# gdb /usr/sbin/libvirtd /core.15695
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/libvirtd...done.
[New Thread 15702]
[New Thread 15701]
[New Thread 15699]
[New Thread 15698]
[New Thread 15697]
[New Thread 15695]
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libvirt-qemu.so.0...done.
Loaded symbols for /usr/lib/libvirt-qemu.so.0
Reading symbols from /usr/lib/libvirt.so.0...done.
Loaded symbols for /usr/lib/libvirt.so.0
Reading symbols from /lib/libdevmapper.so.1.02.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libdevmapper.so.1.02.1
Reading symbols from /usr/lib/libgnutls.so.26...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgnutls.so.26
Reading symbols from /usr/lib/libgcrypt.so.11...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /usr/lib/libpcap.so.0.8...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libpcap.so.0.8
Reading symbols from /usr/lib/libxml2.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /lib/libpthread.so.0...Reading symbols from
/usr/lib/debug/lib/libpthread-2.11.2.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...Reading symbols from
/usr/lib/debug/lib/libc-2.11.2.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libselinux.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libselinux.so.1
Reading symbols from /lib/libudev.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib/libudev.so.0
Reading symbols from /usr/lib/libtasn1.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libgpg-error.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /lib/libdl.so.2...Reading symbols from
/usr/lib/debug/lib/libdl-2.11.2.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...Reading symbols from
/usr/lib/debug/lib/libm-2.11.2.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from
/usr/lib/debug/lib/ld-2.11.2.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libnss_compat.so.2...Reading symbols from
/usr/lib/debug/lib/libnss_compat-2.11.2.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...Reading symbols from
/usr/lib/debug/lib/libnsl-2.11.2.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...Reading symbols from
/usr/lib/debug/lib/libnss_nis-2.11.2.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...Reading symbols from
/usr/lib/debug/lib/libnss_files-2.11.2.so...done.
(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Core was generated by `/usr/sbin/libvirtd -d'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000000004185ea in qemudDispatchServer (server=0x116ba30,
sock=<value optimized out>) at libvirtd.c:1459
1459 server->clients[server->nclients++] = client;
(gdb) bt
#0 0x00000000004185ea in qemudDispatchServer (server=0x116ba30,
sock=<value optimized out>) at libvirtd.c:1459
#1 0x0000000000418b01 in qemudDispatchServerEvent (watch=5, fd=8,
events=1, opaque=<value optimized out>) at libvirtd.c:2225
#2 0x00000000004165d1 in virEventDispatchHandles () at event.c:467
#3 virEventRunOnce () at event.c:592
#4 0x00000000004174e6 in qemudOneLoop () at libvirtd.c:2234
#5 0x00000000004177c9 in qemudRunLoop (opaque=<value optimized out>) at
libvirtd.c:2343
#6 0x00007ff54ca668ba in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#7 0x00007ff54c7ce02d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8 0x0000000000000000 in ?? ()
(gdb) p server->clients
$1 = (struct qemud_client **) 0x0
Is there anything i can provide, to debug further?
Regards.