preload psapi.dll to avoid lockup when writing minidump file

XMLWordPrintableJSON

    • Server Programmability
    • ALL
    • Hide

      See BF-17180

      Show
      See BF-17180
    • 6
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      (Windows)

      Writing a minidump file involves attaching psapi.dll to the process.
      This is a problem if the process is elsewhere holding the ntdll lock.

      The lock ntdll!LdrpInvertedFunctionTableSRWLock protects DLL import tables.
      This is being held by a thread while we are loading the psapi.dll library to create the minidump.

      Workarounds:

      Attach psapi.dll at startup.

      Generate the minidump with a separate process (which won't have its ntdll import table mutexes held).

              Assignee:
              Unassigned
              Reporter:
              Billy Donahue
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: