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

LdrpInit causes busy-wait if secondary thread is started during process initialization

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.6
    • Component/s: NTCore
    • Labels:
      None

      Description

      When starting LibreOffice's soffice.exe portal application, CPU usage goes to 100% and it takes over two minutes for the app to finish loading. Breaking into the debugger shows that we're waiting for LdrpProcessInitialized to become 2.
      The while (!LdrpProcessInitialized) condition in this loop is never true and ZwDelayExecution never executed, so this ends up being a busy wait. With that check fixed, soffice finishes loading in about 10 seconds.

        Attachments

          Activity

            People

            • Assignee:
              ThFabba Thomas Faber
              Reporter:
              ThFabba Thomas Faber
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: