Ticket #8005 (closed defect: obsolete)
VBoxManage.exe crashes when unregistering a VM with no storage
|Reported by:||jrcutler||Owned by:|
|Version:||VirtualBox 4.0.0||Keywords:||VBoxManage.exe unregistervm delete|
Description (last modified by frank) (diff)
It appears that attempting to unregister and delete a VM with no attached storage causes VBoxManage.exe to crash.
Steps to reproduce:
- Create and register an "empty" VM
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe createvm --name Test --register Virtual machine 'Test' is created and registered. UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Settings file: 'C:\Users\<username>\VirtualBox VMs\Test\Test.vbox'
- Attempt to unregister and delete the VM
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe unregistervm Test --delete VBoxManage.exe: error: Code RPC_E_SERVERFAULT (0x80010105) - The server threw an exception (extended info not available) Context: "Delete(ComSafeArrayAsInParam(aMedia), pProgress.asOutParam())" at line 167 of file VBoxManageMisc.cpp
At this point, a crash dialog will pop up with the following text (Windows 7 x64 host):
VBoxManage.exe has stopped working A problem caused the program to stop working correctly. Please close the program. -> Close the program