Skip to content

[Bug]: Hang/crash in iPXE when resetting VM after loading saved state #717

Description

@logiclrd

Version

trunk/main

Host OS Type

Windows

Host OS name + version

Windows 10 22H2 Build 19045.6332

Host Architecture

x86

Guest OS Type

other

Guest Architecture

x86

Guest OS name + version

MS-DOS 6.22

Component

Other

What happened?

In testing the fix for #610, I encountered a crash while doing some basic exercising of the VM. I initially reported this issue with the full steps I followed that produced the crash, but I have since been able to investigate what minimally reproduces the crash. What it boils down to is that if the VM's state was saved in 7.2.10 and then restored in 7.2.97, then when Reset, the VM fails to boot, hanging or crashing in the iPXE phase:

Image

The guest being MS-DOS may not even be relevant to the crash, but that is the configuration that has been tested and observed crashing at this time.

In subsequent testing, I have found that I can reproduce the crash with saved states from the same version. They do to be saved in a previous VirtualBox version.

With my configuration, VirtualBox is running using the native Hypervisor API ("green turtle" icon).

How can we reproduce this?

  1. Have an MS-DOS 6.22 VM set up and VirtualBox-7.2.97-174214-Win.exe installed.
  2. Run VirtualBox and start the VM.
  3. Once it has booted to the DOS prompt, save the state of the VM.
  4. Restore the VM.
  5. Reset the VM (e.g. Host Key+R).

At this point, the VM begin the pre-boot steps, but when it gets to the iPXE portion, it either hangs or crashes. (If it hangs, resetting again rolls the dice again, and, in my testing, it will eventually crash. Usually doesn't take too many tries.)

It should be noted that the iPXE code is running even though "Network" is unchecked under "Boot Device Order" and no network cards are enabled.

Here is a VBox.log from a crash produced with these steps:

VBox.log

Here is an earlier VBox.log from a crash produced with additional testing exercising #610

VBox.crash.log

Did you upload all of your necessary log files, screenshots, etc.?

  • Yes, I've uploaded all pertinent files to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions