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

preload psapi.dll to avoid lockup when writing minidump file

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • 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:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: