Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-58097

preload psapi.dll to avoid lockup when writing minidump file

    • Server Programmability
    • ALL
    • Hide

      See BF-17180

      Show
      See BF-17180
    • 6

      (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 Unassigned
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: