VirtualBox

Ticket #20915 (new defect)

Opened 5 months ago

SessionState never unlocked

Reported by: mbono Owned by:
Component: other Version: VirtualBox 6.1.32
Keywords: Cc:
Guest type: other Host type: other

Description

The step to reproduce the problem:

  • Start a VM in "headless"
  • When the state is Running I stop it

The session state never go back to Unlocked.

Attached a .cpp that reproduce the problem.

From the log I see:

00:00:01.819978 Changing the VM state from 'DESTROYING' to 'TERMINATED'
00:00:01.824010 Console: Machine state changed to 'PoweredOff'
00:00:01.937393 VBoxHeadless: starting event loop

I suspect that VBoxHeadless do not exit becaus the event loop is started after the machine go to PoweredOff.

Using a "gui" session type do not reproduce the problem.

In VirtualBox 6.0 this works as expected also for "headless" session type.

Attachments

simple_vbox_test.cpp Download (6.3 KB) - added by mbono 5 months ago.
example program that reproduce the issue
TESTING-2022-04-21-14-15-29.log Download (108.0 KB) - added by mbono 5 months ago.
log file

Change History

Changed 5 months ago by mbono

example program that reproduce the issue

Changed 5 months ago by mbono

log file

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use