On 08/24/2012 08:16 PM, Shawn Furrow
wrote:
Hi
all,
For
some reason when I run "libvirtd -d" as root it seems to not
start. I investigate by running "libvirtd -v" as root and I get
a segfault. Here is the output:
2012-08-23 19:01:23.237+0000:
27464: info : libvirt version: 0.10.0
2012-08-23 19:01:23.237+0000: 27464: error :
virDriverLoadModule:78 : failed to load module
/usr/local/lib/libvirt/connection-driver/libvirt_driver_qemu.so
/usr/local/lib/libvirt/connection-driver/libvirt_driver_qemu.so:
undefined symbol: virSecurityManagerGetProcessLabel
2012-08-23 19:01:23.238+0000: 27464: error :
virDriverLoadModule:78 : failed to load module
/usr/local/lib/libvirt/connection-driver/libvirt_driver_lxc.so
/usr/local/lib/libvirt/connection-driver/libvirt_driver_lxc.so:
undefined symbol: virSecurityManagerGetProcessLabel
Caught Segmentation violation dumping internal log buffer:
====== start of log =====
2012-08-23 19:01:23.235+000027464: debug : main:1120 :
Decided on pid file path '/usr/local/var/run/libvirtd.pid'
2012-08-23 19:01:23.235+000027464: debug : main:1130 :
Decided on socket paths
'/usr/local/var/run/libvirt/libvirt-sock' and
'/usr/local/var/run/libvirt/libvirt-sock-ro'
2012-08-23 19:01:23.235+000027464: debug : main:1168 :
Ensuring run dir '/usr/local/var/run/libvirt' exists
2012-08-23 19:01:23.235+000027464: debug :
virEventRegisterDefaultImpl:204 : registering default event
implementation
2012-08-23 19:01:23.235+000027464: debug :
virEventPollAddHandle:111 : Used 0 handle slots, adding at
least 10 more
2012-08-23 19:01:23.235+000027464: debug :
virEventPollInterruptLocked:697 : Skip interrupt, 0 0
2012-08-23 19:01:23.236+000027464: debug :
virEventPollAddHandle:136 : EVENT_POLL_ADD_HANDLE: watch=1
fd=5 events=1 cb=0x7f323cd415a0 opaque=(nil) ff=(nil)
2012-08-23 19:01:23.236+000027464: debug :
virEventRegisterImpl:177 : addHandle=0x7f323cd423d0
updateHandle=0x7f323cd414a0 removeHandle=0x7f323cd41360
addTimeout=0x7f323cd42220 updateTimeout=0x7f323cd415e0
removeTimeout=0x7f323cd41260
2012-08-23 19:01:23.236+000027464: debug :
virNetServerNew:407 : srv=0xdd8890 refs=1
2012-08-23 19:01:23.236+000027464: debug : main:1206 :
Dropping privileges (if required)
2012-08-23 19:01:23.236+000027464: debug :
virDriverModuleInitialize:53 : Module dir
/usr/local/lib/libvirt/connection-driver
2012-08-23 19:01:23.236+000027464: debug :
virDriverLoadModule:66 : Module load network
2012-08-23 19:01:23.236+000027464: debug :
virRegisterNetworkDriver:564 : registering Network as
network driver 4
2012-08-23 19:01:23.236+000027464: debug :
virDriverLoadModule:66 : Module load storage
2012-08-23 19:01:23.236+000027464: debug :
virRegisterStorageDriver:624 : registering storage as
storage driver 4
2012-08-23 19:01:23.236+000027464: debug :
virDriverLoadModule:66 : Module load secret
2012-08-23 19:01:23.237+000027464: debug :
virRegisterSecretDriver:684 : registering secret as secret
driver 3
2012-08-23 19:01:23.237+000027464: debug :
virDriverLoadModule:66 : Module load nwfilter
2012-08-23 19:01:23.237+000027464: debug :
virRegisterNWFilterDriver:714 : registering nwfilter as
network filter driver 3
2012-08-23 19:01:23.237+000027464: debug :
virDriverLoadModule:66 : Module load qemu
2012-08-23 19:01:23.237+000027464: error :
virDriverLoadModule:78 : failed to load module
/usr/local/lib/libvirt/connection-driver/libvirt_driver_qemu.so
/usr/local/lib/libvirt/connection-driver/libvirt_driver_qemu.so:
undefined symbol: virSecurityManagerGetProcessLabel
2012-08-23 19:01:23.238+000027464: debug :
virDriverLoadModule:66 : Module load lxc
2012-08-23 19:01:23.238+000027464: error :
virDriverLoadModule:78 : failed to load module
/usr/local/lib/libvirt/connection-driver/libvirt_driver_lxc.so
/usr/local/lib/libvirt/connection-driver/libvirt_driver_lxc.so:
undefined symbol: virSecurityManagerGetProcessLabel
2012-08-23 19:01:23.238+000027464: debug :
virDriverLoadModule:66 : Module load uml
2012-08-23 19:01:23.238+000027464: debug :
virRegisterDriver:732 : driver=0x7f3232ec7760 name=UML
2012-08-23 19:01:23.238+000027464: debug :
virRegisterDriver:747 : registering UML as driver 6
2012-08-23 19:01:23.238+000027464: debug :
virDriverLoadModule:66 : Module load xen
2012-08-23 19:01:23.239+000027464: debug :
virRegisterDriver:732 : driver=0x7f3232caad00 name=Xen
2012-08-23 19:01:23.239+000027464: debug :
virRegisterDriver:747 : registering Xen as driver 7
2012-08-23 19:01:23.239+000027464: debug :
virNetServerProgramNew:63 : prog=0xddca40 refs=1
2012-08-23 19:01:23.239+000027464: debug :
virNetServerProgramRef:84 : prog=0xddca40 refs=2
2012-08-23 19:01:23.239+000027464: debug :
virNetServerProgramNew:63 : prog=0xddcbc0 refs=1
2012-08-23 19:01:23.239+000027464: debug :
virNetServerProgramRef:84 : prog=0xddcbc0 refs=2
2012-08-23 19:01:23.239+000027464: debug :
virEventPollInterruptLocked:697 : Skip interrupt, 0 0
2012-08-23 19:01:23.239+000027464: debug :
virEventPollAddHandle:136 : EVENT_POLL_ADD_HANDLE: watch=2
fd=7 events=1 cb=0x7f323ce241e0 opaque=0xdd8890 ff=(nil)
2012-08-23 19:01:23.239+000027464: debug : main:1257 :
Attempting to configure auditing subsystem
2012-08-23 19:01:23.239+000027464: debug : main:1263 :
Proceeding without auditing
2012-08-23 19:01:23.239+000027464: debug : virHookCheck:119
: No hook script /usr/local/etc/libvirt/hooks/daemon
2012-08-23 19:01:23.239+000027464: debug : virHookCheck:119
: No hook script /usr/local/etc/libvirt/hooks/qemu
2012-08-23 19:01:23.239+000027464: debug : virHookCheck:119
: No hook script /usr/local/etc/libvirt/hooks/lxc
2012-08-23 19:01:23.239+000027464: debug :
daemonSetupNetworking:464 : Registering unix socket
/usr/local/var/run/libvirt/libvirt-sock
2012-08-23 19:01:23.239+000027464: debug :
virNetSocketNew:119 : localAddr=0x7fff419bf530
remoteAddr=(nil) fd=9 errfd=-1 pid=0
2012-08-23 19:01:23.239+000027464: debug :
virNetSocketNew:179 : RPC_SOCKET_NEW: sock=0xddcbf0 refs=1
fd=9 errfd=-1 pid=0 localAddr=127.0.0.1;0, remoteAddr=(null)
2012-08-23 19:01:23.239+000027464: debug :
virNetSocketRef:713 : RPC_SOCKET_REF: sock=0xddcbf0 refs=2
2012-08-23 19:01:23.239+000027464: debug :
virEventPollInterruptLocked:697 : Skip interrupt, 0 0
2012-08-23 19:01:23.239+000027464: debug :
virEventPollAddHandle:136 : EVENT_POLL_ADD_HANDLE: watch=3
fd=9 events=0 cb=0x7f323ce2ab10 opaque=0xddcbf0
ff=0x7f323ce2ba60
2012-08-23 19:01:23.239+000027464: debug :
daemonSetupNetworking:474 : Registering unix socket
/usr/local/var/run/libvirt/libvirt-sock-ro
2012-08-23 19:01:23.239+000027464: debug :
virNetSocketNew:119 : localAddr=0x7fff419bf530
remoteAddr=(nil) fd=10 errfd=-1 pid=0
2012-08-23 19:01:23.239+000027464: debug :
virNetSocketNew:179 : RPC_SOCKET_NEW: sock=0xddd430 refs=1
fd=10 errfd=-1 pid=0 localAddr=127.0.0.1;0,
remoteAddr=(null)
2012-08-23 19:01:23.239+000027464: debug :
virNetSocketRef:713 : RPC_SOCKET_REF: sock=0xddd430 refs=2
2012-08-23 19:01:23.239+000027464: debug :
virEventPollInterruptLocked:697 : Skip interrupt, 0 0
2012-08-23 19:01:23.239+000027464: debug :
virEventPollAddHandle:136 : EVENT_POLL_ADD_HANDLE: watch=4
fd=10 events=0 cb=0x7f323ce2ab10 opaque=0xddd430
ff=0x7f323ce2ba60
2012-08-23 19:01:23.239+000027464: debug :
virNetServerRef:420 : srv=0xdd8890 refs=2
2012-08-23 19:01:23.239+000027464: debug :
virNetlinkEventServiceStart:656 : libnl was not available at
build time
2012-08-23 19:01:23.239+000027464: debug :
virNetServerRun:714 : srv=0xdd8890 quit=0
2012-08-23 19:01:23.239+000027464: debug :
virEventRunDefaultImpl:244 : running default event
implementation
2012-08-23 19:01:23.239+000027464: debug :
virEventPollCleanupTimeouts:501 : Cleanup 0
2012-08-23 19:01:23.239+000027464: debug :
virEventPollCleanupTimeouts:537 : Found 0 out of 0 timeout
slots used, releasing 0
2012-08-23 19:01:23.239+000027464: debug :
virEventPollCleanupHandles:549 : Cleanup 4
2012-08-23 19:01:23.240+000027464: debug :
virEventPollMakePollFDs:378 : Prepare n=0 w=1, f=5 e=1 d=0
2012-08-23 19:01:23.240+000027475: debug :
virStateInitialize:798 : Running global init for Remote
state driver
2012-08-23 19:01:23.240+000027475: debug :
virStateInitialize:798 : Running global init for Network
state driver
2012-08-23 19:01:23.240+000027464: debug :
virEventPollMakePollFDs:378 : Prepare n=1 w=2, f=7 e=1 d=0
2012-08-23 19:01:23.240+000027464: debug :
virEventPollMakePollFDs:378 : Prepare n=2 w=3, f=9 e=0 d=0
2012-08-23 19:01:23.240+000027464: debug :
virEventPollMakePollFDs:378 : Prepare n=3 w=4, f=10 e=0 d=0
2012-08-23 19:01:23.240+000027464: debug :
virEventPollCalculateTimeout:320 : Calculate expiry of 0
timers
2012-08-23 19:01:23.240+000027464: debug :
virEventPollCalculateTimeout:346 : Timeout at 0 due in -1 ms
2012-08-23 19:01:23.240+000027464: debug :
virEventPollRunOnce:614 : EVENT_POLL_RUN: nhandles=2
timeout=-1
====== end of log =====
Segmentation fault/
However, when I run "libvirtd -d" as me, it does not
segfault and continues running. However I cannot connect to
the libvirt-sock because it gets created at
"$HOME/.cache/libvirt/libvirt-sock" but virsh looks for it at
"/usr/local/var/run/libvirt-sock".
Here is what I get when I run "libvirtd -v" as me:
2012-08-23 19:02:15.145+0000:
27483: info : libvirt version: 0.10.0
2012-08-23 19:02:15.145+0000: 27483: error :
virDriverLoadModule:78 : failed to load module
/usr/local/lib/libvirt/connection-driver/libvirt_driver_qemu.so
/usr/local/lib/libvirt/connection-driver/libvirt_driver_qemu.so:
undefined symbol: virSecurityManagerGetProcessLabel
2012-08-23 19:02:15.145+0000: 27483: error :
virDriverLoadModule:78 : failed to load module
/usr/local/lib/libvirt/connection-driver/libvirt_driver_lxc.so
/usr/local/lib/libvirt/connection-driver/libvirt_driver_lxc.so:
undefined symbol: virSecurityManagerGetProcessLabel
Any ideas why this is happening? I am on Ubuntu 10.04
running libvirt 0.10.0 with qemu-kvm 1.1
Thanks,
Shawn
Sorry, I couldn't reproduce this problem on my machine,
This problem could be reproduced 100 percent.
Could you use gdb for grabbing backtrace?
Guannan Ren
|
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list