[vbox-dev] Trying to launch the a machine from the XPCOM sample crashes VBoxSVC
Rūdolfs Bundulis
rudolfs.bundulis at gmail.com
Mon May 9 07:03:01 UTC 2016
While trying to investigate the access issue i posted in a separate thread (
https://www.virtualbox.org/pipermail/vbox-dev/2016-May/013828.html), I
tried to modify the xpcom sample to try and launch a VM to check if
anything specific is wrong with my binaries. Basically I just added a block
of code that would attempt to launch the machine in the void
listVMs(IVirtualBox *virtualBox) function:
nsCOMPtr<ISession> session;
rc = machine->LockMachine(session, LockType_VM);
if (NS_SUCCEEDED(rc))
{
nsCOMPtr<IConsole> console;
rc = session->GetConsole(getter_AddRefs(console));
if (NS_SUCCEEDED(rc))
{
nsCOMPtr<IProgress> progress;
rc = console->PowerUp(getter_AddRefs(progress));
if (NS_SUCCEEDED(rc))
{
progress->WaitForCompletion(-1);
}
else
{
printf("Could not power up the console: 0x%08x\n", rc);
}
}
else
{
printf("Could not obtain console from the machine: 0x%08x\n", rc);
}
}
else
{
printf("Could not lock the machine: 0x%08x\n", rc);
}
/* don't forget to release the objects in the array... */
machine->Release();
Compiling and running this makes VBoxSVC crash and the call to LockMachine
fail with NS_ERROR_ABORT (*0x80004004*).
The VBoxSVC.log basically just stops:
VirtualBox XPCOM Server 5.0.20 r106931 linux.amd64 (Apr 28 2016 14:08:17)
release log
00:00:00.000387 main Log opened 2016-05-09T06:50:16.364856000Z
00:00:00.000390 main Build Type: release
00:00:00.000395 main OS Product: Linux
00:00:00.000396 main OS Release: 4.4.0-22-generic
00:00:00.000397 main OS Version: #39-Ubuntu SMP Thu May 5 16:53:32 UTC
2016
00:00:00.000431 main DMI Product Name: Z9PE-D16 Series
00:00:00.000442 main DMI Product Version: 1.0X
00:00:00.000531 main Host RAM: 15993MB total, 14686MB available
00:00:00.000536 main Executable: /usr/lib/virtualbox/VBoxSVC
00:00:00.000537 main Process ID: 4240
00:00:00.000538 main Package type: LINUX_64BITS_UBUNTU_16_04
00:00:00.107500 nspr-2 Home directory: '/home/rudolfs/.config/VirtualBox'
00:00:00.107849 nspr-2 Loading settings file
"/home/rudolfs/.config/VirtualBox/VirtualBox.xml" with version "1.12-linux"
00:00:00.110140 nspr-2 Successfully initialised host USB using sysfs
00:00:00.112014 nspr-2 HostDnsMonitor: old information
00:00:00.112053 nspr-2 no server entries
00:00:00.112063 nspr-2 no search string entries
00:00:00.112069 nspr-2 no domain set
00:00:00.112074 nspr-2 HostDnsMonitor: new information
00:00:00.112079 nspr-2 server 1: 192.168.1.1
00:00:00.112086 nspr-2 search string 1: homerouter.cpe
00:00:00.112093 nspr-2 domain: homerouter.cpe
00:00:00.112108 nspr-2 HostDnsMonitorProxy::notify
00:00:00.115814 nspr-2 VD: VDInit finished
00:00:00.124915 nspr-2 Loading settings file "/home/rudolfs/VirtualBox
VMs/Windows 7 XPDM/Windows 7 XPDM.vbox" with version "1.15-linux"
I've uploaded the .crash file from /var/crash to Google Drive since it was
too big to post here:
https://drive.google.com/open?id=0BxZxYDtgrhYKZFQtZ2QwWlRyeFk
Best Regards,
Rudolfs Bundulis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20160509/00e96325/attachment.html>
More information about the vbox-dev
mailing list