On 01/04/2011, at 12:44 AM, Daniel P. Berrange wrote:
On Wed, Mar 30, 2011 at 02:16:28AM +1100, Justin Clift wrote:
<snip>
> Same problem with virsh on OSX. Straight out hangs and never
gets
> to the prompt.
Please run virsh with LIBVIRT_DEBUG=1 set and capture the logs.
Also when it hangs please capture a full stack trace showing
where it has got stuck
Thanks. It's looking like some kind of problem interacting with
VirtualBox (v4.0.4):
<snip>
01:26:36.870: -1: debug : virConnectOpenAuth:1288 : name=(null), auth=0x100237e20,
flags=0
01:26:36.870: -1: debug : do_open:1025 : no name, allowing driver auto-select
01:26:36.870: -1: debug : do_open:1062 : trying driver 0 (Test) ...
01:26:36.870: -1: debug : do_open:1068 : driver 0 Test returned DECLINED
01:26:36.870: -1: debug : do_open:1062 : trying driver 1 (OPENVZ) ...
01:26:36.870: -1: debug : do_open:1068 : driver 1 OPENVZ returned DECLINED
01:26:36.870: -1: debug : do_open:1062 : trying driver 2 (VMWARE) ...
01:26:36.870: -1: debug : do_open:1068 : driver 2 VMWARE returned DECLINED
01:26:36.870: -1: debug : do_open:1062 : trying driver 3 (VBOX) ...
<this is where the hang is, and I hit ^C to break out of virsh>
(full log file attached)
This is the full gdb backtrace from the process:
(gdb) thread apply all bt
Thread 1 (process 85784):
#0 0x00007fff8549b3a6 in swtch_pri ()
#1 0x00007fff854d5b51 in _pthread_find_thread ()
#2 0x00007fff8551cb3e in pthread_getschedparam ()
#3 0x00000001013c8752 in PR_SetThreadPriority ()
#4 0x00000001013c88f1 in _PR_InitThreads ()
#5 0x00000001013bbc26 in _PR_ImplicitInitialization ()
#6 0x00000001013c8916 in PR_GetCurrentThread ()
#7 0x00000001013a048f in nsIThread::GetCurrent ()
#8 0x00000001013a04c1 in nsIThread::SetMainThread ()
#9 0x00000001013524ee in NS_InitXPCOM2 ()
#10 0x00000001004c022a in com::Initialize ()
#11 0x00000001004bef8f in VBoxComInitialize ()
#12 0x000000010015fa7f in vboxInitialize ()
#13 0x0000000100160039 in vboxOpen ()
#14 0x00000001000abbcb in do_open ()
#15 0x00000001000ac712 in virConnectOpenAuth ()
#16 0x000000010001a7ef in vshInit ()
#17 0x000000010001bef1 in main ()
(gdb)
Any of that helpful?
Regards and best wishes,
Justin Clift