[vbox-dev] VM crash, NS_ERROR_FAILURE

Vilbig, Ric ric_vilbig at mentor.com
Tue Mar 29 18:40:17 UTC 2016

Hi experts,

I would like to ask for some help to figure out why a certain VM crashes on start-up.  Although the problem is evidently induced by my PDM plug-in, the crash does not appear to be happening therein.  I need some help to root cause where VBox is aborting the VM session.

>  VBoxManage startvm "U14_ICH9_2"
Waiting for VM "U14_ICH9_2" to power on...
VBoxManage: error: The VM session was aborted
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface ISession

I created this VM from the VirtualBox GUI, v5.0.16, which I built from the tarball at https://www.virtualbox.org/wiki/Downloads and am running on an Ubuntu 14 host.  Then I switched the chipset to ICH9, then I installed Ubuntu 14 as the guest.  The VM runs well, until I plug my virtual device model into PDM (it's a PCIe switch with downstream endpoint).  After plugging in my virtual device, the VM crashes as shown above.

I tracked down everywhere NS_ERROR_FAILURE is mentioned in the sources.  I found that DirectoryServiceProvider::GetFile() returns that error twice, right away, but that is also true in the working case when my device is unplugged.  In no other place is that specific error ever returned or asserted.  However, I found that E_FAIL is #defined to NS_ERROR_FAILURE, and there are hundreds of references to E_FAIL, so I gave up trying to instrument them all.

I need some help to root cause this problem.  Log files show that it is getting as far as BIOS starting to initialize the switch, apparently stuck in a loop doing that, but then lights out with no trail that I can follow.

Log files are attached.  Lines bearing the "RicV" prefix were instrumented by me to investigate this problem.  Lines bearing the "RemDev" prefix are coming from my PDM plug-in.



Ric Vilbig
Mentor Graphics, Emulation Division
46871 Bayside Parkway, Fremont CA, 94538
Phone:  510-354-7360
Mobile: 408-529-2365
email:  ric_vilbig at mentor.com<mailto:ric_vilbig at mentor.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20160329/ff62336b/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RicV_VM_Crash_NS_ERROR_FAILURE.zip
Type: application/x-zip-compressed
Size: 45838 bytes
Desc: RicV_VM_Crash_NS_ERROR_FAILURE.zip
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20160329/ff62336b/attachment-0001.bin 

More information about the vbox-dev mailing list