Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-20309

REGRESSION: Restarting / shutting down is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • None
    • None

    Description

      When attempting to restart or shutdown, explorer will get terminated and then the VM freezes.
      [See video attached]

      This bug is confirmed to occur on revisions 559a4ec and 050d8a8

      But, in revision # 5022a45 this bug doesn't occur, it's able to restart successfully and it also shows "Restarting" gui.

      • bootcd-0.4.16-dev-974-g5022a45-x86-gcc-lin-dbg
      • bootcd-0.4.16-dev-1627-g050d8a8-x86-gcc-lin-dbg
      • bootcd-0.4.16-dev-1628-g559a4ec-x86-gcc-lin-dbg

      As you can see in the logfile, when the restart is triggered, several errors occur:

      (win32ss/user/winsrv/usersrv/shutdown.c:619) SrvExitWindowsEx(ClientId: a4.2e4, Flags: 0x200)
      (sdk/lib/rtl/priv.c:446) Retrieving token handle failed (Status c0000022)
      (win32ss/user/winsrv/usersrv/shutdown.c:786) Terminating process 2d4 (\Device\HarddiskVolume1\ReactOS\system32\kbswitch.exe)
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200EE when the thread is in cleanup!
      (win32ss/user/winsrv/usersrv/shutdown.c:786) Terminating process 1a0 (\Device\HarddiskVolume1\ReactOS\explorer.exe)
      (win32ss/user/ntuser/window.c:2991) err: Destroying the ShellWindow!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/desktop.c:1370) err: ptiLastInput is CLEARED!!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 000200A8 when the thread is in cleanup!
      (win32ss/user/ntuser/message.c:1468) err: Attempted to post message to window 0005008C when the thread is in cleanup!
      (win32ss/user/ntuser/shutdown.c:129) err: NotifyLogon(0x200, 0x0)
      WARNING:  SfcWLEventLogoff at dll/win32/sfc_os/sfc_os.c:194 is UNIMPLEMENTED!
      (win32ss/user/ntuser/msgqueue.c:842) err: Remove Window Messages E16F3E98 From Sent Queue
      (win32ss/user/ntuser/msgqueue.c:1272) err: NB Receiving Thread woken up dead!
      (win32ss/user/ntuser/msgqueue.c:2266) err: Thread Cleanup Sent Messages E16F3E98
      (win32ss/user/ntuser/message.c:1460) err: UserPostMessage: Invalid handle 0x00030118 Msg 0x0!
      (win32ss/user/ntuser/desktop.c:3338) err: Attempted to change thread desktop although the thread has windows!
      WARNING:  MmLockPageableDataSection at ntoskrnl/mm/ARM3/drvmgmt.c:62 is UNIMPLEMENTED!
      WARNING:  MmUnlockPageableImageSection at ntoskrnl/mm/ARM3/drvmgmt.c:39 is UNIMPLEMENTED!
      Terminating critical process 0xB42FB020 (winlogon.exe)
      Break, or Ignore (bi)? 
      kdb:> 
      

      But more specifically the VM halts and waits for input to break or ignore, i wasn't able to test what happens when ignoring however this shouldn't happen at all.

      This also seems to break applications that require restarts such as VMware tools. Virtualbox guest additions can be installed fine but only if you select the "Restart later manually" option and force reset the VM

      Tested on VMware workstation 17.6.3
      This bug also occurs on Virtualbox 5.2.44 and has been tested

      Attachments

        1. 2025-08-16 15-47-42.mkv
          1.58 MB
        2. IMG_1585.jpeg
          IMG_1585.jpeg
          35 kB
        3. log.txt
          35 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Hekt0r Hekt0r
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: