Opened 14 years ago
Closed 11 years ago
#8005 closed defect (obsolete)
VBoxManage.exe crashes when unregistering a VM with no storage
Reported by: | Justin R. Cutler | Owned by: | |
---|---|---|---|
Component: | VM control | Version: | VirtualBox 4.0.0 |
Keywords: | VBoxManage.exe unregistervm delete | Cc: | |
Guest type: | other | Host type: | Windows |
Description (last modified by )
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
Change History (4)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
vboxmanage unregistervm xxx --delete always crashes for me, even if storage is attached. To reproduce, create a new VM with the Oracle VM VirtualBox Manager, accepting all defaults. This creates a new VM with a harddisk. Now delete the VM with vboxmanage and you will receive the same error as noted above.
My Host type is w2k8@64.
comment:4 by , 11 years ago
Description: | modified (diff) |
---|---|
Resolution: | → obsolete |
Status: | new → closed |
See VBoxManageMisc.cpp.