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

Duplicate THREADINFO allocated by UserInitialize

    XMLWordPrintable

    Details

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

      Description

      We get this on every boot:

      (win32ss/user/ntuser/main.c:384) err: PsGetThreadWin32Thread returned non-NULL thread info!!

      The message indicates that when trying to allocate a THREADINFO structure in AllocW32Thread, there was already one present; the result being that we overwrite and leak the old one.
      This is done by InitThreadCallback, which gets called from user32's thread attach. However we also call it from (Nt)UserInitialize, which seems to be redundant.

        Attachments

          Activity

            People

            • Assignee:
              ThFabba ThFabba
              Reporter:
              ThFabba ThFabba
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: